mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
fec8f9c49a
In some cases management application needs to allocate memory for qemu upfront and then just let qemu use that. Since we don't want to expose path for memory-backend-file anywhere in the domain XML, we can generate predictable paths. In this case: $memoryBackingDir/libvirt/qemu/$shortName/$alias where $shortName is result of virDomainDefGetShortName(). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
32 lines
952 B
Plaintext
32 lines
952 B
Plaintext
LC_ALL=C \
|
|
PATH=/bin \
|
|
HOME=/home/test \
|
|
USER=test \
|
|
LOGNAME=test \
|
|
QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu-system-x86_64 \
|
|
-name instance-00000092 \
|
|
-S \
|
|
-M pc-i440fx-wily \
|
|
-m 28672 \
|
|
-mem-prealloc \
|
|
-smp 20,sockets=1,cores=8,threads=1 \
|
|
-object memory-backend-file,id=ram-node0,\
|
|
mem-path=/var/lib/libvirt/qemu/ram/libvirt/qemu/-1-instance-00000092/ram-node0,\
|
|
share=no,size=15032385536 \
|
|
-numa node,nodeid=0,cpus=0-7,memdev=ram-node0 \
|
|
-object memory-backend-file,id=ram-node1,\
|
|
mem-path=/var/lib/libvirt/qemu/ram/libvirt/qemu/-1-instance-00000092/ram-node1,\
|
|
share=yes,size=15032385536 \
|
|
-numa node,nodeid=1,cpus=8-15,memdev=ram-node1 \
|
|
-uuid 126f2720-6f8e-45ab-a886-ec9277079a67 \
|
|
-nographic \
|
|
-nodefaults \
|
|
-chardev socket,id=charmonitor,\
|
|
path=/tmp/lib/domain--1-instance-00000092/monitor.sock,server,nowait \
|
|
-mon chardev=charmonitor,id=monitor,mode=readline \
|
|
-no-acpi \
|
|
-boot c \
|
|
-usb \
|
|
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
|