Skip to content

Commit

Permalink
docs/qemu: add missing -numa argument (#799)
Browse files Browse the repository at this point in the history
Add the missing argument to link the backing memory with the guest's
memory; this results in two separate 2G allocations - harmless in this
case, but would break usage for SPDK.

Signed-off-by: John Levon <[email protected]>
  • Loading branch information
jlevon authored May 23, 2024
1 parent bedaf99 commit c4ce707
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/qemu.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ $ imgpath=/path/to/bionic-server-cloudimg-amd64.img
$ sudo ~/src/build/qemu-system-x86_64 \
-machine accel=kvm,type=q35 -cpu host -m 2G \
-mem-prealloc -object memory-backend-file,id=ram-node0,prealloc=yes,mem-path=/dev/hugepages/gpio,share=yes,size=2G \
-numa node,memdev=ram-node0 \
-nographic \
-device virtio-net-pci,netdev=net0 \
-netdev user,id=net0,hostfwd=tcp::2222-:22 \
Expand Down

0 comments on commit c4ce707

Please sign in to comment.