Installing TarHeel Linux 5 as Guest OS in Windows 7 Using VirtualBox

Installation of VirtualBox in Windows 7

Download VirtualBox for Windows 7 from the VirtualBox download page. Install VirtualBox as described in the VirtualBox Installation Manual for Windows Hosts.

Setting Up VirtualBox of TarHeel Linux 5 Installation

Invoke VirtualBox on Windows 7 by double click on the “Oracle VM VirtualBox” icon on the desktop.

Click “New” icon to create a new virtual machine and click “Next” in the “Welcome to the New Virtual Machine Wizard!” window.

In the “VM Name and OS Type” window, enter Name as “TarHeel Linux 5”, Operating System as “Linux” and Version as “Red Hat (64bit)”. Click “Next” to continue.

In the “Memory” window, depending on how much memory you want to allocate to TarHeel Linux 5, enter the value and click “Next” to continue.

In the “Virtual Hard Disk” window, Check “Boot Hard Disk” and select “Create new hard disk”. Click “Next” to continue. Then, the “Welcome to the Create new Virtual Disk Wizard!” window pops up, click “Next” to continue.

In the “Hard Disk Storage Type” window, select “Dynamically expanding storage” and click “Next” to continue.

In the “Virtual Disk Location and Size” window, set the size to 60GB. Click “Next” to continue.

In the “Summary” window, review the virtual hard disk parameters and click “Finish” to continue.

In the next “Summary” window, review all parameters and click “Finish” to continue.

TarHeel Linux 5 Installation

The Oracle VM VirtualBox application is now configured to have a guest OS as “TarHeel Linux 5” in “Powered Off” state. Put the “TarHeel Linux NetInstall 5.5” disc into the CDROM drive. Select “TarHeel Linux 5” and click “Start” to power up the TarHeel Linux 5 OS. The “TarHeel Linux 5 [Running] – Oracle VM VirtualBox” window pops up. In the “Devices/CD/DVD Devices” menu, check “Host Drive ‘D:'” to enable the CD/DVD drive for the TarHeel Linux 5 guest OS. TarHeel Linux 5 installation will start. Finish the TarHeel Linux 5 installation as if it is a normal install. When the installer asks for rebooting the system, pop the “TarHeel Linux NetInstall 5.5” disc out and click “Reboot”.

Installation of VirtualBox Guest Additions

In order to improve the display resolution for TarHeel Linux 5 guest OS on VirtualBox, we need to install VirtualBox Guest Additions. Once the TarHeel Linux 5 is up and running, select the menu Devices > Install Guest Additions…. The Guest Additions software will be mounted as if it is a CDROM media. Open up a terminal window and log in as root. Depending on the version of VirtualBox you are installing, the mount point will be different. Change the name of the mount point as needed.

cd /media/VBOXADDITIONS_3.2.8_64453

For 64 bit TarHeel Linux installation, we run the following command.

sh ./VBOXLinuxADDITIONS-amd64.run

For 32 bit Tarheel Linux installation, we run the following command instead.

sh ./VBOXLinuxAdditions-x86.run

In the Devices > CD/DVD Devices menu, uncheck “VBoxGuestAdditions.iso” so that it will unmount Guest Additions iso image.

Then, reboot TarHeel linux 5 virtual machine using this command.

reboot

If the kernel of TarHeel Linux has been updated, Guest Additions installation will need to be done again since Guest Additions is kernel dependent. During installation, it will rebuild a kernel module for the new kernel.

Setting Video Resolution

The display resolution can be set properly in the System > Administration > Display menu in TarHeel Linux 5. Choose the right video resolution for your screen, click “OK” to continue. Then, log out and log back in.

With Guest Additions, the TarHeel Linux 5 guest OS window can be re-sized. Mouse is also integrated nicely between Windows 7 and TarHeel Linux 5.