Running Minix 3 On Virtualbox: 1. Preliminaries
Running Minix 3 On Virtualbox: 1. Preliminaries
Running Minix 3 On Virtualbox: 1. Preliminaries
1. Preliminaries
Please install VirtualBox. VirtualBox binaries can be downloaded from their webpage. If you're running a Linux distribution, you can install VirtualBox via the package manager.
3. Installation
Assuming you have downloaded and decompressed a MINIX 3 ISO image from the download page, you can mount the ISO file: 1. 2. 3. 4. Select MINIX3 on the list on the left. In the menu on the right, press CD/DVD-ROM. In the next menu, tick Mount CD/DVD Drive, and select ISO Image File. Browse, select the .iso Minix image we downloaded earlier and press OK.
to exit Minix. When you get the d0p0s0> prompt, select Machine-Close-Power off the machine from the menu, in order to shutdown the Virtual Machine.
4. Booting MINIX 3
Now you have installed MINIX 3 on the virtual machine. First thing that needs to be sorted, is that next time you boot, you want to boot from the operating system, and not from the CD image. 1. In the menu on the right, press CD/DVD-ROM. 2. In the next menu, untick Mount CD/DVD Drive Great, now you can boot into the newly installed operating system. 1. Press the big Start Button on the main menu.
5. Post-install Configuration
You should read Post Installation for some configuration tips.
5.1. X.org
VirtualBox's guest additions are not available for MINIX3. Therefore, MINIX cannot correctly guess the screen resolution. The desired screen resolution has to be set manually in the xorg.conf file. 5.1.1. Changing screen resolution Make sure you are not running X! Login as root, and run the following command:
# Xorg -configure
In Section "Screen" from xorg.conf.new file, make sure to remove all SubSection "Display", except the one containing: Depth: 16. Add the desired screen resolution. Possible screen resolutions can be found in /var/log/Xorg.0.log. Search for Modes: containingBitsPerPixel: 16, this is important!. Example:
*Mode: 117 (1024x768) [...] XResolution: 1024 YResolution: 768 [...] BitsPerPixel: 16 [...]
These resolutions can be added to the newly generated xorg.conf.new (in the example above: 1024x768). I was able to use the following resolutions: 320x200, 640x480, 800x600, 1024x768, 1280x1024, 1152x864. Add the desired resolution to the Modes: key in SubSection "Display". Example:
[...] Section "Screen" [...] SubSection "Display" Viewport 0 0 Depth 16 Modes "1024x768" EndSubSection EndSection [...]
Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 16
6. Port Forwarding
VirtualBox has eight networking adapters and can be separately configured to operate in one of the following six modes:
Not attached. Network Address Translation (NAT). Bridged networking. Internal networking. Host-only networking. Virtual Distributed Ethernet networking.
It is possible to browse the Web, download files and view e-mail inside the guest (MINIX 3) with the Network Address Translation mode. In this default mode (NAT) the guest operating system can not access the host machine or other computers on the same network and vise versa. However, like a physical router, VirtualBox can make selected services available through port forwarding. This means thatVirtualBox listens to certain ports on the host and resends all packets which arrive there to the guest, on the same or a different port. For example, to forward SSH traffic from host machine to guest machine on port 22 or vise versa:
VBoxManage modifyvm "VM name" --natpf1 "guestssh,tcp,,22,,22"
The "VM name" is the name of VM on the VirtualBox management screen, and "guestssh" is purely descriptive name and will be auto-generated if omitted. Connecting to guest machine with following command on host machine
ssh -p 22 localhost
The guest operating system is available for host machine and other machines on the network as well though the same port 22 at the host's IP address (if host machine firewall allows it). This is useful for remote development and navigation with Eclipse Remote System Explorer.
7. Workarounds