mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
b50b4ef30c
QEMU's command line visitor as well as the JSON interface take bytes by default for memory object sizes. Convert mebibytes to bytes so that we can later refactor the existing code for hotplug purposes.
21 lines
1.0 KiB
Plaintext
21 lines
1.0 KiB
Plaintext
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu -S -M pc -m 4096 -smp 4 \
|
|
-object memory-backend-file,id=ram-node0,prealloc=yes,\
|
|
mem-path=/dev/hugepages1G/libvirt/qemu,size=1073741824,host-nodes=0-3,\
|
|
policy=bind \
|
|
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
|
|
-object memory-backend-file,id=ram-node1,prealloc=yes,\
|
|
mem-path=/dev/hugepages2M/libvirt/qemu,share=yes,size=1073741824,\
|
|
host-nodes=0-3,policy=bind \
|
|
-numa node,nodeid=1,cpus=1,memdev=ram-node1 \
|
|
-object memory-backend-file,id=ram-node2,prealloc=yes,\
|
|
mem-path=/dev/hugepages1G/libvirt/qemu,share=no,size=1073741824,\
|
|
host-nodes=0-3,policy=bind \
|
|
-numa node,nodeid=2,cpus=2,memdev=ram-node2 \
|
|
-object memory-backend-file,id=ram-node3,prealloc=yes,\
|
|
mem-path=/dev/hugepages1G/libvirt/qemu,size=1073741824,host-nodes=3,\
|
|
policy=bind \
|
|
-numa node,nodeid=3,cpus=3,memdev=ram-node3 \
|
|
-nographic -monitor unix:/tmp/test-monitor,server,nowait -no-acpi -boot c -usb \
|
|
-hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none
|