View Single Post
  #1   (View Single Post)  
Old 6th August 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 415
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) :
Code:
qemu-system-x86_64 -m 600 -drive if=virtio,file=disk.opnbsd63 -netdev user,id=mynet0,hostfwd=tcp:127.0.0.1:7922-:22 -device e1000,netdev=mynet0
When I try this:
Code:
qemu-system-x86_64 -m 1200 -drive if=virtio,file=disk.opnbsd63 -netdev user,id=mynet0,hostfwd=tcp:127.0.0.1:7922-:22 -device e1000,netdev=mynet0
I get this:
Quote:
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, ?
Code:
 qemu-system-x86_64 -m 1000, -drive format=raw,file=disk.opnbsd63 -netdev user,id=mynet0,hostfwd=tcp:127.0.0.1:7922-:22  -device e1000,netdev=mynet0
Code:
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