Installing a virtual machine on a Microsoft® Windows® or Macintosh® computer enables you to run Linux® on that computer as a guest operating system. You have probably heard of the virtual machine named "Parallels" that enables users to run Windows on a Mac. Another virtual machine example is the VirtualBox. It enables Linux to run on a Windows or Mac host.
1 Download VirtualBox and Ubuntu Installer
Download VirtualBox and the Linux distribution of your choice. Some popular Linux distributions include Fedora and Debian. If you want to run Linux on an old computer, Puppy Linux or Lubuntu may be a better choice. We have chosen to use Ubuntu for this example.
VirtualBox download:
VirtualBox Home Page
Ubuntu download:
Ubuntu Download Page
We recommend you choose the most recent Long Term Support (LTS) version and 32-bit. The 32-bit version will probably run faster in a Virtual Machine (VM), even if you have a 64-bit computer.
2 Install and Open VirtualBox
Execute the VirtualBox install program then start VirtualBox.
Click Next to use all default settings.
3 Create a New VM
4 Provide Location of Ubuntu Install File (ISO)
5 Start the Virtual Machine to Install Ubuntu
4
Select Erase disk and install Ubuntu then click Install Now.
I'm sure you are afraid to do this but have faith. It will be OK. This will only affect the virtual hard disc you created in step 3.4 through 3.7 above.
You will see a message about making changes to the disks. Click Continue.
8
Click Restart Now when the installation completes, then press Enter at the prompt.
You may see some warning messages as the virtual machine restarts. Disregard them. You will be asked to remove your virtual installation disc from the virtual CD/DVD drive. Pretend to do this, then press Enter (carriage return).
6 Resize Ubuntu Window (Optional)
2
Click the Devices menu (top of window) and select Insert Guest Additions CD image….
A message box will open asking if you want to automatically run the software on the virtual CD. Click Run. An Authenticate box will open. Enter your password and click the Authenticate button. This will start the VirtualBox Guest Additions software installation. Press Enter to close the window when complete.