|
VMware ESX Server 2.1
Features | Documentation | Knowledge Base | Discussion Forums You can migrate virtual machines created with VMware Workstation 4 or earlier or VMware GSX Server 2.5.1 or earlier to your VMware ESX Server system. The virtual machine you want to migrate must have been configured with a virtual SCSI disk and have a supported guest operating system installed. For the list of supported guest operating systems, see Supported Guest Operating Systems on page 25. Note: Virtual machines created under versions earlier than GSX Server 2.0 or Workstation 3.2 must be upgraded to ESX Server 1.5 before they can be migrated to ESX Server 2.1. Once these virtual machines run under ESX Server 1.5, you can migrate them to ESX Server 2.1. See the upgrade instructions at www.vmware.com/support/esx15/doc/install_esx.html. First you need to import the virtual disks and any redo logs to the server and create a new virtual machine configuration. See Importing a GSX Server or Workstation Virtual Machine. On the VMFS partition where you store your virtual machines, make sure you have enough space to hold the full capacity of the source virtual disk. A virtual disk created in ESX Server has its full capacity allocated at the time the virtual disk file is created; for a 2GB virtual disk, the virtual disk file is 2GB in size at the time the disk is created. In VMware Workstation and GSX Server, the virtual disk file usually starts smaller and grows to the maximum capacity as data is added. Thus, you can create a 2GB virtual disk, install the guest operating system and the virtual disk may be contained in a 500MB file. However, when you migrate the virtual disk to ESX Server, the import process converts the disk for ESX Server and the disk occupies 2GB of space on the partition. Caution: If you created a virtual disk that is contained in a single .vmdk file larger than 2GB (the default for Workstation 4 virtual disks) and want to migrate the virtual disk to ESX Server, you must FTP or copy the disk from the Workstation host to the ESX Server machine. Once the file has been copied to the service console, you must use vmkfstools to import the disk into ESX Server. For the syntax on how to import the disk, see Examples Using vmkfstools. If the virtual disk has a redo log (GSX Server 2.5 or Workstation 3.2 or earlier virtual machines) or a snapshot (Workstation 4 virtual machines) associated with it, you can choose to do either of the following:
When you install VMware Tools in the VMware ESX Server virtual machine, you may set up a new network driver. Virtual machines migrated from Workstation and GSX Server cannot be configured to use more than one virtual processor. If you used vmkfstools to import a virtual machine created under GSX Server to ESX Server, after you import the virtual machine, you may see the following message: "Disk geometry mismatch. To power on the virtual machine you should specify scsi<adapter-id>:<target-id>.biosGeometry="<cylinders>/<heads>/<sectors>" in the configuration file." A similar problem may occur if you used the management interface file manager to import the virtual machine, though no message appears. If you have problems powering on a virtual machine with the imported disk, then you may have a mismatch with the virtual disk's geometry. Virtual disks created under GSX Server use a different disk geometry than virtual disks created under ESX Server. To determine the correct disk geometry, run the following vmkfstools command on the source virtual disk (the copy of the virtual disk on the GSX Server host, not the disk in a VMFS partition): vmkfstools -g //path/to/<sourceVirtualDisk>.vmdk Once you determine the disk geometry, you can add the correct geometry information to the configuration file. To modify the configuration file, follow the steps under Modifying the Configuration File Directly (Advanced Users Only). Create an option called scsi<adapter-id>:<target-id>.biosGeometry and set the value of the option to "<cylinders>/<heads>/<sectors>", where <adapter-id>:<target-id> is the SCSI ID of the virtual disk on the ESX Server system and "<cylinders>/<heads>/<sectors>" is the number of cylinders, heads and sectors on the virtual disk returned by the vmkfstools command. For example, if the virtual disk is located on the SCSI 0:0 node in the virtual machine on the ESX Server system, and you determine that the disk geometry of the original virtual disk (the one on the GSX Server host) contains 261 cylinders, 255 heads and 63 sectors, you would add the following option to the configuration file: scsi0:0.biosGeometry And you would assign the following value to the new option: 261/255/63 Otherwise, if you do not add the new geometry information to the configuration file, when you power on the virtual machine, a message appears stating Error loading operating system. To power on the virtual machine, you must add the new option to the configuration file, as discussed above. Plain disks used with virtual machines created in GSX Server may contain disk file names that ESX Server cannot translate. Versions 2.5 and earlier of GSX Server used absolute path names to identify disk files when creating plain disks. Not all plain disks created with earlier versions of GSX Server contain path names preventing ESX Server from importing them. If you attempt to import a plain disk with vmkfstools and ESX Server displays: DiskLib_Open() failed. No such file or directory (131591) you should check the path name in the plain disk. Note: This problem applies only to plain disks. Virtual and raw disks created in GSX Server should import correctly using vmkfstools. Open the plain disk descriptor (.pln) file and locate the path name to the disk file. If the path name refers outside the directory containing the descriptor file, you must change it. For example, if the path name is: C:\user\vmware\VMs\W2KServSP3\Win2KSv1.dat ESX Server cannot translate the GSX Server path name to locate the plain disk data (.dat) file. You can repair the plain disk by locating the data file in the same directory as the descriptor file and changing the path name to refer to the data file directly. In this example, edit the descriptor file to remove the absolute path from the file name: Win2KSv1.dat and save the file. Now if you import the plain file: $ vmkfstools -i Win2KSv1.pln vmhba0:0:2:Win2KSv1.dsk the command locates Win2KSv1.dat in the same directory and imports it into the specified ESX Server virtual disk file. Follow these steps to import a virtual machine to VMware ESX Server.
|
