[Libguestfs] Attach virtual machine disk on gluster volume via libguestfs (Error "No operating system found")

"Надежда Мозолина, 119 группа" nadushka-94 at mail.ru
Wed Aug 4 13:14:20 UTC 2021

I kinly ask you to help me with attach virtual machine disk via libguestfs.
There are 3 compute node with Debian 10. Each node is used as hypervisor based on QEMU/KVM.
Libvirt0:amd64 5.0.0-4+deb10u1
Libguestfs0:amd 1:1.40.2-2
I create Virtual Machines with disks on GlusterFS volume.
<disk type='network' device='disk'>
      <driver name='qemu' type='qcow2' cache='none' io='threads' discard='unmap'/>
      <source protocol='gluster' name='TEST/TEST1'>
        <host name='localhost' port='24007'/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>

I would like to work with guest image by libguestfs.

Using guestfish (all rights!):
><fs> add TEST/TEST1 protocol:gluster server:localhost:24007
><fs> run
><fs> list-filesystems
/dev/sda1: ext4
/dev/sda5: swap
Unfortunatly, the using libguestfs library (C#) results in error "No operating system found". You can find my code in attached files (Source.cpp). 
How should I use libguetfs library to attach virtual michine disk correctly?
Надежда Мозолина
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20210804/eba7809e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Source.cpp
Type: text/x-c++src
Size: 1469 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20210804/eba7809e/attachment.bin>

More information about the Libguestfs mailing list