Friday, April 9, 2010

How to install guest OS from image file

Open VM workstation and select the virtual Machine settings


















Select CD/DVD and right hand side browse the location of image file



Clik ok finish

Now you can start virtual machine for installtion

Create Shared Folder in VMware And access the shared folder from guest OS

share files among virtual machines and the host computer
Start the VMware and select the virtual machine








Click on Edit virtual Machine Settings, following dialog will appear.










Go to tab option and select shared Folders

Right side you can see 3 options. Select Always enabled or Enabled until next power off or suspend.
clicking Add starts the Add Shared Folder wizard. On Linux, it opens the Shared Folder Properties dialog box


Add button will open above wizard dialog, please follow the instruction on this wzard screen



You can name the folder using Name field (this name will apear on guest os)
The above mesage will no appear if you are using local folder for sharing

Select the prefered option you like

Now click ok to finish.

How to access this folder in Linux :
After log in : open terminal

$/mnt/hgfs or #/mnt/hgfs

Tuesday, April 6, 2010

Install Redhat Enterprise Linux 5 on VMware Workstation - Part 1

Double click the Vmware workstation icon on the desktop and prepare the new virtual machine setup
 Click on the new virtual machine icon:









Select Typical option on the Virtual Machine creation wizard
Guest operating system page will appear, There are 3 options available for installing Guest OS:


Install disk - Install guest OS from CD/DVD

Installer images file - Location of image file

Select install later - This option allow you to create a virtual machine without installation.

First 2 option start installation immediately after the creation of virtual machine ,but last option just create the virtual machine only, installation should be done manually.

Now select the guest operating system that you want to install

Enter the location of virtual machine


Enter the disk capacity


Summary page will pear click finish to create the virtual machine
Following page will appear after finish the creation of virtual machine



Friday, April 2, 2010

How to add additional Disk to VMWare Linux Virtual Machine

Open the VMWare
Select the Linux virtual Machine , that you want to add more space.

Click on edit Virtual machine settings. This will allow to configure virtual machine devices. Below I have attached the screenshot of virtual machine setting dialog box.



Now we will seee how to add new hardware using this setting dialog
box







Click on Add button, it will open a "Add Hardware Wizard" dialog box.











Select Hard Disk from the list of hardware.












Select create new virtual disk











Select disk type as SCSI (recommended)
Set the diskspace. In this example I have used 50GB


Enter the name and location of the disk file. After that click finish button.

Now Start the virtual Machine.  You can view the new device under /dev folder in linux virtual machine. Now we need to partition this new device using fdisk.

Small Introduction for fdisk
fdik is a menu driven program for creation and manipulation of partition tables. It understands DOS type partition tables and BSD or SUN type disklabels.

The device is usually one of the following:


/dev/hd[a-h]   for IDE disks
/dev/sd[a-p]   for SCSI disks
/dev/ed[a-d]   for ESDI disks
/dev/xd[ab]    for XT disks

Partition is a device name followed by a number (e.g sdb1)

How to use fdisk for our purpose:
Enter commnd fdik /dev/sdb








Enter n for new partition ,
Enter p for primary partition
Enter w for altering partition

Next step is to format the above partition:
I have used ext3 filesystem for this partition mkfs -t ext3 /dev/sdb1

Create a mount point for new partition

In this I want to mount this partion to u01 folder

create folder using mkdir /u01. Now mount the new partition to new folder using command mount -t ext3 /dev/sdb1 /u01.

To check the partition is properly mounted using df -k . This command will display mounted points and avaiable disk space.

Open the /etc/fstab file and add /dev/sdb1 /u01 ext3 defaults 1 1.
The /etc/fstab used to map devices to location. Typically when you plug in an external device, after plugin external device will appear under /dev folder.


But we can't access these devices through /dev folder. You need to map these devices to a normal folder, so it can be used. Without fstab file only root user can able to manage theses devices. Creating a fstab entry will allow permission to normal users.