mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-29 09:05:25 +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
1017 B
Plaintext
21 lines
1017 B
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,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,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
|