I am trying to run my .qcow2
image in Mac OS X with qemu-system-x86_64
, it works perfectly fine on my Debian machine but for memory problems I need to move it to a Mac OS X Catalina machine. I installed qemu-system-x86_64
through brew
and then when I launch my machine with
qemu-system-x86_64
> -m 8G
> -vga virtio
> -show-cursor
> -usb
> -device usb-tablet
> -enable-kvm
> -drive file=/Volumes/enricoWD/transfer_home_laptop/dxcator_home_backup_feb2020/diag-stage.qcow2,if=virtio
> -accel hvf
> -cpu host
it starts but after 4 seconds crashes with:
vmx_write_mem: mmu_gva_to_gpa ffff9ac27b23fcdc failed
Abort trap: 6
I saw other users encountered this problem here, but no answer provided.
If anybody has a clue, or suggestion for other ways to run my .qcow2 machine on Mac OS X it would be great! Thanks a lot in advance!
2
Answers
I was able to fix a similar problem using two different methods related to QEMU / KVM CPU model configuration.
Both used Homebrew’s port of QEMU, version 5.1.
Option #1: Specify the CPU Model
Try specifying the CPU model which most closely matches the host machine.
A search at ark.intel.com, for
i5-4690
yields only one 3.5 GHz option, so this is my CPU.Using the
Product Collection
andCode Name
, this CPU must correspond to thex86 Haswell-v4
model.Option #2: Emulate the CPU
If you still have issues, you can try emulating the CPU instead of using host passthrough.
This just requires using the default
qemu64
CPU type.You can do this like so:
Disable huge pages