Thursday, 1 May 2014

Install Linux in Vmware Workstation

Install Linux in Vmware Workstation

Generally most of us are using Windows OS and are new to Linux these days. We need to practice on Linux Server OS but we are unable to do our practice as we have only one PC with us. Here is a solution for this. Depending on our physical machine we can install number of VM's. For this all we need is Vmware Workstation application and Linux ISO image or disk.

First of all we need to install the Vmware Workstation application on our Windows machine. I am using VMware Workstation 8. After installation open the VMware application, it will looks like below.

Select "Create a New Virtual Machine" option.
  
Select Typical and click on Next

Select "I will install the operating system later." and click Next.

Select the Guest OS type as "Linux" and select your OS under the "Version".

If you want to rename the VM you can do here or else you can leave it just as it is and change the location to some where else from "C:\"

Provide the maximum disk space for the VM and select the first option to keep this VM disk file as a single file.

Select Customize Hardware option to do some required customizations.

Select Memory in the left pane and allocate memory. Try to give a minimum of 1GB.

Select Processor in the left pane and choose No. of Processors and No. of cores per proccessor. In my case it is a Dual core CPU so i have choosed as "1 Proccessor" and "2 Cores"

Select CD/DVD in the left pane and select Use Physical Disk if your are using a Disk. If you are using an ISO image select second option and locate it.

Select Network in the left pane and select Bridged option and check the box below to replicate with the phisical network. Click on Close

Click on Finish.

Here is our newly configured Virtual Machine and it is ready to install. All we need is to install. Click on Power ON the VM to turn it ON.
Note: If you want to come out of VM press "Ctrl + Alt".
If you want to get into the VM just click inside the VM.
If you want to have full screen press "Ctrl + Alt + Enter".

Now to continue the installation refer to
http://linux-library.blogspot.in/2013/09/ela04installation.html

After completing the installation you can continue practicing your Linux. If you want to have connected with your physical network and share resources or to access tthe VM from physical machine you need to configure a Loopback interface in your windows machine.

For that open Run and type hdwwiz and click OK.

Click Next.

Click "Install the hardware that i manually select from a file" and click Next.

Select Network Adapters and click Next.

Select Microsoft in the left pane and Microsoft Loopback Adapter in the right pane and click Next.
Click Next.


Click Finish.

Go to the following navigation.
Control Panel --> Network and Internet --> Network and Sharing center.
There click on Change Adapter Settings.

Right click on your newly created interface and select properties. In my case it is Local Area Connection 2. If you want you can rename it as Loopback as per your convenience.

Double click on IPv4.

Give the IP as the per your convience. In my case i have configured 192.168.1.1 as my IP. Then provide the Netmask and click OK and again click OK in the next screen.

Now you have successfully configured your loopback. You can test it by pinging it. Also you need to give an IP for your Linux VM within it by using system-config-network utility. You need to provide an IP with in the network of your Loopback interface. Below is the scenerio of my case.

Loopback Interface of Phisical Machine:

IP : 192.168.1.1
Netmask : 255.255.255.0

NIC of Linux VM:
IP : 192.168.1.10
Netmask : 255.255.255.0
Gateway : 192.168.1.1

For testing this you can ping your VM from Physical Machine.

No comments :

Post a Comment