Windows mount linux vmdk

Mounting VMDK disk image

I have a single vmware disk image file with vmdk extension I am trying to mount this and explore all of the partitions (including hidden ones). I’ve tried to follow several guides, such as : http://forums.opensuse.org/showthread.php/469942-mounting-virtual-box-machine-images-host I’m able to mount the image using vdfuse

vdfuse -w -f windows.vmdk /mnt/ 
# ll /mnt/ total 41942016 -r-------- 1 te users 21474836480 Feb 28 14:16 EntireDisk -r-------- 1 te users 1569718272 Feb 28 14:16 Partition1 
mount -o loop,ro /mnt/Partition1 mnt2/ 

But that gives me the error ‘mount: you must specify a filesystem type’ In trying to find the correct type I tried

dd if=/mnt/EntireDisk | file - which outputs a ton of information but of note is: /dev/stdin: x86 boot sector; partition 1: . FATs . 
mount: wrong fs type, bad option, bad superblock . etc 

Did you try ntfs? Did you try fdisk /mnt/EntireDisk or gparted /mnt/EntireDisk and looking at the partitions there? Do they show up correctly?

fdisk returned: ‘WARNING: GPT detected on ‘. ‘. The util fdisk doesnt support GPT’. gparted is able to show me there are 4 partitions but all fail to initalize. It lists several required packages for ntfs and fat32 that i might need so I’ll install those and see if it gets me anything

Also, you might want to move this question over to serverfault.com, I bet you would get more help there as this isn’t really a software dev or computer science question.

I saw a lot of solution, but finally I use the simple solution: add the VMDK file to an existed linux VM. Boot to that VM and mount the partition normally. You can use GUI tool to mount (such as gnome-disks in gnome) or mount command line

6 Answers 6

For newer Linux systems, you can use guestmount to mount the third partition within a VMDK image:

guestmount -a xyz.vmdk -m /dev/sda3 --ro /mnt/vmdk 

Alternatively, to autodetect and mount an image (less reliable), you can try:

guestmount -a xyz.vmdk -i --ro /mnt/vmdk 

Do note that the flag —ro simply mounts the image as read-only; to mount the image as read-write, just replace it with the flag —rw .

Читайте также:  What is drwxr xr x in linux

Installation

guestmount is contained in following packages per distro:

  • Ubuntu: libguestfs-tools
  • OpenSuse: guestfs-tools
  • CentOS / Fedora: libguestfs-tools-c

Troubleshooting

error: could not create appliance through libvirt

$ guestmount -a file.vmdk -i --ro /mnt/guest libguestfs: error: could not create appliance through libvirt. Try running qemu directly without libvirt using this environment variable: export LIBGUESTFS_BACKEND=direct Original error from libvirt: Cannot access backing file '/path/to/file.vmdk' of storage file '/tmp/libguestfssF6WKX/overlay1.qcow2' (as uid:107, gid:107): Permission denied [code=38 int1=13] 

Solution: use LIBGUESTFS_BACKEND=direct , as suggested:

LIBGUESTFS_BACKEND=direct guestmount -a file.vmdk -i --ro /mnt/guest 

fusermount: user has no write access to mountpoint

LIBGUESTFS_BACKEND=direct guestmount -a file.vmdk -i --ro /mnt/guest/ fusermount: user has no write access to mountpoint /mnt/guest libguestfs: error: fuse_mount failed: /mnt/guest/, see error messages above 

Solution: use sudo , or change file permissions on the mountpoint

Источник

Как смонтировать файла образа VMDK в Windows

Если у вас есть файл VMDK (Virtual Machine Disk), который содержит один или несколько разделов виртуальной машины VMware, вы можете смонтировать его в операционной системе Windows в качестве диска. Подключить vmdk диск в Window можно несколькими способами.

Подключение vmdk файла в проводнике Windows Explorer

В операционной система Windows имеется встроенная поддержка VMDK файлов. Если вы используете операционную систему Windows 7 или выше, вы можете смонтировать файл VMDK прямо через проводник Windows.

Для этого нужно перейти в каталог, в котором хранится файл VMDK. В проводнике Windows щелкните по файлу правой кнопкой мыши и выберите пункт «Map Virtual Disk».

подключение vmdk файлов в window

В окне «Map Virtual Disk» выберите букву, которая будет присвоена диску и нажмите кнопку «ОК».

выбор буквы диска для vmdk образа

Для того, чтобы отключить виртуальный диск — щелкните правой кнопкой мыши по диску и выберите пункт «Disconnect Virtual Disk».

Подключение образа VMDK в VMware Workstation

VMware Workstation – это настольное ПО для виртуализации от VMware. В нем имеется встроенная функция подключения vmdk образов — «Map Virtual Disks», с помощью которой также можно смонтировать и открыть файл VMDK. Если открыть файл VMDK при помощи первого описанного нами способа не получается (Проводник Windows), то при помощи VMware Workstation сделать это удастся наверняка.

Все довольно просто, перейдите в меню «File» и в раскрывающемся списке выберите пункт «Map Virtual Disks …».

Подключение образа VMDK в VMware Workstation

Монтирование VMDK с помощью пакета vSphere Disk Development Kit

VMware-mount — это консольная утилита, которую вы можете использовать для монтирования VMDK дисков без использования графического интерфейса. Эта утилита входит в пакет разработчика vSphere Disk Development Kit, поэтому для её использования вам понадобиться его установить.

Читайте также:  Astra linux перезапуск сети

Чтобы смонтировать файл VMDK (сохраненный в каталоге C:\temp) в режиме только для чтения, используйте следующую команду:

vmware-mount.exe X: “C:\Temp\TestVM.vmdk”

Если файл VMDK содержит более одного раздела, вы можете использовать параметр /v:x для монтирования других томов:

vmware-mount.exe /v:2 X: “C:\Temp\TestVM.vmdk”

Если вам необходима возможность записи, воспользуйтесь параметром «/m:w». Этим можно воспользоваться, например — если вам нужно заменить испорченный системный файл.

vmware-mount.exe /m:w X: “C:\Temp\TestVM.vmdk”

Если вы хотите вывести все подключенные виртуальные диски, необходимо воспользоваться параметром /L:

Командной строкой очень легко пользоваться, при этом она довольно функциональна.

Используем OSFMount для монтирования vmdk

OSFMount – это бесплатная сторонняя утилита, которая монтирует файлы образов не только формата ISO, но также и файлы VMDK. Она работает практически во всех версиях Windows.

osfmount утилита

Эта утилита довольно проста в использовании. Достаточно нажать кнопку «Mount new…» расположенную в нижней части окна, выбрать vmdk файл и указать параметры подключения.

Источник

4 Ways to Mount a VMDK Image File in Windows

If you have a VMDK file that hosts one or more VM partitions, here are 4 ways to get it mounted in Windows as a disk drive.

Windows Explorer

Supporting VMDK seems to be a feature built right into the Windows system. If you are using a system that runs Windows 7 or above, you may be able to map the image file right through Windows Explorer.

Navigate to the fold that hosts VMDK file in Windows Explorer, right-click the file and choose Map Virtual Disk.

windows-map-virtual-disk

Select the drive letter you want to map to, and click OK button on the Map Virtual Disk window.

windows-map-virtual-disk-window

To disconnect, right-click the mapped drive and choose Disconnect Virtual Disk.

It works beautifully when it works. When it’s not, it’s time to seek alternative options.

VMware Workstation

VMware Workstation is VMware’s desktop solution for virtualization. It has the “Map Virtual Disks” feature built in that opens VMDK in a wider format. If the method of using Windows Explorer doesn’t work out, VMware Workstation is next one in the line to try.

Go to File menu and select Map Virtual Disks… from the drop-down list to start the process.

vmware-workstation-map-virtual-disk

vSphere Disk Development Kit

The “VMware-mount” command line is the one you can use to mount a VMDK disk without a GUI interface. The tool is part of the vSphere Disk Development Kit, so you need to download and install the kit to use the tool.

Читайте также:  Ubuntu linux headers deb

To mount a VMDK file (saved at C:\temp) in read-only mode use the following command:

vmware-mount.exe X: “C:\Temp\TestVM.vmdk”

If the VMDK file contains more than one partition you can use the parameter /v:x to mount the other volumes:

vmware-mount.exe /v:2 X: “C:\Temp\TestVM.vmdk”

If you need a writeable access, just use the parameter “/m:w“. This is extremely helpful if you need to replace a broken system file.

vmware-mount.exe /m:w X: “C:\Temp\TestVM.vmdk”

If you want to list all the mounted virtual drives use /L:

The command line is easy to use and powerful, but I am finding it’s not so easy to get the Development Kit installed on my computer for some reason.

OSFMount

OSFMount is a 3rd party free image mounting tool that mounts not only ISO format images but also VMDK files in Windows with a drive letter. It works on pretty much all versions of Windows.

osfmount-mainscreenshot

It’s fairly easy to use the tool. Click the Mount new… button at the bottom of the window and follow the instructions.

If you have other alternative options, feel free to share. It’s never enough to have a reliable tool that does the job well in hand.

/Update on July 8, 2020/

As some of the commenters pointed out, the open-source archiving tool 7-Zip does happen to be the easiest way to open the VMDK file for you. By all means, give 7-Zip a try first and if it failed, try something mentioned above.

12 thoughts on “ 4 Ways to Mount a VMDK Image File in Windows ”

Actually you mention 3 options. The first one right out of explorer is only available if you have VMware workstation installed on you system. Check the icons used for mapping the drive. It uses the same tool.

VMDK image support is not/will not ever be in windows since VMDK was developed by same devs as VMware, Microsoft only supports major formats mainly developed by them. That was most like 3rd party software that may have been forgotten to be installed.

7zip Opens it. Have not tried to edit but if you just need to look at what is on the drive 7zip works

Wow, it really works. I could open the vmdk with 3 partitions which I could not in VMWare Player, and extracted the files I needed! Thanks for the info!

Источник

Оцените статью
Adblock
detector