How to run Linux on Windows

This tutorial is not about installing Linux on bare metal nor about dual booting along with Windows however we are going to do it the easy way. The magic word here is virtualization. We will run Linux on Windows using virtual machines. There are so many advantages of virtualization in general but this topic is beyond the scope of this tiny article. I will be using my 64 bit Windows 7 machine as the host operating system. The Linux virtual machine is going to be a guess operating system. Though Linux in this case is virtual it behaves like a real physical machine however it consumes computing, memory and storage resources from the windows physical machine. Please follow the steps below:

Using VMware Player

    1. Download VMware player from: http://www.vmware.com/download/player
    2. Click the link “VMware Player”
    3. Once the download is completed. Install it using the provided windows installer. Follow the instructions and keep the default settings
    4. Download a VMware virtual machine image of Ubuntu Linux from: http://www.trendsigma.net/vmware. You can select the version as you wish
    5. Once the download is completed extract the zip file to some location
    6. Launch VMware player
    7. Click “Open a virtual machine”
VMware Player
VMware Player
    1. Navigate to where the virtual machine image was extracted then open the vmx file
Open VMware Image
Open VMware Image
    1. Click “Play virtual machine”
Play Virtual Machine Image
Play Virtual Machine Image
    1. That is all you need. You have now a Linux machine up and running
Linux on Windows
Linux on Windows

Using Oracle Virtual Box

I like this method more than the previous one as I noticed it is a better experience and faster as well. Follow the steps below:

  1. Download VirtualBox from: https://www.virtualbox.org/wiki/Downloads
  2. Select VirtualBox for Windows hosts (x86/amd64)
  3. Once the download is completed invoke the windows installer and follow the instructions using default settings
  4. Download a free Ubunto Linux virtual image from: http://virtualboximages.com/Free.VirtualBox.VDI.Downloads
  5. Once the download is completed extract the compressed file to some directory
  6. Restart your windows machine then press F1 just after shutdown in order to enter the setup
  7. Go to security menu
  8. Select Virtualization
  9. Enable both settings: Intel Virtualization Technology and Intel VT-d feature
  10. Save and exit
  11. After windows boots up open VirtualBox/li>
  12. Click New then next
  13. New Virtual Machine
    New Virtual Machine
  14. Give the virtual machine a name for example Ubuntu and select the OS and version
  15. VM Name and OS Type
    VM Name and OS Type
  16. Specify the amount of memory allocated to the virtual machine for example 1G
  17. VM Memory
    VM Memory
  18. Create a virtual hard disk using an existing one. You can navigate to the directory contain the virtual image we just extracted in step 5 then click create button on the next screen
  19. Virtual Hard Disk
    Virtual Hard Disk
  20. Enable bridge mode network setting so that the VM and Windows can communicate with each other
  21. Network Settings
    Network Settings
  22. Start the virtual machine
  23. Start Virtual Machine
    Start Virtual Machine
  24. After Linux boots up it will ask for a user name and a password. The default user name and password for our installation is adminuser. You should now have Linux up and running
  25. Linux on Windows using Virtual Box
    Linux on Windows using Virtual Box

Note: If you need to clone the original VDI file and create a new VM you might encounter an error message saying can not register the hard disk because it already exists in the media registry. The solution is very simple, just execute the following command from windows command line:

Thanks for reading.

Add a Comment

Your email address will not be published. Required fields are marked *