Help, it's not working!
Hi, *1. What are you trying to do?* I was trying to clean up a virtual machine image in place. I followed the instruction in the Openstack documentation to do so. Here is the link: http://docs.openstack.org/image-guide/ubuntu-image.html *2. What exact command(s) did you run?* virt-sysprep -d trusty *3. What was the precise error or output of these commands?* Examining the guest ... Fatal error: exception Guestfs.Error("/usr/bin/supermin-helper exited with error status 1. To see full error messages you may need to enable debugging. See http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs") 4.*Enable debugging, run the commands again, and capture the complete output. Do not edit the output.* Examining the guest ... libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 libguestfs: create: flags = 0, handle = 0x1d9fcc0, program = virt-sysprep libguestfs: trace: add_domain "ryu" "readonly:false" "allowuuid:true" "readonlydisk:ignore" libguestfs: opening libvirt handle: URI = NULL, auth = virConnectAuthPtrDefault, flags = 1 libguestfs: successfully opened libvirt handle: conn = 0x1da04a0 libguestfs: trace: internal_set_libvirt_selinux_norelabel_disks false libguestfs: trace: internal_set_libvirt_selinux_norelabel_disks = 0 libguestfs: disk[0]: filename: /home/sajad/Desktop/ubuntu-with-ryu-image/ryu.qcow2 libguestfs: trace: add_drive "/home/sajad/Desktop/ubuntu-with-ryu-image/ryu.qcow2" "readonly:false" "format:qcow2" libguestfs: trace: add_drive = 0 libguestfs: trace: add_domain = 1 libguestfs: trace: launch libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" libguestfs: trace: version libguestfs: trace: version = <struct guestfs_version *> libguestfs: trace: get_backend libguestfs: trace: get_backend = "direct" libguestfs: launch: program=virt-sysprep libguestfs: launch: version=1.24.5 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfs6HkWxs libguestfs: launch: umask=0022 libguestfs: launch: euid=0 libguestfs: command: run: /usr/bin/supermin-helper libguestfs: command: run: \ --verbose libguestfs: command: run: \ -f checksum libguestfs: command: run: \ --host-cpu x86_64 libguestfs: command: run: \ /usr/lib/guestfs/supermin.d supermin helper [00000ms] whitelist = (not specified) supermin helper [00000ms] host_cpu = x86_64 supermin helper [00000ms] dtb_wildcard = (not specified) supermin helper [00000ms] inputs: supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d supermin helper [00000ms] outputs: supermin helper [00000ms] kernel = (none) supermin helper [00000ms] dtb = (none) supermin helper [00000ms] initrd = (none) supermin helper [00000ms] appliance = (none) checking modpath /lib/modules/4.2.0-36-generic is a directory checking modpath /lib/modules/4.2.0-27-generic is a directory checking modpath /lib/modules/4.2.0-36-generic is a directory picked kernel vmlinuz-4.2.0-36-generic.efi.signed supermin helper [00000ms] finished creating kernel supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/daemon.img.gz supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/init.img supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/udev-rules.img supermin helper [00000ms] adding kernel modules supermin helper [00040ms] finished creating appliance libguestfs: checksum of existing appliance: 05ab72a1ee432a4a4356dba8a72c62fd48ba7b7def0aecac577aea7b3088f183 libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" libguestfs: [00043ms] begin building supermin appliance libguestfs: [00043ms] run supermin-helper libguestfs: command: run: /usr/bin/supermin-helper libguestfs: command: run: \ --verbose libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu x86_64 libguestfs: command: run: \ /usr/lib/guestfs/supermin.d libguestfs: command: run: \ --output-kernel /var/tmp/guestfs.olIel8/kernel libguestfs: command: run: \ --output-initrd /var/tmp/guestfs.olIel8/initrd libguestfs: command: run: \ --output-appliance /var/tmp/guestfs.olIel8/root supermin helper [00000ms] whitelist = (not specified) supermin helper [00000ms] host_cpu = x86_64 supermin helper [00000ms] dtb_wildcard = (not specified) supermin helper [00000ms] inputs: supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d supermin helper [00000ms] outputs: supermin helper [00000ms] kernel = /var/tmp/guestfs.olIel8/kernel supermin helper [00000ms] dtb = (none) supermin helper [00000ms] initrd = /var/tmp/guestfs.olIel8/initrd supermin helper [00000ms] appliance = /var/tmp/guestfs.olIel8/root checking modpath /lib/modules/4.2.0-36-generic is a directory checking modpath /lib/modules/4.2.0-27-generic is a directory checking modpath /lib/modules/4.2.0-36-generic is a directory picked kernel vmlinuz-4.2.0-36-generic.efi.signed supermin helper [00013ms] finished creating kernel supermin helper [00282ms] finished mke2fs supermin helper [00282ms] visiting /usr/lib/guestfs/supermin.d supermin helper [00282ms] visiting /usr/lib/guestfs/supermin.d/daemon.img.gz supermin helper [00302ms] visiting /usr/lib/guestfs/supermin.d/init.img supermin helper [00302ms] visiting /usr/lib/guestfs/supermin.d/udev-rules.img /usr/bin/supermin-helper: ext2: parent directory not found: /lib: File not found by ext2_lookup libguestfs: command: run: rm libguestfs: command: run: \ -rf /var/tmp/guestfs.olIel8 libguestfs: trace: launch = -1 (error) Fatal error: exception Guestfs.Error("/usr/bin/supermin-helper exited with error status 1, see debug messages above") libguestfs: trace: close libguestfs: closing guestfs handle 0x1d9fcc0 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfs6HkWxs *5.Include the version of libguestfs, the operating system version, and how you installed libguestfs (eg. from source, yum install, etc.)* version : virt-sysprep 1.24.5 operating system version : ubuntu 14.04 trusty installation method: apt-get install I need to add that the system i ran this command on, is an Openstack controller. I appreciate your help. Regards, Sajad
On Mon, Aug 29, 2016 at 08:46:09PM -0500, Sa Kh wrote:
/usr/bin/supermin-helper: ext2: parent directory not found: /lib: File not found by ext2_lookup
I believe the fix for this is to run: sudo update-guestfs-appliance We have long fixed this problem upstream.
version : virt-sysprep 1.24.5 operating system version : ubuntu 14.04 trusty
... grumbles about Ubuntu still shipping ancient and insecure 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 virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
participants (2)
-
Richard W.M. Jones -
Sa Kh