摘自https://superuser.com/questions/915615/mount-vmware-disk-images-under-linux
当然FTK imager也很好用,但是纯开源工具的话,下面的方法也是可行的
For .vdi
sudo modprobe nbd
sudo qemu-nbd -c /dev/nbd1 ./linux_box/VM/image.vdi
if they are not installe you can install them (on Ubuntu is this comand)
sudo apt install qemu-utils
and then mount it
mount /dev/nbd1p1 /mnt
For .vmdk
sudo modprobe nbd
sudo qemu-nbd -r -c /dev/nbd1 ./linux_box/VM/image.vmdk
notice tha I use the option -r
that’s because VMDK version 3 must be read only to be able to be mounted by qemu
and then I mount it
mount /dev/nbd1p1 /mnt
I use nbd1
because nbd0
sometimes gives ‘mount: special device /dev/nbd0p1 does not exist’
说明一下,如果用-r做readonly,mount有可能报错,我这儿就不用-r了。还有就是断开连接,qemu-nbd –disconnect /dev/nbd1
For .ova
tar -tf image.ova
tar -xvf image.ova