mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 22:39:56 +00:00
a89f05ba8d
Per-domain directories were introduced in order to be able to
completely separate security labels for each domain (commit
f1f68ca334
). However when the domain
name is long (let's say a ridiculous 110 characters), we cannot
connect to the monitor socket because on length of UNIX socket address
is limited. In order to get around this, let's shorten it in similar
fashion and in order to avoid conflicts, throw in an ID there as well.
Also save that into the status XML and load the old status XMLs
properly (to clean up after older domains). That way we can change it
in the future.
The shortening can be seen in qemuxml2argv tests, for example in the
hugepages-pages2 case.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
30 lines
836 B
Plaintext
30 lines
836 B
Plaintext
LC_ALL=C \
|
|
PATH=/bin \
|
|
HOME=/home/test \
|
|
USER=test \
|
|
LOGNAME=test \
|
|
QEMU_AUDIO_DRV=none \
|
|
/usr/bin/kvm \
|
|
-name QEMUGuest \
|
|
-S \
|
|
-M pc \
|
|
-m 24105 \
|
|
-smp 32 \
|
|
-object memory-backend-ram,id=ram-node0,size=20971520,host-nodes=3,\
|
|
policy=preferred \
|
|
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
|
|
-object memory-backend-ram,id=ram-node1,size=676331520,host-nodes=0-7,\
|
|
policy=bind \
|
|
-numa node,nodeid=1,cpus=1-27,cpus=29,memdev=ram-node1 \
|
|
-object memory-backend-ram,id=ram-node2,size=24578621440,host-nodes=1-2,\
|
|
host-nodes=5,host-nodes=7,policy=bind \
|
|
-numa node,nodeid=2,cpus=28,cpus=30-31,memdev=ram-node2 \
|
|
-uuid 9f4b6512-e73a-4a25-93e8-5307802821ce \
|
|
-nographic \
|
|
-nodefaults \
|
|
-monitor unix:/tmp/lib/domain--1-QEMUGuest/monitor.sock,server,nowait \
|
|
-no-acpi \
|
|
-boot c \
|
|
-usb \
|
|
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
|