Importing a VM from VM Workstation to ESX / ESXi
2012-03-20 11:03
330 查看
Importing and exporting virtual machine from a VMWare ESX Server host requires converting that virtual machine’s .vmdk file(s) from one format to another.
Although the underlying technologies work the same, the formatting of the VMDKs differ.
You have 2 options:
1) If you have a running copy of workstation, simply use VMware Converter as you would for any normal conversion, treating the VM as you normally would a physical host in a P2V
2) If you have no working Workstation, you can clone / convert the vmdk at the command line - as I have a fully ESXi lab to play in, I don't have Workstation running on any machines in my office - as such, when IBM recently supplied a VM for a demo . . that
had been created on VM workstation, I had to import it. I used the following process.
Firstly, get hold of an SSH tool ( I use putty)
Next, open a connection to any host that has the storage containing the vmdk presented
In ESX / ESXi, this will be in /vmfs/volumes/<datastorename>
Note: the destination path /dest/folder/vmserver1.vmdk should not contain any existing files with the name ‘vmserver1.vmdk’. If it does the file will be overwritten.
Importing Virtual Disks from GSX Server and Workstation to ESX Server
Before an ESX Server can run a virtual machine created on a different version of VMWare, the virtual disks must first be converted to a format that can be read by the VMFS file system. This is done by running the following vmkfstools command:
vmkfstools -i <folder>/<filename>.vmdk <vmhba number>:<filename>.dsk
<folder> is the name of the folder from which you are importing from
<filename> is the name of the virtual machine file(s) to be imported
<vmhba number> is the name of the VMFS partition you are importing to
An example of a complete command would be:
vmkfstools -i /vmfs/volumes/CLRLAB001T1/vmserver1.vmdk /vmfs/volumes/CLRLAB001T1/vmserver1_new.vmdk
Additional information regarding the vmkfstools command can be found in the ESX Server documentation.
Although the underlying technologies work the same, the formatting of the VMDKs differ.
You have 2 options:
1) If you have a running copy of workstation, simply use VMware Converter as you would for any normal conversion, treating the VM as you normally would a physical host in a P2V
2) If you have no working Workstation, you can clone / convert the vmdk at the command line - as I have a fully ESXi lab to play in, I don't have Workstation running on any machines in my office - as such, when IBM recently supplied a VM for a demo . . that
had been created on VM workstation, I had to import it. I used the following process.
Firstly, get hold of an SSH tool ( I use putty)
Next, open a connection to any host that has the storage containing the vmdk presented
In ESX / ESXi, this will be in /vmfs/volumes/<datastorename>
Note: the destination path /dest/folder/vmserver1.vmdk should not contain any existing files with the name ‘vmserver1.vmdk’. If it does the file will be overwritten.
Importing Virtual Disks from GSX Server and Workstation to ESX Server
Before an ESX Server can run a virtual machine created on a different version of VMWare, the virtual disks must first be converted to a format that can be read by the VMFS file system. This is done by running the following vmkfstools command:
vmkfstools -i <folder>/<filename>.vmdk <vmhba number>:<filename>.dsk
<folder> is the name of the folder from which you are importing from
<filename> is the name of the virtual machine file(s) to be imported
<vmhba number> is the name of the VMFS partition you are importing to
An example of a complete command would be:
vmkfstools -i /vmfs/volumes/CLRLAB001T1/vmserver1.vmdk /vmfs/volumes/CLRLAB001T1/vmserver1_new.vmdk
Additional information regarding the vmkfstools command can be found in the ESX Server documentation.
相关文章推荐
- How to Install ESX 3.5 and ESXi as a VM on VMware Server 2.0 推荐
- How to Downgrade VMware ESXi 5.5 VM Hardware Version to 9 from 10
- Moving a managed ESXi/ESX host from one vCenter Server to another vCenter Server (1004775)
- Android emulator: ERROR: Unable to load VM from snapshot.
- Starting emulator for AVD 'android' emulator: ERROR: Unable to load VM from解决方法
- VM Workstation Install ESxi 5.1 799733
- Android Studio-emulator: ERROR: Unable to load VM from snapshot.
- Eclispe远程调试Failed to connect to remote VM Malformed reply from SOCKS server
- ESXi/ESX host disconnects from vCenter Server 60 seconds after connecting (1029919)
- emulator: ERROR: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration.
- esxi5.1 添加vSwitch,转VM network to new vSwitch
- emulator:ERROR:Unable to load VM from snapshot.
- Migrate a Windows 2008 VM from VMware to OpenStack
- Virtual PC: Share folder to VM from Physical hard disk
- How to Properly Remove Datastore or LUN from ESXi 5.x hosts
- How to Install VM Tools for Linux Platform in VMware Workstation
- emulator: ERROR: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration.
- Use LiveCD to acquire images from a VM
- ESXi添加定时计划任务Add cron Job to VMware ESX/ESXi
- android studio中启动模拟器出现以下错误emulator: ERROR: Unable to load VM from snapshot.