mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15: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.
11 lines
583 B
Plaintext
11 lines
583 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 1024 -smp 2 \
|
|
-object memory-backend-file,id=ram-node0,prealloc=yes,\
|
|
mem-path=/dev/hugepages2M/libvirt/qemu,size=268435456 \
|
|
-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=805306368 \
|
|
-numa node,nodeid=1,cpus=1,memdev=ram-node1 \
|
|
-nographic -monitor unix:/tmp/test-monitor,server,nowait -no-acpi -boot c \
|
|
-usb -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none
|