bradleyd / devops_for_the_desperate

The companion code for the book DevOps for the Desperate
111 stars 62 forks source link

creating vm using qemu fails apple-silicon #17

Closed bsantanad closed 1 year ago

bsantanad commented 1 year ago

Hello there,

I'm using a macbook with M2, 256GB, 16GB. I'm following the instructions under apple-silicon/qemu , after downloading the tar file, and running:

qemu-system-aarch64 -cpu cortex-a72 -smp cpus=4,sockets=1,cores=4,threads=1 -machine virt,highmem=off -accel hvf -accel tcg,tb-size=2048 -m 4G -initrd initrd.img-5.10.0-11-arm64 -kernel vmlinuz-5.10.0-11-arm64 -append "root=/dev/vda2 console=ttyAMA0" -drive if=virtio,file=debian-dftd-aarch64.qcow2,format=qcow2,id=hd -net user,hostfwd=tcp::10022-:22,hostfwd=tcp::20375-:2375,hostfwd=tcp::5001-:5000 -net nic -device intel-hda -device hda-duplex -nographic

I get this error and then bails out.

qemu-system-aarch64: Addressing limited to 32 bits, but memory exceeds it by 1073741824 bytes

Do you know what might be the issue?

PS: really enjoying the book so far :)

bsantanad commented 1 year ago

I changed the memory to 3GB and it worked.

Garrowni commented 8 months ago

I changed the memory to 3GB and it worked.

ditto! Thanks for this :)