How to open VMDK files? Let's see the options
This article is dedicated to how to open VMDK files. Read it to find out all that you need!
What is a VMDK file?
The VMDK file can be described as a virtual disk (disk file format) that contains all the stored information of the hard disk of a VMware virtual machine. This file can be found under the name "[name] .vmdk". Along with the VMDK file, there is now a VHD file with the same functions, however, these files do not support each other. There are special third-party converters for this. The VMDK file is often a fixed size or it can grow as data accumulates using VMware Virtual Disk Manager.
There are situations when you need an open .vmdk file and the VM is not turned on. In such a case, you need to know the most efficient VMDK file opening methods. This article aims to address this issue.
How is your data stored in VMDK files
VMDK, as mentioned above, is an open source virtual disk file format developed by VMware. The extension of this file is .vmdk and it is applicable to VirtualBox and VMware virtual machines.
If we are talking about VMs on ESXi servers, then the VMDK virtual disk format is the virtual disk descriptor (diskname.vmdk) and the virtual disk extent (diskname-flat.vmdk, where raw files are stored).
For VMware Workstation virtual machines, the virtual disk format is an extended data file (diskname.vmdk, monolithic sparse). This file contains an embedded virtual disk descriptor that defines the structure, geometry of the virtual disk, virtual hardware version, and identifiers.
Two ways to open VMDK files
In general, there are two methods to open a VMDK file (with the virtual machine turned on and turned off).
Methods that need powering on a VM
These are methods for opening VM images using existing virtual machines. This will also require an installed hypervisor (VMware ESXi, VMware Player, Oracle VirtualBox, or VMware Workstation).
Legacy method: using a Live DVD even if OS on a VM is dead.
As a DVD, you can use an ISO image and insert it into the virtual DVD drive of the virtual machine. Once you boot from the DVD, you can mount the virtual disk partitions and then copy the files from the virtual disk to your USB hard drive. The latter must be connected to the virtual machine via a network. This method can be used on virtual machines running on VMware ESXi and VMware Player / Workstation.
You can parse this method using an example of a Windows Server 2016 virtual machine on an ESXi host. Let's download the Ubuntu 18 ISO installation image. Next, open the VMware vSphere client, and in the "Hosts and Clusters" section, find and select your virtual machine. Now select the “Change Settings” tab and in the CD/DVD drive options, click on “Data Warehouse ISO File”.
Next, go to CD/DVD Media, click “Browse”, and select the desired ISO file in the datastore. Now boot from the ISO and select the “Try Ubuntu Without Install” option. After booting Ubuntu from the Live DVD, open Terminal.
Next, you will need to enter the following:
To gain root privilege:
To determine the list of available hard drives:
ls -al / dev / sd *
Next, make the directories to be used as mount points for each partition.
mkdir / mnt / win-disk1
mkdir / mnt / win-disk2
mount / dev / sda1 / mnt / win-disk1 /
mount / dev / sda2 / mnt / win-disk2 /
List files and directories of mounted partitions:
ls -al / mnt / win-disk2 /
ls -al / mnt / win-disk1 /
Now plug the USB hard drive into the USB port of the ESXi host and connect this hard drive to the virtual machine using USB pass-through to copy the required files, stored in the VMDK file.
ESXi / Workstation / Player: how to mount a VMDK file as a virtual disk to a healthy VM.
In this case, the VMDK virtual disk must be connected to an existing virtual machine with a running operating system. The VMDK file can be attached to an existing virtual machine as an additional virtual disk. To open the VMDK file of an ESXi virtual machine on VMware Workstation or Player, you must copy the virtual disk and its descriptor to the physical disk where VMware Workstation or Player is installed.
As an example, consider opening a VMDK virtual disk of one VM with another VM on an ESXi host. n the VMware vSphere client, open the Storage section and select the datastore with the VMDK file. Next, click on the VMDK file and select “Copy to”. Then choose a location to copy; for example to the root directory of the same datastore. Then connect the VMDK virtual disk to another healthy virtual machine, such as Windows Server 2016, on the same ESXi host. In the vSphere Client, go to “Hosts and Clusters”, and right-click the healthy virtual machine and click “Edit Settings”.
Then select “Add New Device” and click on “Existing Hard Drive”. Select a recently made copy of the VMDK file. You now have full access to the virtual disk files. To do this, you can open the mounted drive in Windows Explorer and then copy the contents of the VMDK file connected to the healthy virtual machine.
Methods that don't need a VM
These methods are simpler and more versatile, since a hypervisor is not required. Mounting the VMDK file in these ways does not take much time and effort.
Mounting VMDK files in a host OS with VMware Workstation.
With VMware Workstation, you can mount VMDK files on the host operating system. If snapshots of the virtual machine are available, delta virtual disks are created after each snapshot is taken. Therefore, if you want to open the state of the virtual disk at the time after creation, you must have a parent virtual disk and delta disks. Then it is necessary to mount the corresponding delta virtual disk in the host operating system. The parent virtual disk can be opened in read-only mode so as not to cause unnecessary problems.
As an example, consider mounting a VMDK virtual disk of a VMware Workstation virtual machine with snapshots on a Linux host. In VMware Workstation, click the “File” tab and select the Mount Virtual Disks option. Next, click “Browse” and select the VMDK file. Next, create a directory in the Linux file system to mount a virtual disk in VMDK format:
mkdir / mnt / vmdk /
chown -R user1: group1 / mnt / vmdk /
chown -R user1: group1 / mnt / vmdk /
Now select the target directory and check the “Mount read-only” checkbox. Open / mnt / vmdk / directory in Linux explorer and browse the files on the VMDK virtual disk. Then unmount the VMDK image file from the Linux file system when not in use.
To mount the VMDK on the Linux host, in the console, enter the command: vmware-mount /media/user1/vms/vm_name/vm_disk_name-000002.vmdk / mnt / vmdk. Then disconnect the virtual disk.
Here’s an example of how you can mount VMDK files in Windows. The principle is the same as in the previous example. You just need to right-click the VMDK file in Windows Explorer and select the “Map Virtual Disk” option. The drive opens automatically in Windows Explorer after mapping if the checkbox is checked. At the end, remember to unmount the drive, right-click on the VMDK file, and click “Unmount Virtual Drive”.
How to mount VMDK files with VMFS Recovery
Use VMFS Recovery to mount VMDK files. The software tool reads and recovers any information from the VMFS file system. An unobtrusive and patient Recovery Wizard will help you with the application if you have any questions. Any virtual disk can be mounted as local for easy viewing. When recovering data, all Windows restrictions are cleverly and unobtrusively bypassed; and, of course, there is support for Unicode.
This VMFS recovery guide is designed to get you started quickly. After installing the program on your computer or other device, open the Recovery Wizard and select an item to check. Then select the check mode:
- Fast recovery (shallow).
- Full recovery (recommended).
The program checks the current state of VMFS datastores, volumes and disks during a scan. After scanning, mount the VMDK file and purchase a license to export data.
Other methods to open VMDK files in Linux
Thanks to built-in tools, Linux allows you to perform the maximum number of operations in the console. As a result, the chances of mounting VMDK files and accessing their contents are increased.
How to mount VMDK files by using /dev/loop
This method makes files available as block devices. As a result, they can be used to mount disk images containing file systems. This loop is called /dev/ loopH, where H is the loop device number. Here it is possible to mount the -flat.vmdk files even without a virtual disk descriptor.
How to mount VMDK files with kpartx
This tool can mount partitions in image files to directories of a real Linux file system. It can be used to mount the -flat.vmdk images used on ESXi servers.
- VMware Horizon and its components
- Want to increase VirtualBox disk size? Here is a guide on how to do it safely!
- VMFS UNMAP: What is It?
- VMFS Recovery software as a solution for NFS data repair
- VMFS Recovery™ for VMware Data Recovery
- Restore a VMDK file
- Restore VMware VM with snapshot(delta.vmdk) files
- repair VMDK files in VMware | DiskInternals VMFS Recovery™
- Restore VMware virtual machine from VMDK file
- VMware vMotion storage: What do You Need to Know
- VMware vs Hyper-V Comparison
- VMFS Block Size: How to Choose
- What is the difference between VMware HA vs vMotion
- What is ESXi Recovery Mode
- How to Fix/Repair Corrupted VMDK Files Effortless
- VMware RAW Device Mapping and File Recovery
- Difference between ESX vs ESXi
- Thick vs Thin Provisioning: All You Wanted to Know
- How to Upgrade VMFS from 3 to 5th version
- Virtualization technology: what is it and how does it work?
- VMware vMotion: all you need to know
- What is VMware HA?
- VMware Fault Tolerance: what is it and how does it work?
- VMware: clone and data recovery
- What is VMware DRS?
- VMware vMotion requirements: for VMs and for hosts
- VMware vMotion vs storage vMotion: all you wanted to know
- VMware FT vs VMware HA: what the difference?
- VMware Workstation and Its Uses
- ESX Partitions: All You Wanted to Know
- What is Space Reclamation and How to Perform It
- What is VMware vSphere
- VMkernel and Its Interactions with Storage
- VMware Infrastructure: What Components are Used
- What is VMware vCenter Server and How Does It Works
- How to Manage VMware ESXi
- Virtualization: How Does It Work?
- VMkernel Ports and Networking Layers
- VMware Cold and Hot Migration: What Is It
- What is Virtual Desktop Infrastructure(VDI)?
- The importance of snapshots in VMWare
- What is vVol and How Does That Work
- What is a VM Cluster and How to Create It
- What is VM Host Server
- Find Your Reason for a Virtual Machine Usage
- Mounting Hard Drives (vmdk files) of a Virtual Machine Running on a ESX Server
- What is Thin Provisioning?
- iSCSI LUN and Data Recovery
- What is VMware vCloud Suite
- VMware Template vs VMware Clone: the differences and common
- VirtualBox: "No bootable medium found" issue
- VM: Hyper-V Integrated Services
- Hyper-V Checkpoint and Its Importance for VM
- Hyper-V Export VM: How Does It Work
- ESXi Free Limitations: Pros and Cons
- Convert VMware to Hyper-V Fast and Safe
- What is Hyper-V VDI and Its Benefits
- VMware: Workstation Pro vs Workstation Player
- Convert VHD to VMDK
- What is VMware vSphere and vCenter
- What is NVRAM? Are these files important?
- VMware vs VirtualBox: What Is The Difference
- VMware Content Library: What Is It and How Does It Work
- Recover Deleted VMDK from Datastore Today
- Is VMware virtual machine inaccessible? Fix it!
- Recover VM from flat VMDK - The Best Solutions
- Mounting Server Disks
- What is VMware VDS and How It Works
- How to Use VirtualBox Correctly
- P2V vs VMware: What is Better for You?
- How to Install Kali Linux VMware
- How to install Kali Linux on VirtualBox
- VMware ESXi Root and Default Password
- What is VMware networking?
- VHDX Files and How to Mount Them on Windows
- What is Asynchronous Replication
- Disaster Recovery Checklist: You Need A Plan
- VMware EVC Mode
- Comparison VDI vs Citrix
- VMware NFS vs VMFS
- NSX-T and NSX-v
- AWS EBS Snapshots
- Hyper-V Nested Virtualization
- About VirtualBox full screen
- About VirtualBox network settings
- About VMware home lab
- Install VirtualBox Extension Pack
- Physical and virtual servers
- What is Hyper-V USB Passthrough
- Hyper-V Virtual SAN
- VMware Player and VMware Workstation
- Thick and thin provisioning
- Install ESXi from a USB
- Steps to update VirtualBox
- Update ESXi
- ESXCLI commands
- Install Ubuntu on VirtualBox
- Remote control an Ubuntu
- Setting up VirtualBox
- About VMware Host Profile
- Create a Virtual Machine
- VMware vSphere 7
- About vSphere Web Client
- About VMware Data Protection
- About VMware vRealize Orchestrator
- The VM session was closed before any attempt to power it on: error code 0x80004005
- Virtual Desktop Infrastructure and VMware Horizon
- The comparison of Citrix and VMware
- 3-2-1 Backup Strategy for Data Safety
- Hyper-V Networking: How to Manage It
- VMware vSwitch
- VMware Network Adapter settings
- VMware snapshot best practices
- Hyper-V NIC Teaming
- VMware vSphere Replication
- Intel VT-x in BIOS: how to enable it?
- VMware Cloud Foundation
- How to use a shared folder properly: VirtualBox, VMware Workstation Player?
- Virtual Disk Service error occurs: your actions
- Result code: e_invalidarg (0x80070057) — how to deal with this error
- Fix: unable to finish connecting to Virtual Disk Service
- What should you do in case of ‘The hardware virtualization is enabled in the acceleration section’ issue?
- The best solutions for Virtual Machine in Windows 10