As a follow-up to the last post, here is the full text of the session for another imported fusion disk. I actually imported the whole thing using the datastore browser within vSphere, and then got rid of the Applications and appCacheList folders that Fusion creates. Once the import was done, I logged into the ESXi host using SSH, and here is what I did.
login as: root root@twesx01's password: You have activated Tech Support Mode. The time and date of this activation have been sent to the system logs. VMware offers supported, powerful system administration tools. Please see www.vmware.com/go/sysadmintools for details. Tech Support Mode may be disabled by an administrative user. Please consult the ESXi Configuration Guide for additional important information.
~ # cd /vmfs/volumes/4d1b685e-858363b3-5fba-0026b9799581/twdc04 /vmfs/volumes/4d1b685e-858363b3-5fba-0026b9799581/twdc04 # ls -al drwxr-xr-x 1 root root 2800 Dec 30 14:18 . drwxr-xr-t 1 root root 1680 Dec 30 07:38 .. -rw------- 1 root root 1625423872 Dec 30 07:51 dc04-s001.vmdk -rw------- 1 root root 862584832 Dec 30 07:58 dc04-s002.vmdk -rw------- 1 root root 327680 Dec 30 07:58 dc04-s003.vmdk -rw------- 1 root root 2144010240 Dec 30 08:15 dc04-s004.vmdk -rw------- 1 root root 1950875648 Dec 30 08:30 dc04-s005.vmdk -rw------- 1 root root 327680 Dec 30 08:30 dc04-s006.vmdk -rw------- 1 root root 1048576 Dec 30 08:30 dc04-s007.vmdk -rw------- 1 root root 327680 Dec 30 08:30 dc04-s008.vmdk -rw------- 1 root root 327680 Dec 30 08:30 dc04-s009.vmdk -rw------- 1 root root 327680 Dec 30 08:30 dc04-s010.vmdk -rw------- 1 root root 327680 Dec 30 08:30 dc04-s011.vmdk -rw------- 1 root root 327680 Dec 30 08:30 dc04-s012.vmdk -rw------- 1 root root 131072 Dec 30 08:30 dc04-s013.vmdk -rw------- 1 root root 8684 Dec 30 08:30 dc04.nvram -rw------- 1 root root 956 Dec 30 08:30 dc04.vmdk -rw------- 1 root root 0 Dec 30 08:30 dc04.vmsd -rw------- 1 root root 2585 Dec 30 08:30 dc04.vmx -rw------- 1 root root 1623 Dec 30 08:31 dc04.vmxf
/vmfs/volumes/4d1b685e-858363b3-5fba-0026b9799581/twdc04 # vmkfstools -i dc04.vmdk -d zeroedthick dc04-1.vmdk Destination disk format: VMFS zeroedthick Cloning disk 'dc04.vmdk'... Clone: 100% done.
/vmfs/volumes/4d1b685e-858363b3-5fba-0026b9799581/twdc04 # rm dc04-s0* /vmfs/volumes/4d1b685e-858363b3-5fba-0026b9799581/twdc04 # rm dc04.vmdk /vmfs/volumes/4d1b685e-858363b3-5fba-0026b9799581/twdc04 # mv dc04-1-flat.vmdk dc04-flat.vmdk /vmfs/volumes/4d1b685e-858363b3-5fba-0026b9799581/twdc04 # mv dc04-1.vmdk dc04.vmdk /vmfs/volumes/4d1b685e-858363b3-5fba-0026b9799581/twdc04 # vi dc04.vmx
During the vi session, I edit the one line that reads:
RW 50331648 VMFS "dc04-1-flat.vmdk"
to:
RW 50331648 VMFS "dc04-flat.vmdk"
After all that, here is the end result:
/vmfs/volumes/4d1b685e-858363b3-5fba-0026b9799581/twdc04 # ls -al drwxr-xr-x 1 root root 1120 Dec 30 14:34 . drwxr-xr-t 1 root root 1820 Dec 30 14:22 .. -rw------- 1 root root 25769803776 Dec 30 14:32 dc04-flat.vmdk -rw------- 1 root root 8684 Dec 30 08:30 dc04.nvram -rw------- 1 root root 518 Dec 30 14:35 dc04.vmdk -rw------- 1 root root 0 Dec 30 08:30 dc04.vmsd -rw------- 1 root root 2585 Dec 30 08:30 dc04.vmx -rw------- 1 root root 1623 Dec 30 08:31 dc04.vmxf /vmfs/volumes/4d1b685e-858363b3-5fba-0026b9799581/twdc04 #
That is it. dc04.vmdk is now ready for use by ESXi as part of a new VM. Hopefully, this is of some help to someone out there.
Comments on this entry are closed.