Thursday, January 16, 2014

Mounting Vmware VMDK disk in Linux

Generally we always copy the content in Virtual Machine via network or direct copy in Virtual Machine. We also have a method to access VMware Workstation File in Linux, Right now i am using Ubuntu Linux, so i am going to access .VMDK file at Ubuntu 13.10, but this is the same method for all Linux distributions.


To access ".VMDK" file in Ubuntu, First of all we need to verify "vmware-mount" command. This command is already provided by VMware Workstation or VMware Server, But in case if this file is not there, then we need to install the additional package during the VMware Workstation installation.


Here are the steps to access .VMDK file in Ubuntu.

# vmware-mount -p /home/geo/vmware/my-disk.vmdk

        This command show us the mount point within this disk.

# vmware-mount /home/geo/vmware/my-disk.vmdk /mnt

This command will mount our ".vmdk" disk to /mnt directory.

# cd /mnt

       Now we can copy the data from this disk to another location.

       Now when we have done we need to umount our disk, to umount our disk we need following                command

# vmware-mount -d /mnt