Jul
25
2012

Improving Performance of your Virtual Machine

http://www.howtogeek.com/howto/31303/improve-vmware-vm-performance-by-defragmenting-virtual-disks/

 

Improve VMware VM Performance by Defragmenting Virtual Disks

Have you noticed your VMware virtual machines sees like they’re sluggish and slow to respond?  Here’s how you can quickly defragment your virtual disks to make them fast as they were originally.

Just like a hard drive on a normal computer, the virtual hard drive on a virtual machine can become defragmented over time.  In fact, if your virtual disk is setup to dynamically expand over time, then fragmentation can become a serious problem, especially if your hard drive is low on free space.  You may notice your virtual machines running slower or being less responsive, and VMware itself may even notify you that your virtual disk is too fragmented.

Here’s what you’ll need to do.  First, while your virtual machine is running, run the default disk defragmenter as normal inside the virtual machine.  This may take some time if you haven’t done it in a while, and may also slow your whole computer down while it’s running.

Once the virtual machine’s OS has finished defragmenting, shut down the virtual machine.  Then, open your VMware virtual disk properties.  To do this in VMware Workstation, double-click on the Hard Disk info on the virtual machine’s main page.

Alternately, if you’re using VMware Player, right-click on the virtual machine’s name and select Virtual Machine Settings.

Then select the Hard Disk entry from the Hardware tab if it’s not already selected.  If your virtual machine has multiple virtual disks, you may wish to repeat these steps on each virtual disk.

Click the Utilities button

VMware will start defragmenting your virtual disk.  This may take a while depending on your virtual machine’s size and how often you defragment it.

Once it’s done, you’ll be notified that the defragment is completed.

To improve performance even more, you should also regularly defragment your host computer’s hard drive.  This is not much of a problem in Windows 7 and Vista since they automatically keep your hard drive defragmented, but if you’re using XP, you might want to setup automatic disk defragmenting.  Alternately, if you’d like more defragmenting control, you can always run the defrag command in an elevated command prompt for a wide range of analysis and defrag options.

Most of us don’t think much about defragmenting virtual machines, but it can seriously improve your virtual machines’ performance.  We’re big fans of the free VMware Player, and if you have more advanced needs, VMware Workstation is a great option as well.  The great thing is, no matter which one you’re using, you can still keep your virtual machines running at top speed with a quick defrag. 

[Updated]  The opensource UltraDefrag might be a better option to use as it will defrag files of any size

Jul
26
2011

Configuring Network Interfaces in VMWare Player7 and VMWare Workstation 7

VMWare Player is a free verson of VMWare Workstation with reduced functionality -- mainly you cannot easily create new Virtual Machines and you cannot take advantage of advanced features like Snapshots and Teams.  Outside of that it is an incredible product that can provide huge benefits to Admins and Developers alike.

One topic that comes up now and again is how to modify the default network settings that ALL virtual machines on a specific computer use. These are used for concepts like NAT and HOST ONLY network access.  For this cases VMWare will assign a set of IP addresses from a specific group.  It is usefull from time to time to be able to change these settings.

 

The easiest way to do this is to look inside the installation path of the VM player. For example, C:\Program Files\VMware\VMware Player\

Note: For VMWare workstation, simple go to the main Edit Menu and select "Virtual Network Editor"

Here, you can find an executable named as vmnetcfg.exe

You should see a window that looks like this open up.

 

Select the network interface that you want to change (in the case above I am changing the IP addresses that are used for NAT interfaces).

Then edit the Subnet IP (and Subnet mask if you need to).  In the case above, I have already changed the address from 192.168.137.0 (the default) to 192.168.138.0

Once you have made you changes, click OK and you are done.