Showing posts with label Virtualization. Show all posts
Showing posts with label Virtualization. Show all posts

Monday, October 10, 2011

How to improve disk I/O performances with VMware Workstation


Even on a 2 GB RAM workstation (as mine) VMware virtual machines can run slowly. Too slowly sometimes.
This can depend on a large amount of factors but we can reduce the number to 4 critical issues:
1.                 Antivirus real-time protection
You probably run VMware Workstation on your everyday working computer, and you probably want to stay secure running an antivirus software.

The most useful feature of any AV is the real-time protection, catching and monitoring I/O accesses of every process for suspicious activities. This feature can greatly impact on your VMs performances and should be fine-tuned for virtualization.

So be sure to create an exclusion filter on your real-time protection settings for .vmdk (VMware virtual disk) and .vmem (VMware virtual memory) files. In this way countinous I/O operations on your virtual machines will not be hit by antivirus checking.

Note: if you plan to run liveCD operating systems (like Knoppix) inside your VMs or simply often use CD images for installing new software, I highly recommend to exclude .iso files too from AV checking.
2.                 HostOS disk fragmentation
A really performance hitter for virtual machines is a fragmented host OS disk.

VMs virtual disks are very large (4 GBs at minimum on the average) and are created by default as non preallocated. In other words your virtual disk grow as you install more software on the guest OS till reaching your defined disk limit.
If you use only one physical disk for everyday work and VMs storing, you probably will use space around a growing virtual disk, obliging your host OS to fragment virtual machines more and more.

So be sure to:
1.       Create a dedicated partition for virtual machines only
2.       Create guest OSes virtual disks with Allocate all disk space now option
3.       Schedule a daily defragmentation for your virtual machines directories (maybe at launch time or during the night)
3.                 Memory trimming
Workstation checks which part of the guest OS virtual memory is not used and allocates it back to the host OS. This permits to have more concurrent virtual machines running but everytime the guest OS asks back for its memory it suffers a performance degradation.

So, if you have enough free RAM for all planned concurrent VMs, be sure to disable memory trimming for guest OSes adding the following line to the virtual machine configuration (.vmx) file:

MemTrimRate=0

Note: Memory trimming can be disabled through GUI since Workstation 6.0.
4.                 Page sharing (quoted from VMware documentation)
VMware uses a page sharing technique to allow guest memory pages with identical contents to be stored as a single copy-on-write page. Page sharing decreases host memory usage, but consumes system resources, potentially including I/O bandwidth.

You may want to avoid this overhead for guests for which host memory is plentiful and I/O latency is important. To disable page sharing, add the following line to the virtual machine configuration (.vmx) file:

sched.mem.pshare.enable=FALSE option
These suggestions will work well for every VMware Workstation 5.x and Player 1.x since both share same engine.

VM Maintenance(virtual machine snap shot)



 SnaP sHOT VERY GOOD FEATURES OF vm WARE MACHINE..


To make the VM user familiar with VM manager and the practices to be followed while maintaining different machine states.




Snapshot Manager:- A typical VM Scenario represents multiple states of the machine/environment in form  of snapshots. These snapshots are being managed by an interface called Snapshot manager
 

Snapshot manager enables you mange VM states through a set of commands for which there are controls given in snapshot manager.

>Take Snapshot
>Go to
>Delete
>Clone
>Close
>Help



1.Taking a snapshot:- Taking a snap shot implies capturing a state of the machine at any point of time. This can be done through Take Snapshot  control given in snapshot manager. It basically captures the state of the machine and assigns name and description to it.


Steps Involved
a) Click on Take snapshot button.
b) Give appropriate name and description that best describes the sate.
c) Wait till the time status is shown as 100% completed.


2.Go To:-Once machine’s state has been captured any point of time,  current state of the machine can always be reverted to that state with the help of Go To. By doing so user would loose the current state of the machine.




Steps Involved

a)Select the state  to which current state is to be reverted
b)Click on Go To
c)Wait till the time state has been completely restored.


3.Delete

 



Steps Involved

a)Select the state which is to be deleted.
b)Click on Delete
c)Wait till the time state has been completely deleted.


4. Clone:
5. Help&Close


Practices to be followed for VM maintenance while executing Test packs

ü      Keep minimum last two snapshots of the machine’s to keep the data for previous two month’s test pack execution.




 


ü      To start pack execution for any month, install first available build of the month on the Pilot of the previous month.


 



ü      A Pilot build should always be installed on the Pilot of previous month’s Pilot.


                                       ***your comments is appreciable***

How to create VMWare Machine


I am posting, how to create your virtual environment through VMware.
Make sure,VMWare setup has been installed in your machine.
(This is only a simple process, just clicking next tab.)

How to create VMWare machine

  1. Click on New Virtual Machine

 
  1. Click on Next to proceed

3. Select Option “Typical”
 

4. Select Operating System and the Version as mentioned in drop box
 

  1. Select the path of the Virtual Machine from the pop up window.
 

  1. Select the Network Connection.
 
  1. Select the Disk Capacity for the VMWare Machine.
 

8.  Now start using same Virtual machine.
 
 Open existing Virtual Machine from the path as located.and run it
  1. Run newsid from path \\diamond\development\softwares\utilities\newsid.exe
  2. Rename the Computer name to different name.
  3. Once it is finished cross verify that the registry “Regedit” is having the correct computer name.
  4. Also at times needs to release IP and renew new IP – run at command prompt ipconfig\release and then ipconfig\renew
  5. Once all is done change the database table PMSystem with the new computer name accordingly.
  6. Open Applications….


                                                         ***your comment is appreciable***