View Single Post
  #1   (View Single Post)  
Old 6th August 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 464
Default More QEMU ram and cpu size

Even with the manual, and also several tutorials, I can not seem to figure this out.

This is what works, to start the VM but I would like to increase the - m (memory, cpu) :
qemu-system-x86_64 -m 600 -drive if=virtio,file=disk.opnbsd63 -netdev user,id=mynet0,hostfwd=tcp: -device e1000,netdev=mynet0
When I try this:
qemu-system-x86_64 -m 1200 -drive if=virtio,file=disk.opnbsd63 -netdev user,id=mynet0,hostfwd=tcp: -device e1000,netdev=mynet0
I get this:
WARNING: Image format was not specified for 'disk.opnbsd63' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory
Which seems straightforward enough, how ever I can not seem to get the syntax correct, where or how do I specify the raw format, ?
 qemu-system-x86_64 -m 1000, -drive format=raw,file=disk.opnbsd63 -netdev user,id=mynet0,hostfwd=tcp:  -device e1000,netdev=mynet0
qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory
Any help or advice will be appreciated
My best friends are parrots
Reply With Quote