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. regards, Peter
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
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
Here is the output of the commands root@avaproxp02:~# ldd /sbin/parted linux-vdso.so.1 => (0x00007ffd151a1000) libparted.so.0 => /lib/x86_64-linux-gnu/libparted.so.0 (0x00007f23ded20000) libreadline.so.6 => /lib/x86_64-linux-gnu/libreadline.so.6 (0x00007f23dead9000) libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f23de8af000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f23de524000) libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f23de31f000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f23de11a000) libdevmapper.so.1.02.1 => /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1 (0x00007f23ddee0000) libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f23ddcb9000) /lib64/ld-linux-x86-64.so.2 (0x00007f23defb3000) libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f23dda98000) libudev.so.0 => /lib/x86_64-linux-gnu/libudev.so.0 (0x00007f23dd889000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f23dd681000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f23dd464000) I have no name!@(none):/# ldd /sbin/parted linux-vdso.so.1 => (0x00007fff83de7000) libparted.so.0 => not found libreadline.so.6 => /lib/x86_64-linux-gnu/libreadline.so.6 (0x00007fe3ab8e9000) libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fe3ab6bf000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe3ab334000) /lib64/ld-linux-x86-64.so.2 (0x00007fe3abb32000) rebuilding the appliance did not help at all.
sudo update-guestfs-appliance
no such tool regards
On 07 Jan 2016, at 12:00, Richard W.M. Jones <rjones@redhat.com> wrote:
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
You could try the binary appliance: http://libguestfs.org/download/binaries/appliance/ Instructions are in the README file. IIRC if you already have libguestfs built, you just have to set the LIBGUESTFS_PATH to point to the directory where you unpacked the appliance. Make sure you use the 1.20.12 appliance, as other ones won't be compatible. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
participants (2)
-
Keresztes Péter-Zoltán -
Richard W.M. Jones