<div dir="auto">>> is there any other way outside libguestfs to access the contents of the virtual machine vhd/vhdx disk ?<div dir="auto">You can do:</div><div dir="auto"><br></div><div dir="auto">qemu-nbd -c /dev/nbd0 /path/to/disk-image.vhd</div><div dir="auto">ls -1 /dev/nbd0* # to list found partitions</div><div dir="auto">mount /dev/nbd0pX /path/to/mountpoint # /dev/nbd0pX - partition recognized on block device</div><div dir="auto"><br></div><div dir="auto"># deassociate block device after you umont partition:</div><div dir="auto"># qemu-nbd -d /dev/nbd0 </div><div dir="auto"><br></div><div dir="auto">Of course you need kernel compiled with NBD support.<br><br><div data-smartmail="gmail_signature" dir="auto">--<br>  Mykola Ivanets</div></div></div><br><div class="gmail_quote"><div dir="ltr">пт, 29 черв. 2018, 11:41 користувач Pascal <<a href="mailto:patatetom@gmail.com">patatetom@gmail.com</a>> пише:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hello,<br><br><div>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.</div><div><br></div><div>I downloaded the 1.38-stable sources, installed the necessary dependencies and compiled them with the command :<br></div><div><br></div><div><span style="color:rgb(0,0,255)"><span style="font-family:monospace,monospace">./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</span></span></div><div><span style="color:rgb(0,0,255)"><span style="font-family:monospace,monospace">...<br></span></span></div><div><span style="color:rgb(0,0,255)"><span style="font-family:monospace,monospace">Thank you for downloading libguestfs 1.38.2<br>This is how we have configured the optional components for you today:<br>Daemon .............................. no<br>Appliance ........................... no<br>QEMU ................................ /bin/qemu-system-x86_64<br>guestfish and C-based virt tools .... yes<br>FUSE filesystem ..................... yes<br>Default backend ..................... direct<br>GNU gettext for i18n ................ yes<br>virt-p2v ............................ yes<br>OCaml bindings ...................... no<br>OCaml-based virt tools .............. no<br>Perl bindings ....................... no<br>Perl-based virt tools ............... no<br>Python bindings ..................... yes<br>Ruby bindings ....................... no<br>Java bindings ....................... no<br>Haskell bindings .................... no<br>PHP bindings ........................ no<br>Erlang bindings ..................... no<br>Lua bindings ........................ no<br>Go bindings ......................... no<br>gobject bindings .................... no<br>gobject introspection ............... no<br>bash completion ..................... yes<br></span></span></div><div><br></div><div>compilation goes well :<br></div><div><br></div><div><span style="color:rgb(0,0,255)"><span style="font-family:monospace,monospace">make</span></span></div><div><span style="color:rgb(0,0,255)"><span style="font-family:monospace,monospace">...</span></span></div><div><span style="color:rgb(0,0,255)"><span style="font-family:monospace,monospace">mv podwrapper.1-t podwrapper.1<br>make[2]: Leaving directory '/tmp/libguestfs-1.38.2'<br>make[1]: Leaving directory '/tmp/libguestfs-1.38.2'<br></span></span></div><div><br></div><div>but installation does not install guestmout (or even guestunmount) and ends in an error :</div><div><br></div><div><span style="color:rgb(0,0,255)"><span style="font-family:monospace,monospace">make DESTDIR="/tmp/test/" install<br></span></span></div><div><span style="color:rgb(0,0,255)"><span style="font-family:monospace,monospace">...</span></span></div><div><span style="color:rgb(0,0,255)"><span style="font-family:monospace,monospace">make[4]: Entering directory '/tmp/libguestfs-1.38.2/po'<br>make[4]: *** No rule to make target '../builder/index-parse.c', needed by 'libguestfs.pot'.  Stop.<br>make[4]: Leaving directory '/tmp/libguestfs-1.38.2/po'<br>make[3]: *** [Makefile:1818: install-data-am] Error 2<br>make[3]: Leaving directory '/tmp/libguestfs-1.38.2/po'<br>make[2]: *** [Makefile:1769: install-am] Error 2<br>make[2]: Leaving directory '/tmp/libguestfs-1.38.2/po'<br>make[1]: *** [Makefile:2216: install-recursive] Error 1<br>make[1]: Leaving directory '/tmp/libguestfs-1.38.2'<br>make: *** [Makefile:2873: install] Error 2<br></span></span><br></div><div></div><div>what the problem is or could be ?</div><div><br></div><div>is there any other way outside libguestfs to access the contents of the virtual machine vhd/vhdx disk ?<br></div><div><br></div><div>regards, lacsaP.<br></div></div>
_______________________________________________<br>
Libguestfs mailing list<br>
<a href="mailto:Libguestfs@redhat.com" target="_blank" rel="noreferrer">Libguestfs@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libguestfs" rel="noreferrer noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/libguestfs</a></blockquote></div>