Version of libguestfs is 1.20. Running on Debian wheezy. It was compiled from source downloaded from the official page. Regards Peter Az iPhone-omról küldve 2016. jan. 6. dátummal, 18:54 időpontban Richard W.M. Jones <rjones@redhat.com> írta:>> On Wed, Jan 06, 2016 at 02:42:43PM +0200, Keresztes Péter-Zoltán wrote: >> Hello, >> >> I am trying to resize some virtual machines and I get the following error: >> >> server-12 (out): Fatal error: exception Guestfs.Error("part_get_parttype: parted print: /dev/sda: parted: error while loading shared libraries: libparted.so.0: cannot open shared object file: No such file or directory") >> >> I have checked and I have liberated.so.0 on the servers. I have run ld.config to update the library paths but it does not help at all. > > What version of libguestfs? What host? Where did you get the > libguestfs packages from? > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > virt-top is 'top' for virtual machines. Tiny program with many > powerful monitoring features, net stats, disk stats, logging, etc. > http://people.redhat.com/~rjones/virt-top
On Wed, Jan 06, 2016 at 11:37:53PM +0200, Keresztes Péter-Zoltán wrote:> Version of libguestfs is 1.20. Running on Debian wheezy. It was compiled from source downloaded from the official page.That version is 2½ years old ...> >> server-12 (out): Fatal error: exception Guestfs.Error("part_get_parttype: parted print: /dev/sda: parted: error while loading shared libraries: libparted.so.0: cannot open shared object file: No such file or directory")The error means that for some reason libparted.so.0 hasn't been included in the appliance. It's hard to say exactly why - I'd need to see the full build log and the full log from 'libguestfs-test-tool'. You might try exploring the appliance using: ./run ./rescue/virt-rescue --scratch ><rescue> ls -l /usr/lib/ etc. Appliance building is much more robust with supermin 5 & more recent versions of libguestfs. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
I understand that it is a 2 and half year inks release however it is the last one which it does work with the version of Debian we have. I will try the tools to see the results and post them here for you. Regards Peter Az iPhone-omról küldve 2016. jan. 7. dátummal, 0:05 időpontban Richard W.M. Jones <rjones@redhat.com> írta:>> On Wed, Jan 06, 2016 at 11:37:53PM +0200, Keresztes Péter-Zoltán wrote: >> Version of libguestfs is 1.20. Running on Debian wheezy. It was compiled from source downloaded from the official page. > > That version is 2½ years old ... > >>>> server-12 (out): Fatal error: exception Guestfs.Error("part_get_parttype: parted print: /dev/sda: parted: error while loading shared libraries: libparted.so.0: cannot open shared object file: No such file or directory") > > The error means that for some reason libparted.so.0 hasn't been > included in the appliance. It's hard to say exactly why - I'd need to > see the full build log and the full log from 'libguestfs-test-tool'. > > You might try exploring the appliance using: > > ./run ./rescue/virt-rescue --scratch >> <rescue> ls -l /usr/lib/ > etc. > > Appliance building is much more robust with supermin 5 & more recent > versions of libguestfs. > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > Fedora Windows cross-compiler. Compile Windows programs, test, and > build Windows installers. Over 100 libraries supported. > http://fedoraproject.org/wiki/MinGW
I had some more ideas overnight: (1) Check that libparted0 is installed on the *host*. (2) Try to find out what libraries the parted binary requires on the host and appliance. On the host: ldd /usr/bin/parted On the appliance: virt-rescue --scratch ><rescue> ldd /usr/bin/parted (3) Remove the appliance and recreate it: rm -rf /var/tmp/.guestfs-* libguestfs-test-tool (4) As this is ancient Debian, try rebuilding the supermin appliance: sudo update-guestfs-appliance Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v