Contents

Moving a Virtual Machine

What do you do if you have created a virtual machine using VMware GSX Server and you want to move it to a different computer? Or even somewhere else on your host? The process is not difficult, and in most cases you can even move your virtual machine from a Windows host to a Linux host — or vice versa. Here’s how.

Note: These instructions assume that you are using a virtual disk — stored in a set of .vmdk files on your host computer.

It’s always safest to make backup copies of all the files in your virtual machine’s folder (directory) before you start a process like this.

Virtual Machines Use Relative Paths

Before VMware GSX Server 2.0, the path names for all files associated with a virtual machine were absolute, or fully qualified, meaning the complete route to the files on the host was stored. For example, the absolute path to a virtual disk file would be C:\Documents and Settings\<user name>\My Documents\My Virtual Machines\<machine name>\<machine name>.vmdk.

With VMware GSX Server 3.1, path names to files are relative, meaning the path to the each file is relative to the folder (directory) in which the host operating system is currently set. For example, if you are in the virtual machine’s directory, the relative path to the virtual disk file would be <machine name>.vmdk.

If you intend to move virtual machine created in a VMware product other than VMware GSX Server 2.0, please see Moving an Older Virtual Machine.

Preparing your Virtual Machine for the Move

  1. Shut down the guest operating system and power off the virtual machine. If the virtual machine is suspended and its virtual disks are in nonpersistent mode, resume it, then shut down the guest operating system.

  2. If your virtual machine is using disks in undoable mode, it is best to commit or discard the changes when the guest operating system shuts down. If you cannot commit or discard the changes to your disk, read these considerations for moving disks in undoable mode.

    Note: If your disks are using nonpersistent mode, you must also move the redo-log (.REDO) file to the new host computer. By default, it is located in your host operating system’s temp directory.

  3. Do one of the following:

Moving a Virtual Machine to a New Host Machine

  1. Make sure VMware GSX Server is installed and working correctly on the new host computer.

  2. Locate the virtual disk files you are moving and copy them into the new virtual machine directory. Be sure to copy all the files in the virtual machine’s original directory. If you stored any files in directories other than the virtual machine directory, be sure to move them into a directory of the same name and relative to the location of the virtual machine on the new host.

    If, for some reason, you are not moving a file, make sure you do not have any relative or absolute paths pointing to file. Use the Configuration Editor and check to see if your virtual machine is pointing to the correct location for files you do not move.

    Also, check to see you do not have any absolute paths pointing to any files you are moving.

    To determine whether any files are using absolute or relative paths, peruse the Configuration Editor. Specifically, select each device and look at the location of the redo-log file.

    Note: If your virtual machine is using disks in undoable mode and you did not commit or discard your changes before the move, you must also move the redo-log file (.REDO) to the new host computer.

  3. Start VMware GSX Server and open the new virtual machine you just created. Choose File > Open. The virtual machine is added to the Virtual Machine Name list in the VMware GSX Server window.

Related Topics:

Back to top

© 2001-2002 VMware, Inc. All rights reserved.