2015-11-06 16:20:06 +03:00
LC_ALL=C \
PATH=/bin \
2019-03-06 15:29:01 +03:00
HOME=/tmp/lib/domain--1-QEMUGuest1 \
2015-11-06 16:20:06 +03:00
USER=test \
LOGNAME=test \
2019-03-08 14:15:07 +03:00
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
2015-11-06 16:20:06 +03:00
QEMU_AUDIO_DRV=spice \
2017-04-06 19:19:48 +03:00
/usr/bin/qemu-system-i686 \
2015-11-06 17:29:41 +03:00
-name QEMUGuest1 \
2015-11-06 16:20:06 +03:00
-S \
2018-03-29 13:51:55 +03:00
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
2015-11-06 16:20:06 +03:00
-m 214 \
2019-04-12 11:03:36 +03:00
-realtime mlock=off \
2016-06-23 14:29:16 +03:00
-smp 1,sockets=1,cores=1,threads=1 \
2015-11-06 17:29:52 +03:00
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
2018-03-29 13:51:55 +03:00
-no-user-config \
2015-11-06 16:20:06 +03:00
-nodefaults \
2017-06-26 17:40:39 +03:00
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
server,nowait \
2018-03-29 01:04:58 +03:00
-mon chardev=charmonitor,id=monitor,mode=control \
2018-03-29 13:51:55 +03:00
-rtc base=utc \
2018-03-29 13:51:55 +03:00
-no-shutdown \
2015-11-06 16:20:06 +03:00
-no-acpi \
-usb \
2015-12-28 17:13:52 +03:00
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-ide0-0-0 \
2019-01-28 16:44:57 +03:00
-device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 \
2015-11-06 16:20:06 +03:00
-spice port=5903,tls-port=5904,addr=127.0.0.1,x509-dir=/etc/pki/libvirt-spice,\
tls-channel=default,tls-channel=main,plaintext-channel=inputs,\
2013-07-17 21:47:01 +04:00
image-compression=auto_glz,jpeg-wan-compression=auto,\
2015-11-06 16:20:06 +03:00
zlib-glz-wan-compression=auto,playback-compression=on,streaming-video=filter,\
2019-02-07 12:59:19 +03:00
disable-copy-paste,disable-agent-file-xfer,seamless-migration=on \
2015-11-06 16:20:06 +03:00
-vga qxl \
-global qxl-vga.ram_size=67108864 \
2014-11-18 19:21:48 +03:00
-global qxl-vga.vram_size=33554432 \
2013-01-18 22:36:36 +04:00
-device qxl,id=video1,ram_size=67108864,vram_size=33554432,bus=pci.0,addr=0x4 \
qemu: Support vram for video of qxl type
For qemu names the primary vga as "qxl-vga":
1) if vram is specified for 2nd qxl device:
-vga qxl -global qxl-vga.vram_size=$SIZE \
-device qxl,id=video1,vram_size=$SIZE,...
2) if vram is not specified for 2nd qxl device, (use the default
set by global):
-vga qxl -global qxl-vga.vram_size=$SIZE \
-device qxl,id=video1,...
For qemu names all qxl devices as "qxl":
1) if vram is specified for 2nd qxl device:
-vga qxl -global qxl.vram_size=$SIZE \
-device qxl,id=video1,vram_size=$SIZE ...
2) if vram is not specified for 2nd qxl device:
-vga qxl -global qxl-vga.vram_size=$SIZE \
-device qxl,id=video1,...
"-global" is the only way to define vram_size for the primary qxl
device, regardless of how qemu names it, (It's not good a good
way, as original idea of "-global" is to set a global default for
a driver property, but to specify vram for first qxl device, we
have to use it).
For other qxl devices, as they are represented by "-device", could
specify it directly and seperately for each, and it overrides the
default set by "-global" if specified.
v1 - v2:
* modify "virDomainVideoDefaultRAM" so that it returns 16M as the
default vram_size for qxl device.
* vram_size * 1024 (qemu accepts bytes for vram_size).
* apply default vram_size for qxl device for which vram_size is
not specified.
* modify "graphics-spice" tests (more sensiable vram_size)
* Add an argument of virDomainDefPtr type for qemuBuildVideoDevStr,
to use virDomainVideoDefaultRAM in qemuBuildVideoDevStr).
v2 - v3:
* Modify default video memory size for qxl device from 16M to 24M
* Update codes to be consistent with changes on qemu_capabilities.*
2011-03-06 17:00:27 +03:00
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3