2013-08-17 19:30:47 +00:00
|
|
|
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
|
|
|
|
/usr/bin/qemu -S -M \
|
Allow multiple consoles per virtual guest
While Xen only has a single paravirt console, UML, and
QEMU both support multiple paravirt consoles. The LXC
driver can also be trivially made to support multiple
consoles. This patch extends the XML to allow multiple
<console> elements in the XML. It also makes the UML
and QEMU drivers support this config.
* src/conf/domain_conf.c, src/conf/domain_conf.h: Allow
multiple <console> devices
* src/lxc/lxc_driver.c, src/xen/xen_driver.c,
src/xenxs/xen_sxpr.c, src/xenxs/xen_xm.c: Update for
internal API changes
* src/security/security_selinux.c, src/security/virt-aa-helper.c:
Only label consoles that aren't a copy of the serial device
* src/qemu/qemu_command.c, src/qemu/qemu_driver.c,
src/qemu/qemu_process.c, src/uml/uml_conf.c,
src/uml/uml_driver.c: Support multiple console devices
* tests/qemuxml2xmltest.c, tests/qemuxml2argvtest.c: Extra
tests for multiple virtio consoles. Set QEMU_CAPS_CHARDEV
for all console /channel tests
* tests/qemuxml2argvdata/qemuxml2argv-channel-virtio-auto.args,
tests/qemuxml2argvdata/qemuxml2argv-channel-virtio.args
tests/qemuxml2argvdata/qemuxml2argv-console-virtio.args: Update
for correct chardev syntax
* tests/qemuxml2argvdata/qemuxml2argv-console-virtio-many.args,
tests/qemuxml2argvdata/qemuxml2argv-console-virtio-many.xml: New
test file
2011-02-23 18:27:23 +00:00
|
|
|
pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults -chardev \
|
|
|
|
socket,id=charmonitor,path=/tmp/test-monitor,server,nowait -mon \
|
|
|
|
chardev=charmonitor,id=monitor,mode=readline -no-acpi -boot c -device \
|
2011-04-06 16:05:14 +00:00
|
|
|
virtio-serial-pci,id=virtio-serial0,max_ports=16,vectors=4,bus=pci.0,addr=0x3 \
|
2011-01-31 11:42:57 +00:00
|
|
|
-device virtio-serial-pci,id=virtio-serial1,bus=pci.0,addr=0xa -device \
|
2012-10-26 09:09:22 +00:00
|
|
|
virtio-serial-pci,id=virtio-serial2,bus=pci.0,addr=0x4 -usb -hda \
|
2011-01-31 11:42:57 +00:00
|
|
|
/dev/HostVG/QEMUGuest1 -chardev pty,id=charchannel0 -device virtserialport,\
|
|
|
|
bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,\
|
|
|
|
name=org.linux-kvm.port.0 -chardev pty,id=charchannel1 -device virtserialport,\
|
|
|
|
bus=virtio-serial1.0,nr=1,chardev=charchannel1,id=channel1,\
|
|
|
|
name=org.linux-kvm.port.foo -chardev pty,id=charchannel2 -device \
|
|
|
|
virtserialport,bus=virtio-serial1.0,nr=3,chardev=charchannel2,id=channel2,\
|
|
|
|
name=org.linux-kvm.port.bar -chardev pty,id=charchannel3 -device \
|
|
|
|
virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel3,id=channel3,\
|
|
|
|
name=org.linux-kvm.port.wizz -chardev pty,id=charchannel4 -device \
|
2015-03-02 09:58:48 +00:00
|
|
|
virtserialport,bus=virtio-serial1.0,nr=2,chardev=charchannel4,id=channel4,\
|
2011-01-31 11:42:57 +00:00
|
|
|
name=org.linux-kvm.port.ooh -chardev pty,id=charchannel5 -device \
|
|
|
|
virtserialport,bus=virtio-serial2.0,nr=1,chardev=charchannel5,id=channel5,\
|
2012-10-26 09:09:22 +00:00
|
|
|
name=org.linux-kvm.port.lla -device virtio-balloon-pci,id=balloon0,\
|
2011-04-06 16:05:14 +00:00
|
|
|
bus=pci.0,addr=0x5
|