Trying Redox in a VM under macOS


#1

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:


#2

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.


#3

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