2015-11-06 13:20:06 +00:00
|
|
|
LC_ALL=C \
|
|
|
|
PATH=/bin \
|
2019-03-06 12:29:01 +00:00
|
|
|
HOME=/tmp/lib/domain--1-QEMUGuest \
|
2015-11-06 13:20:06 +00:00
|
|
|
USER=test \
|
|
|
|
LOGNAME=test \
|
2019-03-08 11:15:07 +00:00
|
|
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest/.local/share \
|
|
|
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest/.cache \
|
|
|
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest/.config \
|
2015-11-06 13:20:06 +00:00
|
|
|
QEMU_AUDIO_DRV=none \
|
2017-04-06 16:19:48 +00:00
|
|
|
/usr/bin/qemu-system-x86_64 \
|
2015-11-06 14:29:41 +00:00
|
|
|
-name QEMUGuest \
|
2015-11-06 13:20:06 +00:00
|
|
|
-S \
|
2018-03-29 10:51:55 +00:00
|
|
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
2015-11-06 13:20:06 +00:00
|
|
|
-m 64 \
|
2019-04-12 08:03:36 +00:00
|
|
|
-realtime mlock=off \
|
2016-06-23 11:29:16 +00:00
|
|
|
-smp 2,sockets=2,cores=1,threads=1 \
|
2021-03-31 08:46:36 +00:00
|
|
|
-object memory-backend-ram,id=ram-node0,size=33554432,host-nodes=3,policy=preferred \
|
2014-07-02 09:15:45 +00:00
|
|
|
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
|
qemu: command: Don't combine old and modern NUMA node creation
Change done by commit f309db1f4d51009bad0d32e12efc75530b66836b wrongly
assumes that qemu can start with a combination of NUMA nodes specified
with the "memdev" option and the appropriate backends, and the legacy
way by specifying only "mem" as a size argument. QEMU rejects such
commandline though:
$ /usr/bin/qemu-system-x86_64 -S -M pc -m 1024 -smp 2 \
-numa node,nodeid=0,cpus=0,mem=256 \
-object memory-backend-ram,id=ram-node1,size=12345 \
-numa node,nodeid=1,cpus=1,memdev=ram-node1
qemu-system-x86_64: -numa node,nodeid=1,cpus=1,memdev=ram-node1: qemu: memdev option must be specified for either all or no nodes
To fix this issue we need to check if any of the nodes requires the new
definition with the backend and if so, then all other nodes have to use
it too.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1182467
2015-01-26 12:48:02 +00:00
|
|
|
-object memory-backend-ram,id=ram-node1,size=33554432 \
|
|
|
|
-numa node,nodeid=1,cpus=1,memdev=ram-node1 \
|
2015-11-06 14:29:52 +00:00
|
|
|
-uuid 9f4b6512-e73a-4a25-93e8-5307802821ce \
|
2018-03-29 10:51:55 +00:00
|
|
|
-display none \
|
2018-03-29 10:51:55 +00:00
|
|
|
-no-user-config \
|
2016-01-13 00:26:40 +00:00
|
|
|
-nodefaults \
|
2021-03-31 08:46:36 +00:00
|
|
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest/monitor.sock,server=on,wait=off \
|
2018-03-28 22:04:58 +00:00
|
|
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
2018-03-29 10:51:55 +00:00
|
|
|
-rtc base=utc \
|
2018-03-29 10:51:55 +00:00
|
|
|
-no-shutdown \
|
2015-11-06 13:20:06 +00:00
|
|
|
-no-acpi \
|
|
|
|
-usb \
|
2016-01-13 00:26:40 +00:00
|
|
|
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
|