Re: [Libguestfs] [virt-tools-list] virt-make-fs: Partition 1 has different physical/logical beginnings and endings
On Thu, Jun 7, 2012 at 6:12 PM, Richard W.M. Jones rjo...@redhat.com wrote: This is caused because virtio (used by libguestfs) and the IDE emulation (used by your VM) guess different CHS values for this disk. To be honest I would simply ignore this warning, since CHS values don't matter for virtual machine disks. If you really want to fix it, you could modify your guest to use virtio-blk, which will also make the guest run much faster. Thanks for the clarification Richard. -- Sebastien Douche sdou...@gmail.com Twitter: @sdouche / G+: +sdouche ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
Re: [Libguestfs] ext2: parent directory not found with Ubuntu 12.04
On Tue, May 29, 2012 at 8:00 PM, Richard W.M. Jones rjo...@redhat.com wrote: On Tue, May 29, 2012 at 06:41:51PM +0200, Sebastien Douche wrote: febootstrap-supermin-helper: ext2: parent directory not found: /lib: File not found by ext2_lookup After updating febootstrap you need to run 'update-guestfs-appliance' (as root, I think). Might as well run it anyway to see if it fixes the problem. root@srv8:/srv/sact.virtconf# update-guestfs-appliance febootstrap -v -o supermin.d --names bsdmainutils btrfs-tools cryptsetup diff e2fsprogs gfs-tools gfs2-tools grub-pc hfsplus iproute libaugeas0 linux-image nilfs-tools ntfs-3g ntfsprogs reiserfsprogs udev ufsutils util-linux vim-tiny xz-utils zfs-fuse acl attr bash binutils coreutils cpio dosfstools file findutils gawk grep gzip jfsutils libxml2 lsof lvm2 lzop mdadm module-init-tools net-tools parted procps scrub strace tar zerofree --exclude ^perl --exclude ^python --exclude ^plymouth --exclude ^linux-firmware --exclude ^kbd-misc --exclude ^file-rc febootstrap 3.14 selected package handler: debian packages already present: wanted packages to download: acl adduser attr augeas-lenses base-files base-passwd bash binutils bsdmainutils bsdutils btrfs-tools busybox-initramfs cdebconf coreutils cpio crda cryptsetup cryptsetup-bin dash debconf debianutils diff diffutils dmsetup dosfstools dpkg dracut e2fslibs e2fsprogs file findutils fuse fuse-utils gawk gcc-4.6-base gettext-base grep grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common gzip hfsplus ifupdown initramfs-tools initramfs-tools-bin initscripts insserv install-info iproute jfsutils klibc-utils kpartx libacl1 libaio1 libattr1 libaugeas0 libblkid1 libbsd0 libbz2-1.0 libc-bin libc6 libcomerr2 libcryptsetup4 libdb5.1 libdbus-1-3 libdebian-installer4 libdevmapper-event1.02.1 libdevmapper1.02.1 libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2 libedit2 libelf1 libffi6 libfreetype6 libfuse2 libgcc1 libgcrypt11 libglib2.0-0 libgnutls26 libgpg-error0 libhfsp0 libklibc liblzma5 liblzo2-2 libmagic1 libmount1 libncurses5 libncursesw5 libnewt0.52 libnih-dbus1 libnih1 libnl-3-200 libnl-genl-3-200 libp11-kit0 libpam-modules libpam-modules-bin libpam0g libparted0debian1 libpciaccess0 libpcre3 libplymouth2 libpng12-0 libpopt0 libreadline6 libselinux1 libsigsegv2 libslang2 libss2 libssl1.0.0 libstdc++6 libtasn1-3 libtextwrap1 libtinfo5 libudev0 libuuid1 libxml2 linux-image linux-image-3.2.0-24-generic linux-image-generic lsb-base lsof lvm2 lzop makedev mawk mdadm module-init-tools mount mountall multiarch-support ncurses-bin net-tools nilfs-tools ntfs-3g ntfsprogs original-awk parted passwd procps readline-common reiserfsprogs scrub sed sensible-utils strace sysv-rc sysvinit-utils tar tzdata ucf udev ufsutils upstart util-linux vim-common vim-tiny watershed wireless-crda wireless-regdb xz-utils zerofree zfs-fuse zlib1g Outch! :) root@srv8:/srv/kvm/lib# virt-list-partitions --format qcow2 test-clone.qcow2 /dev/sda1 /dev/sda2 It works! Thanks Richard. If not, please attach the full contents of /usr/lib/guestfs/supermin.d/hostfiles Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/ -- Sebastien Douche sdou...@gmail.com Twitter: @sdouche / G+: +sdouche ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
[Libguestfs] ext2: parent directory not found with Ubuntu 12.04
Hi all, On the most libguestfs commands (guestfish, virt-*), I have always the same message: febootstrap-supermin-helper: ext2: parent directory not found: /lib: File not found by ext2_lookup I'm aware of a similar bug with the old package [1]: Note on febootstrap (may not be directly related to this bug): You need 3.14 to work around that. I would recommend using at least 3.14. https://github.com/libguestfs/febootstrap/commit/6987ad1529dd67e7e1c990fe5b011c51e8625837 Furthermore, febootstrap = 3.14 reveals a bug in e2fsprogs, which needs to be worked around with another patch: https://github.com/libguestfs/febootstrap/commit/386b5985098fedf7bcd111553b8b6b73599df6c9; But I use last packages of Seabios / libguestfs-bin which contain all the patchs. Any hint? Thanks. [1] https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/930634 -- Sebastien Douche sdou...@gmail.com Twitter: @sdouche / G+: +sdouche ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
Re: [Libguestfs] ext2: parent directory not found with Ubuntu 12.04
On Tue, May 29, 2012 at 6:12 PM, Richard W.M. Jones rjo...@redhat.com wrote: Hi Richard To be clear, are you using febootstrap 3.14-2 from here? http://packages.ubuntu.com/precise/febootstrap ya: root@srv8:/srv/kvm/lib# aptitude show febootstrap Package: febootstrap State: installed Automatically installed: yes Version: 3.14-2 Priority: optional Section: universe/admin Please run libguestfs-test-tool and post the *complete* output. root@srv8:/srv/kvm/lib# libguestfs-test-tool = Test starts here = LIBGUESTFS_DEBUG=1 TMPDIR=(not set) libguestfs: new guestfs handle 0x7b3160 library version: 1.14.8 guestfs_get_append: (null) guestfs_get_attach_method: appliance guestfs_get_autosync: 1 guestfs_get_direct: 0 guestfs_get_memsize: 500 guestfs_get_network: 0 guestfs_get_path: /usr/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_qemu: /usr/bin/kvm guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: x86_64 Launching appliance, timeout set to 600 seconds. libguestfs: [0ms] febootstrap-supermin-helper --verbose -f checksum '/usr/lib/guestfs/supermin.d' x86_64 supermin helper [0ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null) supermin helper [0ms] inputs[0] = /usr/lib/guestfs/supermin.d checking modpath /lib/modules/3.2.0-24-generic is a directory picked vmlinuz-3.2.0-24-generic because modpath /lib/modules/3.2.0-24-generic exists checking modpath /lib/modules/3.2.0-23-generic is a directory picked vmlinuz-3.2.0-23-generic because modpath /lib/modules/3.2.0-23-generic exists supermin helper [0ms] finished creating kernel supermin helper [0ms] visiting /usr/lib/guestfs/supermin.d supermin helper [0ms] visiting /usr/lib/guestfs/supermin.d/daemon.img supermin helper [0ms] visiting /usr/lib/guestfs/supermin.d/init.img supermin helper [0ms] adding kernel modules supermin helper [00076ms] finished creating appliance libguestfs: [00078ms] begin building supermin appliance libguestfs: [00078ms] run febootstrap-supermin-helper libguestfs: [00078ms] febootstrap-supermin-helper --verbose -f ext2 /usr/lib/guestfs/supermin.d x86_64 /var/tmp/guestfs.HyjOTn/kernel /var/tmp/guestfs.HyjOTn/initrd /var/tmp/guestfs.HyjOTn/root supermin helper [0ms] whitelist = (not specified), host_cpu = x86_64, kernel = /var/tmp/guestfs.HyjOTn/kernel, initrd = /var/tmp/guestfs.HyjOTn/initrd, appliance = /var/tmp/guestfs.HyjOTn/root supermin helper [0ms] inputs[0] = /usr/lib/guestfs/supermin.d checking modpath /lib/modules/3.2.0-24-generic is a directory picked vmlinuz-3.2.0-24-generic because modpath /lib/modules/3.2.0-24-generic exists checking modpath /lib/modules/3.2.0-23-generic is a directory picked vmlinuz-3.2.0-23-generic because modpath /lib/modules/3.2.0-23-generic exists supermin helper [0ms] finished creating kernel supermin helper [00284ms] finished mke2fs supermin helper [00284ms] visiting /usr/lib/guestfs/supermin.d supermin helper [00284ms] visiting /usr/lib/guestfs/supermin.d/daemon.img supermin helper [00287ms] visiting /usr/lib/guestfs/supermin.d/init.img febootstrap-supermin-helper: ext2: parent directory not found: /lib: File not found by ext2_lookup libguestfs: error: external command failed, see earlier error messages libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x7b3160 (state 0) -- Sebastien Douche sdou...@gmail.com Twitter: @sdouche / G+: +sdouche ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs