Search This Blog

VM Hard Disk’s VMDK Files

Each hard disk of a VM consists of two .vmdk files:

  • one is a text file (descriptor file) containing descriptive data about the virtual hard disk; the name of the file is myvm.vmdk
  • the second is the actual content of the disk; the name of the file is myvm-flat.vmdk

Normally when browsing the datastore in the vSphere Web or C# Client, only the first .vmdk file is showed, and the size of the file is showed the total of both .vmdk files. I used to mislead by this and thought only one .vmdk for each VM hard disk.

VMDK.1
only one .vmdk file is showed, and note its size and type

But when SSH to the ESXi host and list the content in the VM folder, both .vmdk files are showed.

VMDK.2

If you manually move the first .vmdk file to another folder using the vSphere Client (when the VM is powered off), the –flat.vmdk file will show in the datastore when browsing in the vSphere Client.

VMDK.3
moving the .vmdk file to a different folder

VMDK.4
after moving, the .vmdk file is at the new location, but its size and type are changed

VMDK.5
after moving, the –flat.vmdk file is showed at the original location. note its size and type

No comments:

Post a Comment

Use WinSCP to Transfer Files in vCSA 6.7

This is a quick update on my previous post “ Use WinSCP to Transfer Files in vCSA 6.5 ”. When I try the same SFTP server setting in vCSA 6.7...