[Users] VirtIO Console Device Enabled option?

Gianluca Cecchi gianluca.cecchi at gmail.com
Thu Dec 19 15:50:47 EST 2013


On Thu, Dec 19, 2013 at 8:23 PM, Jorick Astrego wrote:
> I guess it is for this:
>
> http://www.linux-kvm.com/content/new-virtioconsole-infrastructure-introduced-kvm-84


It seems you are right.
Going to test, I tried to enable it on a CentOS 6.4 guest named "c6s"

It seems all ok from a guest point of view (apart the tty that seems
not to be automatically spawned from agetty or friend)
I also read
http://fedoraproject.org/wiki/Features/VirtioSerial
But I don't know if this will be usable at this time from oVirt in any way....

[root at c6s ~]# cat /etc/redhat-release
CentOS release 6.4 (Final)

[root at c6s ~]# uname -r
2.6.32-358.18.1.el6.x86_64

[root at c6s ~]# lsmod|grep virtio
virtio_balloon          4798  0
virtio_console         17806  2
virtio_net             16856  0
virtio_blk              7164  3
virtio_scsi             9139  1
virtio_pci              6985  0
virtio_ring             8301  6
virtio_balloon,virtio_console,virtio_net,virtio_blk,virtio_scsi,virtio_pci
virtio                  4977  6
virtio_balloon,virtio_console,virtio_net,virtio_blk,virtio_scsi,virtio_pci


[root at c6s ~]# cat /sys/class/virtio-ports/vport0p1/name
com.redhat.rhevm.vdsm

[root at c6s ~]# ll /dev/virtio-ports/com.redhat.rhevm.vdsm
lrwxrwxrwx 1 root root 11 Dec 19 19:42
/dev/virtio-ports/com.redhat.rhevm.vdsm -> ../vport0p1

[root at c6s ~]# ll /dev/hvc*
crw-rw---- 1 root dialout 229, 0 Dec 19 19:42 /dev/hvc0
crw-rw---- 1 root dialout 229, 1 Dec 19 19:42 /dev/hvc1
crw-rw---- 1 root dialout 229, 2 Dec 19 19:42 /dev/hvc2
crw-rw---- 1 root dialout 229, 3 Dec 19 19:42 /dev/hvc3
crw-rw---- 1 root dialout 229, 4 Dec 19 19:42 /dev/hvc4
crw-rw---- 1 root dialout 229, 5 Dec 19 19:42 /dev/hvc5
crw-rw---- 1 root dialout 229, 6 Dec 19 19:42 /dev/hvc6
crw-rw---- 1 root dialout 229, 7 Dec 19 19:42 /dev/hvc7
[root at c6s ~]#


qemu originated command line has

-chardev pty,id=charconsole0 -device
virtconsole,chardev=charconsole0,id=console0

complete is

qemu      3032     1  5 21:30 ?        00:00:38
/usr/bin/qemu-system-x86_64 -machine accel=kvm -name c6s -S -machine
pc-1.0,accel=kvm,usb=off -cpu Opteron_G2 -m 1024 -smp
1,sockets=1,cores=1,threads=1 -uuid
4147e0d3-19a7-447b-9d88-2ff19365bec0 -smbios
type=1,manufacturer=oVirt,product=oVirt
Node,version=19-5,serial=34353439-3036-435A-4A38-303330393338,uuid=4147e0d3-19a7-447b-9d88-2ff19365bec0
-no-user-config -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/c6s.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc
base=2013-12-19T18:42:22,driftfix=slew -no-shutdown -device
piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device
virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x4 -device
virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive
if=none,id=drive-ide0-1-0,readonly=on,format=raw,serial= -device
ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive
file=/rhev/data-center/mnt/glusterSD/f18ovn01.mydomain:gvdata/d0b96d4a-62aa-4e9f-b50e-f7a0cb5be291/images/a5e4f67b-50b5-4740-9990-39deb8812445/53408cb0-bcd4-40de-bc69-89d59b7b5bc2,if=none,id=drive-virtio-disk0,format=raw,serial=a5e4f67b-50b5-4740-9990-39deb8812445,cache=none,werror=stop,rerror=stop,aio=threads
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
-drive file=/rhev/data-center/mnt/glusterSD/f18ovn01.mydomain:gvdata/d0b96d4a-62aa-4e9f-b50e-f7a0cb5be291/images/c1477133-6b06-480d-a233-1dae08daf8b3/c2a82c64-9dee-42bb-acf2-65b8081f2edf,if=none,id=drive-scsi0-0-0-0,format=raw,serial=c1477133-6b06-480d-a233-1dae08daf8b3,cache=none,werror=stop,rerror=stop,aio=threads
-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0
-netdev tap,fd=29,id=hostnet0,vhost=on,vhostfd=30 -device
virtio-net-pci,netdev=hostnet0,id=net0,mac=00:1a:4a:8f:04:f8,bus=pci.0,addr=0x3
-chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/4147e0d3-19a7-447b-9d88-2ff19365bec0.com.redhat.rhevm.vdsm,server,nowait
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm
-chardev socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/4147e0d3-19a7-447b-9d88-2ff19365bec0.org.qemu.guest_agent.0,server,nowait
-device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0
-chardev spicevmc,id=charchannel2,name=vdagent -device
virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0
-chardev pty,id=charconsole0 -device
virtconsole,chardev=charconsole0,id=console0 -spice
tls-port=5901,addr=0,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir,seamless-migration=on
-k en-us -vga qxl -global qxl-vga.ram_size=67108864 -global
qxl-vga.vram_size=67108864 -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7

Gianluca


More information about the Users mailing list