7

I am trying to install Redox OS with Virtual Box on my Ubuntu 18.04 machine. The "book" says this:

Trying Redox in a virtual machine

The ISO image is not the prefered way to run Redox in a virtual machine. Currently the ISO image loads the entire hard disk image (including unused space) into memory. In the future, the live disk should be improved so that doesn't happen.

Instead, you want to use the hard disk image, which you can find on the release pages as a .bin.gz file. Download and extract that file.

You can then run it in your prefered emulator; this command will run qemu with various features Redox can use enables:

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_VERSION.bin,format=raw

Change redox_VERSION.bin to the .bin file you just downloaded.

Firstly, I couldn't find any .bin.gz file in the linked release pages. However, I was able to find one on their GitHub. Secondly, I don't understand where I'm supposed to run the mentioned command - in my ubuntu terminal? If I do, how will it open in Virtual Box? And what does "preferred emulator" mean? This is my first post in this stack exchange, so please tell me if any edits to the question are required. I also checked on the web - I couldn't find any answer to my questions.

4

In the virtualbox install dir (C:\program files\oracle\virtualbox) there is a utility which can convert a raw disk image (like the one from Redox) into a Virtualbox Disk Image (VDI) disk.

Use it like this (if your redox raw hdd file is called harddrive.bin and is located in C:\temp):

"C:\Program Files\Oracle\VirtualBox\vboxmanage" convertdd c:\temp\harddrive.bin redox.vdi --format VDI


Create a new VM with Redhat 64 Bit as a template.

And then during the finalization of the creation of your VM, you simply choose the created vdi file as your primary hardisk for your VM.

0

On the book you can find the releases page, pick the latest.
I take the version 0.5.0 here because it's the last release as of writing. In the releases notes there is a link to the Redox OS's Gitlab with their builds. On this page:

  • Download the file redox_0.5.0_harddrive.bin.gz
  • Extract the archive
  • Run the command given in the book and replace redox_VERSION.bin by the file you just downloaded, sudo may be required according to your rights.

A new window (Qemu) opens and Redox OS boots. You can then follow the book and login.

Note: The keyboard layout is QWERTY. It's important when typing the password.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.