Trying Redox in a VM under macOS

Hi, i’m trying to follow the instructions in the book for trying out Redox here:
https://doc.redox-os.org/book/getting_started/try_vm.html

It suggests running the following:

qemu-system-x86_64 -serial mon:stdio -d cpu_reset -d guest_errors -smp 4 -m 1024 -s -machine q35 -device ich9-intel-hda -device hda-duplex -net nic,model=e1000 -net user -device nec-usb-xhci,id=xhci -device usb-tablet,bus=xhci.0 -enable-kvm -cpu host -drive file=redox_0.3.5.bin,format=raw

But i get the following error:

qemu-system-x86_64: -machine accel=kvm: No accelerator found

I’ve installed qemu by using ‘brew install qemu’. I’m using High Sierra.
Can anyone suggest a qemu command line that might work? I can’t pretend to understand all those command line arguments.

Thanks so much and good on you for creating this OS it looks very promising :slight_smile:

This seems to work:

qemu-system-x86_64 -serial mon:stdio -d cpu_reset -d guest_errors -smp 4 -m 1024 -s -machine q35 -device ich9-intel-hda -device hda-duplex -net nic,model=e1000 -net user -device nec-usb-xhci,id=xhci -device usb-tablet,bus=xhci.0 -drive file=redox_0.3.5.bin,format=raw

Would it be worth considering adding this to the ‘book’ to make things more straightforwards for macos users?

I’m not sure what ill effects removing the ‘-enable-kvm -cpu host’ has, too.

1 Like

It disables hardware acceleration, which qemu only implements on linux.

2 Likes

For people having the same problem in 2022: I also needed -cpu max, otherwise Redox 0.7.0 would run into some strange state. (I only found out by trying 0.6.0, which resulted in a more helpful “CPU feature missing”.)

1 Like