Understanding VMware VMX Configuration Files – Learn How To Create and Edit VMX Files

by David Davis, vExpert, VCP, CCIE 9369 - January 8, 2009
Printer Friendly Version

Diagnose Performance Issues In a Virtualized Infrastructure

FREE TRIAL: SolarWinds Virtualization Manager

Problem: Virtual machine degradation in a virtualized environment can occur in a few different ways, such as a sharp decline in application or server response times. The challenge is determining when the problems started and the cause.

Solution: VM monitoring software will enable you to look at the changes that were made over time and so you can pinpoint & diagnose past performance issues in your virtualized infrastructure.

Learn More or Download a Free 30 Day Trial

In our article called VMware Disk Files Explained, we talked about the different VMware files on disk. In particular, we talked about the important VMware VMX configuration file. In this article, we'll go into more details on this critical file.

What are VMX Files?

In our previous article, VMware Disk Files Explained, we covered how a VMX file is the primary configuration file for a virtual machine. When you create a new virtual machine and answer questions about the operating system, disk sizes, and networking, those answers are stored in this file. As you can see from the screenshot below, a VMX file is actually a simple text file that can be edited with Notepad. VMX files are located in each of the folders of each of your virtual machines. For example, my Window XP Professional virtual machine is located in c:'Virtual Machines'Windows XP Professional and it is called Windows XP Professional.vmx.

When I right-click on that file and click Open With and Wordpad, Here is what I see:

If you just double click on the file, it will open in your VMware Server Console.

Exploring a VMX File

If we look into more detail, we can see the syntax of a VMX file and how it is constructed. Here are important tips and syntax of note:

  1. virtualHW.version="4"
  2. config.version="4"
  3. guestOS="winxppro"

Once created, you can double-click on it and it will open in your VMware workstation/player/server, like this:

However, in setting only these 3 parameters, you will get a virtual guest OS that only has 32MB of RAM, a floppy drive, and 1 CPU. The system won't have any hard drives or CD drives.

  • If you have a line like scsi0.present = "TRUE" or ide0.present = "TRUE", the vmware product looks for further config for these devices. If this is set to FALSE, then any further config is ignored.

Creating/Downloading VMX Files

You can actually download VMX files, based on answers you create, from the Internet. Here are some websites that allow you to do this: EasyVMX! VM Builder vmx-builder.cmd

One benefit to having a program create a VMX file for you is that there shouldn't be any typos.

Summary

VMware VMX files are the configuration file for VMware guest operating systems. They can be short of very long. The more devices added, the more they grow. You can, of course, use the VMware GUI yourself to create the virtual guest configurations but, for VMware users who want to learn more about VMware, inner knowledge of the VMX file makes sense. Also, being able to edit these yourself or download one from the Internet can save you a lot of time!

Do you have questions or comments about VMware and the VMware VMX files? Checkout our VMware Discussion Forum!

Related articles

You may find these related articles of interest to you:

Got a question? Post it on our VMware Forums!

Related Articles




*