June 3, 2009

Installing Guest OS on VirtualBox

VirtualBox will be useless if there is no operating system/s installed in it. To install operating systems in VirtualBox, follow these steps:

  1. Start Sun Virtualbox by going to Applications -> Systems Tools -> Sun VirtualBox.
  2. Click on the New button. A Create New Virtual Machine dialog box will appear. Click the Next button. Enter a name for the virtual machine and select the OS type you want to install. In my unit, I installed Windows XP and I named the virtual machine "WindowsXP" to be descriptive.
  3. The next dialog box prompts you for the memory to be allocated to the virtual machine. After entering the memory, click the Next button.
  4. In the next dialog, you will be prompted to create a new virtual hard drive or use an existing one, if there is already one. Select your choice then click the Next button.
  5. Click the Next button in the Create New Virtual Hard Drive dialog box.
  6. You will then be asked for the hard disk storage type. The first option is to dynamically expand the space and the second one is to create a fixed size. I chose the first option. Click the Next button after selecting your choice.
  7. Now, the disk location will be asked. You can just choose the default filename(same as the hard drive name). Also, you can specify the capacity of the hard disk. After selecting, click the Next button.
  8. In the summary dialog, verify your chosen settings then click the Finish button. In the confirmation dialog, click the Finish button.
  9. Click on virtual machine and then click on the Settings button at the top. Under the General setting, you can resize the RAM and video settings. Click CD/DVD-ROM on the left side. Check Mount CD/DVD drive. Select your CD/DVD drive. If you choose Host CD/DVD Drive, select your drive from the drop down box while if you choose ISO Image File, select the location of your ISO file.
  10. Click on Audio on the left side. Check Enable Audio and select your Audio Driver. Click on the USB option. Check Enable USB Controller. Click on the tiny USB cable icon with small green dot on the right. It'll show you all available USB devices. Add those to the filter.
  11. Click the OK button. To start the virtual machine, click the Start button on the top. Before you can use the virtual machine, you must first install a virtual operating system. Installing an OS on the virtual machine is much like installing on a real hard disk.