Linux下像vhd一样的东西,如何在Linux中附加VHDx或VHD文件?

您可以使用

libguestfs-tools来实现此目的.

>首先,您需要在类似Ubuntu / Debian的Linux上安装它:

sudo apt-get install libguestfs-tools

>然后,您几乎可以随意安装:

guestmount --add yourVirtualDisk.vhdx --inspector --ro /mnt/anydirectory

这只是只读提取点的一个示例.

提示:

>以普通用户身份运行,即:

guestmount ...

代替:

sudo guestmount ...

>开关; man page的引文:

--add

Add a block device or virtual machine image.

--inspector

Using 07002 code, inspect the disks looking for an operating system and mount filesystems as they would be mounted on the real virtual machine.

--ro

Add devices and mount everything read-only. Also disallow writes and make the disk appear read-only to FUSE.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值