我试图通过使用以下命令在 linux mint 中使用 poweriso 提取 vmdk 文件,
poweriso extract sample-disk1.vmdk / -od /home/local/test/VMDK/extracted/
但是,我收到以下错误,
PowerISO Copyright(C) 2004-2008 PowerISO Computing, Inc
Type poweriso -? for help
sample-disk1.vmdk: The file format is invalid or unsupported.
根据文档here power iso支持vmdk文件,
Support all popular virtual disc image files, such as VMWare Virtual Disc Images(*.vmdk), VirtualBox Virtual Disc Images(*.vdi), Virtual PC Virtual Disc Images(*.vdi).
如何使用 power iso 提取 vmdk 文件?
最佳答案
我提供的信息是我用来挂载 qcow2 镜像的,我希望这同样适用于 vmdk。
安装GuestFish
$> apt-get install libguestfs-tools
挂载qcow2镜像
$> guestfish
Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.
Type: 'help' for help on commands
'man' to read the manual
'quit' to quit the shell
><fs> add vAP.qcow2
><fs> run
><fs> list-filesystems
/dev/sda1: ext2
/dev/sda2: ext2
/dev/sda3: ext2
/dev/sda4: reiserfs
><fs> mount /dev/sda2 /
><fs> ls /
.ash_history
.rnd
.ssh
ash_env
bin
boot
bzImage
custom
defaults
dev
><fs> umount /
><fs> exit
您可以使用复制输入和复制输出将文件从 vmdk 复制到主机,反之亦然
关于linux - 使用 power iso 提取 VMDK 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36544343/