This guide shows how to export or move a VMware Workstation virtual machine to an ESXi server. Sometimes you need to move/migrate a pre-configured server OS virtual machine to VMware vSphere 4 to save time by avoiding installation and configurations.
Any virtual machine with configuration file VMX and disk files VMDK can be used here. VMware vCenter converter required for this method and it’s a built-in feature in VMware workstation. I have a running ESXi 4.1 and Windows 2003 enterprise OS (already configured as Domain controller) as a virtual machine in VMware workstation 7.1. The host is Windows 7 with 3GB RAM. Though this setup was done back in the year 2010, it is applicable in recent times with higher hardware configuration also.
What I’m going to do is, export the working Windows 2003 VM from Workstation to ESXi 4.1 server via the network.
Here is the working OS.
Steps to Move VMware Workstation Virtual Machine to ESXi Server
1) Uninstall VMware tools from guest OS. ( I’m not sure whether workstation and server VMware tools are same, but I think it’s better to remove now and install later in vSphere Client)
2) Shutdown the virtual machine and remove floppy drives, USB and sound devices. If you are not removing now, the converter will remove them with a warning message later.
3) Make sure network connectivity is OK and firewalls are opened between VMware workstation host and ESXi server. In the workstation go to File on the menu and select Import or Export.
4) Select Virtual Appliance in source type.
5) Browse the virtual machine’s configuration file VMX on the next screen as shown below. Since the VMX file has the details of Snapshots VMDK files, it will take care of them while converting.
6) It should detect the configurations of the virtual machine properly. In the next screen, you can select and resize the disks which should be exported.
7) Now time to select a destination. Select ‘VMware Infrastructure Virtual Machine’ and click next.
8.) Provide the IP address of VMware ESX or ESXi server with root user name and password. The same details provided to connect through the vSphere client.
9) It should log in without any issues and ask for a VM name. Give a name and go to the next step.
10) Select the resource pool to export if more than one available. Otherwise, select the localhost and press Next.
11) Choose datastore to move the virtual disk. My ESXi server has single data storage as below.
12) Next is to select network cards. Network Cards can be added during export by selecting the number of NICs.
13) It’s highly recommended to select both options on the next screen. Customize the identity of the virtual machine is very important in a production environment due to unique machine ID, hostname, licensing and domain networking.
System restore checkpoints are useless after converting since any time we can’t restore to earlier checkpoints, because of the different environment later.
14) After completing the customization steps, check the summary before starting the process. Select the Power on the new VM after creation (Optional) option and click ‘Finish’ to start the procedure.
15) Conversion and export should run smoothly and complete successfully. Warning messages can be seen in the progress dialog box.
It failed initially because of space issues on VMware ESXi Server. There was no space on the host computer to allow growing ESXi’s VMDK file.
Export succeeded after fixing the space issue. Because I selected the power-on option, the exported virtual machine is up and running on the server after conversion completed.
It is very simple and straightforward if all settings are correct. This will be helpful to configure and test Operating Systems on the local computer before exporting to live servers.
In case you face any difficulties with this method, feel free to share your comments.