
Hi all, I have a serial port on one of the servers where the guest VM is running. setserial -g /dev/ttyS0 /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4 I wanted the serial port to be connected at the VM, so as the VM to be able to use directly the serial port of the server. Thus I went at host devices to add the port but I am not able to find it, as the serial port is not listed at PCI devices. I recall that on plain KVM one could be able to attach such a serial port at a guest VM. Has anyone been able to attach a serial port to a guest VM woth ovirt? (I am running 4.2.5) Thanx, Alex

On 18 Sep 2018, at 14:20, Alex K <rightkicktech@gmail.com> wrote:
Hi all,
I have a serial port on one of the servers where the guest VM is running.
setserial -g /dev/ttyS0 /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
I wanted the serial port to be connected at the VM, so as the VM to be able to use directly the serial port of the server. Thus I went at host devices to add the port but I am not able to find it, as the serial port is not listed at PCI devices.
I recall that on plain KVM one could be able to attach such a serial port at a guest VM. Has anyone been able to attach a serial port to a guest VM woth ovirt? (I am running 4.2.5)
we don’t support that directly. You can use(write) a vdsm hook to add the necessary libvirt xml part to your VM definition. That should work just fine Thanks, michal
Thanx, Alex _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/KIPRCXWMC7GSV6...

Thanx Michal for the feedback. On Tue, Sep 18, 2018 at 3:40 PM Michal Skrivanek < michal.skrivanek@redhat.com> wrote:
On 18 Sep 2018, at 14:20, Alex K <rightkicktech@gmail.com> wrote:
Hi all,
I have a serial port on one of the servers where the guest VM is running.
setserial -g /dev/ttyS0 /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
I wanted the serial port to be connected at the VM, so as the VM to be able to use directly the serial port of the server. Thus I went at host devices to add the port but I am not able to find it, as the serial port is not listed at PCI devices.
I recall that on plain KVM one could be able to attach such a serial port at a guest VM. Has anyone been able to attach a serial port to a guest VM woth ovirt? (I am running 4.2.5)
we don’t support that directly. You can use(write) a vdsm hook to add the necessary libvirt xml part to your VM definition. That should work just fine
Thanks, michal
Thanx, Alex _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/KIPRCXWMC7GSV6...

Alex, Have you developed a solution for this? I find myself in a similar situation.. -Brad

Use a serial to IP converter. I connect many ovirt VMs to USB and serial devices using IP interfaces. They work very well and are far more flexible, as you can change which VM the devices are connected to on the fly. On Wed, Sep 26, 2018, 12:26 PM <brad.riemann@cloud5.com> wrote:
Alex,
Have you developed a solution for this? I find myself in a similar situation..
-Brad _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/MVQVIU4Z7DDSD5...

Hi Brad, On Wed, Sep 26, 2018, 22:25 <brad.riemann@cloud5.com> wrote:
Alex,
Have you developed a solution for this? I find myself in a similar situation..
No, I have not. Although I understand what is needed (amend xml of vm with custom pre-start hooks) I need some python know-how.
-Brad _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/MVQVIU4Z7DDSD5...

On 9/27/18 7:08 AM, Alex K wrote:
Hi Brad,
On Wed, Sep 26, 2018, 22:25 <brad.riemann@cloud5.com <mailto:brad.riemann@cloud5.com>> wrote:
Alex,
Have you developed a solution for this? I find myself in a similar situation..
No, I have not. Although I understand what is needed (amend xml of vm with custom pre-start hooks) I need some python know-how.
Hi, You may find this patch useful: https://gerrit.ovirt.org/#/c/91499/ it is mostly untested, but should be a good starting point. HTH, -- Francesco Romani Senior SW Eng., Virtualization R&D Red Hat IRC: fromani github: @fromanirh
participants (5)
-
Alex K
-
brad.riemann@cloud5.com
-
Francesco Romani
-
Michal Skrivanek
-
Vincent Royer