VMDK files and moving them and registering in VC

Stan J
Stan J used Ask the Experts™
on
A customer sent us a USB drive with folders of VM files.

We need to deploy them in our env.

They look to have copied the VMs file from a datastore to a folder and added that folder to the USB drive.

I loaded one of the VM folders with files of the VMs into our datastore and registered it in vCenter.  
The folder has VMDKs and Snapshots.  The VM is named manager-vm and the snapshots in the folder have the same name manager-vm

The VMDKs in the folder are
manager-vm.vmdk
manager-vm-0001.vmdk
manager-vm-0002.vmdk
manager-vm-0003.vmdk
manager-vm-0004.vmdk
manager-vm-0005.vmdk
.
.
manager-vm-00010.vmdk

What do the -0000x numbers represent on the VMDKs?


The snapshots in the folder are
manager-vm-snap-41.vmsn
manager-vm-snap-42.vmsn
manager-vm-snap-43.vmsn
.
.
manager-vm-snap-47.vmsn
manager-vm-snap-52.vmsn
manager-vm-snap-53.vmsn


Looking in the VMX file, the scsi0:0.fileName is pointing to manager-vm-0009.vmdk

Should I modify  scsi0:0.fileName in the VMX  be to point to manager-vm.vmdk before starting the VM?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
They need to either

1. Export as an OVF - you can then Import
2. Convert using VMware Workstation - you can then Convert back to ESXi (import)

Just copying files is wrong, and may not work....and is not the supported method to share a VM

and its is more of a mess because of

What do the -0000x numbers represent on the VMDKs?

These are Snapshots and should have been dealt before Export.

see my EE Article

HOW TO: VMware Snapshots :- Be Patient
Stan JVirtualization Engineer

Author

Commented:
I agree, a mess,,,

Why does the scsi0:0.fileName in VMX point to  manager-vm-0009.vmdk instead of the main file  manager-vm.vmdk?

Currently we cannot get them to re-do it as we thought (expoting to OVF).
Any way to get these files loaded and working in our vSphere Env?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Did you read my EE Article ?

VMware Converter then....

otherwise you've got some work....and then they may not work.
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Stan JVirtualization Engineer

Author

Commented:
sorry,,,i thought the "read my article" was a comment...

i did take a look,,,

based on that info, the VM that they copied was running on a snapshot delta disk (based on KB1005049 -
Review the virtual machine's hardware configuration, highlighting each attached virtual disk. Any disk filename containing a suffix similar to -000001.vmdk is indicative of the virtual machine running on snapshot delta disks.)

we did do the below to get the VM started using Use  vmkfstools

Navigate to directory where vm resides (ex: /vmfs/volumes/...)

vmkfstools -d thin -i [source.vmdk] [dest.vmdk]

Edit vmx file and replace delete vmdk with new vmdk

Unregister and register new vmx from datastore

However, i am not sure if we captured their latest VM version
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Ask them to deal with the snapshot at their end, and Export or use VMware Converter, than just provide files!
Stan JVirtualization Engineer

Author

Commented:
we are having issues moving the individual files over to the datastore and will be contacting the customer first cleanup Snaps and then use the export method to create OVFs

while i have used the process to export VMs to OVF many time, this customer has not.

would you happen to have any articles on showing how to export VMs to OVF in vSphere 6.5 / 6.7?
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
I've not written any because it's so simple, and four lines.

1. Turn off VM.
2. Right Click VM - Export to OVF
3. Select a local disk.
4. Done.

(PS it takes time, and there sometimes are issues with 6.5/6.7!)
Stan JVirtualization Engineer

Author

Commented:
We are contacting the customer to ask for OVFs and delete snaps prior to exporting.
They have their VMs disk thick provisioned and we will also request them to convert to thin prior to exporting

In the meantime, we are coping the files from the USB directly to the datastore by using pscp and then doing a storage vmotion to change disk from thick to thin

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial