Chinaunix首页 | 论坛 | 博客
  • 博客访问: 661877
  • 博文数量: 291
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 2400
  • 用 户 组: 普通用户
  • 注册时间: 2004-12-04 12:04
文章分类

全部博文(291)

文章存档

2008年(102)

2007年(112)

2006年(75)

2004年(2)

我的朋友

分类:

2007-03-29 14:13:04

When using VMware, you will, at some point, go to the directory where your VMware virtual machines are stored. Inside this directory, you will see a number of strange files and you will probably wonder what they are and what they do. Now, you can stop wondering and find out.

Directory Listing

Below, you’ll see a typical VMware directory listing of a folder where VMware virtual machines are stored.

Here is the command prompt version of the same directory listing:

In this directory, you’ll notice a number of different files types. There are log files, vmdk files, vmem files, vmsn, nvram, vmsd, and vmx files. In fact, there may be other types of files. Some of these files are very small, while others are very large. Let’s learn about each of these VMware files.

Files you should know

Log files – Log files are just that- a log of virtual server activity for a single virtual server. Here is an example of what a log file looks like:

Log files should be used only when you are having trouble with a virtual machine.

VMDK files – VMDK files are the actual hard drive for the virtual machine. Usually you will specify that a virtual machine’s disk can grow as needed. In that case, the VMDK file will be continually growing, up to a size of 2GB. After 2GB, subsequent VMDK files will be created.

VMEM – A VMEM file is a backup of the virtual machine’s paging file. It will only appear if the virtual machine is running, or if it has crashed.

VMSN & VMSD files – these files are used for VMware snapshots. A VMSN file is used to store the exact state of the virtual machine when the snapshot was taken. Using this snapshot, you can then restore your machine to the same state as when the snapshot was taken. A VMSD file stores information about snapshots (metadata). You’ll notice that the names of these files match the names of the snapshots.

NVRAM files – these files are the BIOS for the virtual machine. The VM must know how many hard drives it has and other common BIOS settings. The NVRAM file is where that BIOS information is stored.

VMX files – 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. Here is the “Windows XP Professional.vmx” file from the directory listing, above:

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

In summary, it is important to know the different types of VMware files. You never know when you need to edit a configuration file manually. Or, perhaps, you just want to know why a certain file is taking up so much disk space. Either way, this guide to VMware disk values should be kept handy. Of particular interest are VMX files and VMDK files. Both of these can be downloaded from the Internet to instantly create a complete virtual server.

VMware article

阅读(545) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~