>> is there any other way outside libguestfs to access the contents of the virtual machine vhd/vhdx disk ?
You can do:

qemu-nbd -c /dev/nbd0 /path/to/disk-image.vhd
ls -1 /dev/nbd0* # to list found partitions
mount /dev/nbd0pX /path/to/mountpoint # /dev/nbd0pX - partition recognized on block device

# deassociate block device after you umont partition:
# qemu-nbd -d /dev/nbd0 

Of course you need kernel compiled with NBD support.

--
  Mykola Ivanets

пт, 29 черв. 2018, 11:41 користувач Pascal <patatetom@gmail.com> пише:
hello,

I would only like to have guestmount in my toolkit to read-only vhd/vhdx images, so I try to compile libguestfs with a minimum of dependencies.

I downloaded the 1.38-stable sources, installed the necessary dependencies and compiled them with the command :

./configure --disable-ocaml --disable-perl --disable-ruby --disable-haskell --disable-php --disable-erlang --disable-lua --disable-golang --disable-gobject --disable-appliance --disable-daemon --with-distro=ARCHLINUX --disable-libvirt
...
Thank you for downloading libguestfs 1.38.2
This is how we have configured the optional components for you today:
Daemon .............................. no
Appliance ........................... no
QEMU ................................ /bin/qemu-system-x86_64
guestfish and C-based virt tools .... yes
FUSE filesystem ..................... yes
Default backend ..................... direct
GNU gettext for i18n ................ yes
virt-p2v ............................ yes
OCaml bindings ...................... no
OCaml-based virt tools .............. no
Perl bindings ....................... no
Perl-based virt tools ............... no
Python bindings ..................... yes
Ruby bindings ....................... no
Java bindings ....................... no
Haskell bindings .................... no
PHP bindings ........................ no
Erlang bindings ..................... no
Lua bindings ........................ no
Go bindings ......................... no
gobject bindings .................... no
gobject introspection ............... no
bash completion ..................... yes

compilation goes well :

make
...
mv podwrapper.1-t podwrapper.1
make[2]: Leaving directory '/tmp/libguestfs-1.38.2'
make[1]: Leaving directory '/tmp/libguestfs-1.38.2'

but installation does not install guestmout (or even guestunmount) and ends in an error :

make DESTDIR="/tmp/test/" install
...
make[4]: Entering directory '/tmp/libguestfs-1.38.2/po'
make[4]: *** No rule to make target '../builder/index-parse.c', needed by 'libguestfs.pot'.  Stop.
make[4]: Leaving directory '/tmp/libguestfs-1.38.2/po'
make[3]: *** [Makefile:1818: install-data-am] Error 2
make[3]: Leaving directory '/tmp/libguestfs-1.38.2/po'
make[2]: *** [Makefile:1769: install-am] Error 2
make[2]: Leaving directory '/tmp/libguestfs-1.38.2/po'
make[1]: *** [Makefile:2216: install-recursive] Error 1
make[1]: Leaving directory '/tmp/libguestfs-1.38.2'
make: *** [Makefile:2873: install] Error 2

what the problem is or could be ?

is there any other way outside libguestfs to access the contents of the virtual machine vhd/vhdx disk ?

regards, lacsaP.
_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs