Installing Ubunutu in Virtual Machine

Thursday, March 21, 2013

It is often necessary for us to install an operating system on an existing one for many reasons like Software Development, Client and Server Architecture and Web Development for visualizing the web page in various operating systems. There are also many others uses for installing a OS virtually. Installing OS (operating system)  virtually requires a good system Configuration. A processor supporting Virtual Core would perform better with virtual OS and the capacity of the RAM (Random Access Memory) also matters.

Available Software's

There are two choices of software's for us to install operating system virtually, in which both are equally the best in my concern.

  • Oracle's Virtual Box (Open source GNU license)
  • vmware Workstation (Commercial product)

I will be using vmware for installing Ubuntu OS Virtually. First Download and install the vmware software in your system. Installing the vmware software wont be any difficult if you have previous experience in installing windows type software's.


Once you have installed the vmware software launch it and from here we will go stepwise for you to understand and follow the steps easily.

1. Go to the File->New->Virtual Machine option Or press the keyboard shortcut Ctr l + N.

Creating a new Virtual Machine in VMware
Creating a New Virtual Machine in VMware

2. Once you click on the Virtual Machine option you will see a window popup. Click Next and you will be taken to next window as shown below. Here you have to select the location of the Operating System (in our case Ubuntu) that you wish to install.

You can either select the DVD driver, if you have a Boot-able CD or DVD inserted having the OS that you wish to install. The other option is to select the location of the image file of the OS you wish to install. Here the image file of the Ubuntu Operating system is used. The third option available is that "I will install the operating system later". That wont be discussed here, since it is not a better option.

Virtual Machine Creation Options
Virtual Machine Creation Options

3. Once you have selected the Operating system location click Next. In the next window you will be asked to give the User Name, Password and in the following window the Virtual Machine Name will be asked. Just provide those information and we are good to go.

Note: I didn't make a screenshot of those windows since they are very basic information to be provided. Once you click on the Next button from those windows you will reach the window shown below.

In this window you will be asked to select the Disk space or Size to be allocated for the Operating system. It must have a minimum of 20 Gigabyte of space, which is allotted by default as shown below.  After allocating the disk space you have two options. It is to store the Virtual Machine as a single file or to separate the given size into two half. Just select to store the virtual Machine as a single file and click Next.

Note: Since you have given 20 GB of disk space don't think it would take up all of the allocated 20 GB Given. It is dynamically allocated to the operating systems need. The more application you install and more the files you store in the VM then only the size increases. The Maximum size it can hold up to is the size we have allocated (20 GB).

Allocating the Disk Space for the Virtual Machine
Disk Space Allocation

4. In the next window you must customize the hardware configuration for the Virtual Machine. Which is very important if you want the virtual machine to work faster. Here only the important two setting will be discussed.

  • The RAM memory allocated for the Operating system. The standard memory size will be allocated which 512 MB. But it is good for you to allocated a minimum of 1GB for better performance and 2GB if possible for a very good performance. Don't provide all of the RAM memory you have in your system, then you will run into problem. Because we are running the system virtually, not as a standalone OS. we need some memory for the host operating system to work.
Ram Allocation and Other Settings
Ram Allocation and Other Settings
  • Next is the processor core. Remember what i told in the beginning of the post about the virtual processor. This were it comes to play. You must select the number of processors you want the virtual machine to work with. Just allocated half of how many ever cores you have in your processor. In my case since i have four, i will allocate 2 processor cores.
Allocating Processor Cores
Allocating Processor Cores

5. Once you have configured every thing click finish and you will begin installing the Ubuntu OS. Form there it is very easy to install Ubuntu.

Installing Ubuntu
Installing Ubuntu

6. Once you have installed the OS, right click on the Ubuntu OS (This is the name of VM i have given) and select the settings which is under the favorites option in the left pane as shown in the above image. select the Options tab in that menu. Select the shared folder option, in that enable Always Enabled radio button. Then Click on the Add button and you will be prompted with a window as shown below.

Sharing Folders With the Virtual OS
Sharing Folders With the Virtual OS

7. Click Next and provide the information's until you reach the window below. Select the Drive or Folder that you wish to share in the Virtual Operating system press next and finish the sharing process. That's it. If you have done everything.

Selecting the Drive to share fromt the Host OS
Selecting the drive to share

Now you can start the Virtual machine and the folder that you shared will be visible inside the Ubuntu Operating System.