skip to Main Content

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


  1. 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.

    1. Determine the CPU type of the host machine.
    $ sysctl -a | grep machdep.cpu.brand_string
    machdep.cpu.brand_string: Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz
    
    1. Find the matching CPU model supported by QEMU.
    $ qemu-system-x86_64 -cpu help
    

    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 and Code Name, this CPU must correspond to the x86 Haswell-v4 model.

    1. Substitute the CPU model in the QEMU command.
    $ qemu-system-x86_64 -cpu Haswell-v4 ...
    

    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:

    $ qemu-system-x86_64 -cpu qemu64 ...
    
    Login or Signup to reply.
  2. Disable huge pages

    -cpu host,-pdpe1gb

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search