Is it possible to mount VHDX (not vhd) disk file in Linux as a read + write block device ?
I have found that qemu-img allows conversion of vhdx disks to other formats, but I am looking for read + write mounting of such disks.
There is also qemu-nbd which allows for read-only mounting of vhdx disks.
But is there a ways to mount vhdx disk as a read + write ?
qemu-nbd
offers according to its man pageman qemu-nbd
a read only option. There is no indication for limitation on mount options.qemu-nbd
maps the vhdx file to a block device, e.g/dev/nbd0
, which can then be mounted asrw
to a directory.This Gist from allenyllee contains mount/unmount scripts with the required commands: https://gist.github.com/allenyllee/0a4c02952bf695470860b27369bbb60d