[Libguestfs] Issue with virt-builder on Ubuntu 14.04

Richard W.M. Jones rjones at redhat.com
Tue Jun 30 08:06:13 UTC 2015


On Mon, Jun 29, 2015 at 08:49:26PM -0600, Shawn Greig wrote:
[...]

Thanks for the detailed bug report.

The issue is indeed something strange with your host or KVM or your
host kernel (3.13.0-55-generic).  As you can see from the end of the
messages:

> [    0.371018] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem
> [    0.393840] EXT4-fs (sdb): mounted filesystem without journal. Opts:
> supermin: chroot
> Starting /init script ...
> ln: failed to create symbolic link '/etc/mtab': File exists
> /init: 55: /init: systemd-tmpfiles: not found
> [    1.687079] systemd-udevd[91]: starting version 204
> [    1.808148] random: nonblocking pool is initialized
> [    1.886029] ACPI Exception: AE_BAD_PARAMETER, Thread 487102464 could not acquire Mutex [0x1] (20131115/utmutex-285)
> [    1.886591] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
> /init: 79: /init: cannot create /sys/block/{h,s,ub,v}d*/queue/scheduler: Directory nonexistent
> /sbin/dhclient-script: line 31: /etc/fstab: No such file or directory
> [    2.935872] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3

... the kernel boots quite far, and then hangs in the init script (see
appliance/init).

Some things you can try:

 - Force qemu to use TCG (no KVM) mode to see if that makes a difference:

   export LIBGUESTFS_BACKEND_SETTINGS=force_tcg

 - Use 'libguestfs-test-tool' for testing to see if that makes a
   difference.  In the build directory, run:

   make quickcheck

 - Try a different appliance kernel by setting these variables, but
   choose different kernel versions by looking in your /boot directory
   first:

   export SUPERMIN_KERNEL_VERSION=3.13.0-55-generic
   export SUPERMIN_KERNEL=/boot/vmlinuz-$SUPERMIN_KERNEL_VERSION
   export SUPERMIN_MODULES=/lib/modules/$SUPERMIN_KERNEL_VERSION
   rm -rf tmp/.guestfs-*
   make quickcheck

 - Add debugging 'set -x' to the top of appliance/init in the source
   tree to see if it fails while running a specific command.

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




More information about the Libguestfs mailing list