I have been using VMware for about 8 years now, and at this point I don’t think I could live without it. I started using it when my corporate laptop required Windows and I was using Linux. VMware allowed me to have both.
VMware is also a great tool for IT departments, for many reasons. It allows users to create unique environments and test different scenarios. VMware can also replace production boxes, as is becoming more and more popular.
In fact, it seems that all my clients are using virtualization in one way or another to save money and increase performance. That’s why I thought it would be good to share some VMware tips and tricks that can make using VMware easier than ever.
A handy tip for all of us that need to access the various servers remotely is Virtual Network Computing (VNC). VMware Server comes with VNC preinstalled; all you have to do is enable and configure it. To do this you must modify the virtual machine’s configuration file (.vmx) while the virtual machine is powered off.
First open the .vmx file in a text editor and add the following line:
RemoteDisplay.vnc.enabled = TRUE
This will enable standard VNC support. Now you can power on the virtual device and connect! VNC lets you interact with your PC from any other computer or mobile device on the Internet. So, for example, you can access the files on your home computer from your work computer, and vice versa.
Why spend the time building a server when you can download a pre-built one? There are many pre-built servers to choose from, all available on the web. Technically they are free, but keep in mind you will still need to pay for licenses.
The benefits to these appliances are:
Several vendors provide these appliances, including Microsoft and VMware. VMware’s site has a section specifically devoted to appliances, called the VMware Virtual Appliance Marketplace. The Virtual Appliance Marketplace is a great source for downloading virtual appliances.
To increase performance on your virtual machines, there are several things you can do. The first thing you should always do is install the VMware tools on every virtual machine. The VMware tools contain drivers that are designed to increase virtual machine performance.
Next you can defragment your virtual drives regularly just as you would with a physical drive. You can also increase performance by scheduling antivirus and backup programs to run during off-peak hours when use is low, and turning off screen savers.
To further increase performance, VMware advises that you disable unused resources to free system resources. Items that you should evaluate and disable if not used include:
Disabling these devices will free up IRQ resources and eliminate IRQ sharing conflicts within the guest operation system that can cause performance problems. Remember, you should enable devices only when you need them.
When you have a Virtual Machine loaded and you press CTRL-ALT-DEL it can cause various issues depending on the OS, especially with Linux hosts. VMware uses CTRL-ALT-INS in place of this command on virtual hosts and it can simplify your life to disable VMware from recognizing the CTRL-ALT-DEL command.
To make VMware ignore this key combination all you have to do is add the line:
mks.ctlAltDel.ignore = "TRUE"
to the "C:\Users\All Users\VMware\VMware Workstation\config.ini" file. Doing so instructs VMware to ignore the CTRL-ALT-DEL so you can eliminate the annoying pop-up message that says “VMware has detected you pressed CTRL-ALT-DEL.”
The Virtual Disk Manager allows you to manage your virtual disks within VMware. You can perform many tasks including growing, creating, shrinking, and defragmenting disks — all without powering on the Virtual Device.
VMware Server comes with a web based management tool. The VMware Management Interface allows you to manage most aspects of your Virtual Devices from one simple interface. With the web based tool you can:
If the web interface is not installed, you can set the order in which Virtual Devices start and stop, as well as the start and stop delay time, manually. To do this, edit the config file of the server, which can be found at:
To set the delay start / stop time of the Virtual Devices use the following:
The value we set is in seconds; so 300 seconds would be 5 minutes.
To set the start and stop order of our Virtual Devices use:
As with any device, you want to make sure to back up your data. The simplest method is just to back up the Virtual Devices Host directory and if you need to restore — you just restore the files. However, you should never backup the Virtual devices files on the VMware Server host if the Virtual Device is powered on.
First, either suspend or shut down the virtual machine before backing up its directory. Attempting to back up a powered on Virtual Device can cause it to hang. ALos, be sure to test your backup method before implementing it.
If you can’t take your server down, or just want to back up data, treat the Virtual Device like any other device. Back it up by installing backup software and connecting to backup media.
Copyright © Train Signal Inc. All Rights Reserved.
Osama Salah Says:
August 31st, 2007 at 12:15 pm
Thanks for the tips.
regarding the VNC tip, any benefit using that if I already have a remote control utility like Dameware or something similar?
Web Development QA Testing - Digital Serenity Says:
September 12th, 2007 at 3:03 pm
[...] While researching Virtual Machines you’ll find tons of great tips out there, but my biggest suggestion is find out what you need and keep each VM simple: only put on it what you need. By having a different VM for different purposes you’ll find life to be much easier. [...]
Edward Gantt Says:
September 26th, 2007 at 10:38 am
This looks great for computer
programmers who need to test
their software across multiple
platforms. However, unless I have
a programming position, I can’t
justify the time or expense to get
this training.
Bob Says:
March 26th, 2009 at 5:06 am
Edward, wow what an amazingly pointless remark. Here is a company offering training for IT professionals to learn about VMware products and increase their skill set and all you have to offer is something as asinine as “this doesn’t apply to me”. Obviously SOMEBODY thinks the world revolves around them.
I totally agree Edward, Train Signal should not have bothered wasting their time creating such wonderful training material because they should have known that you would not be able to use it. They really should have checked with you first. How stupid of them.
Didn’t your mom every teach you: If you can’t say something nice, don’t say anything at all.
Or maybe a more fitting quote would be from Mark Twain: “It is best to keep your mouth shut and be presumed ignorant than to open it and remove all doubt.”