Serial ports on a VM

decibel83

Renowned Member
Oct 15, 2008
210
1
83
Hi.
Can I access to a physical serial port from a KVM virtual machine, without using a serial network device?
 
Hi,
Try this :

Code:
qm set 107 -serial /dev/ttyS0
Where 107 is your VMID
and ttyS0 port COM1

Then Stop/Start your VM (dont reboot)
 
This is for OpenVZ only, and I don't have to connect to a virtual machine through a serial console, but I need a physical serial port on the virtual machine.
 
Is the qm command only for QEMU KVMs or can it be used for penVZ containers as well?

Can the same physical serial port be simultaneously connected to more than one Virtual Machine?

qm is for KVM (man qm)
vzctl is for OpenVZ (man vzctl)