Lee Revell
2015-Mar-12 18:29 UTC
[Libguestfs] Invalid module format errors, supermin waits forever for /sys/block/sdb/dev to appear
After failing to get things to work on a Ubuntu 14.04 host I build a fedora 21 environment to see if Ubuntu may have been the problem and didn't get quite as far so here's an official report per the FAQ directions: - Trying to get guests to build and have network access so package management actions can be done before uploading to openstack image service. - I ran ./run virt-builder fedora-18 -v -x (also tried fedora-21, same issue) - Using supermin 5.1.2, libguestfs 1.29.29 both built from source on fedora 21 host with all updates. "yum-builddep libguestfs" was run first to pull dependencies. Short version is that I get a bunch of Invalid module format errors then supermin waiting for /sys/block/sdb/dev to appear and it never does. Full output attached. Thanks, Lee
Richard W.M. Jones
2015-Mar-12 19:11 UTC
Re: [Libguestfs] Invalid module format errors, supermin waits forever for /sys/block/sdb/dev to appear
On Thu, Mar 12, 2015 at 02:29:46PM -0400, Lee Revell wrote:> After failing to get things to work on a Ubuntu 14.04 host I build a > fedora 21 environment to see if Ubuntu may have been the problem and > didn't get quite as far so here's an official report per the FAQ > directions: > > - Trying to get guests to build and have network access so package > management actions can be done before uploading to openstack image > service. > > - I ran ./run virt-builder fedora-18 -v -x (also tried fedora-21, > same issue) > > - Using supermin 5.1.2, libguestfs 1.29.29 both built from source on > fedora 21 host with all updates. "yum-builddep libguestfs" was run > first to pull dependencies. > > Short version is that I get a bunch of Invalid module format errors > then supermin waiting for /sys/block/sdb/dev to appear and it never > does. Full output attached.[...]> supermin: internal insmod libcrc32c.ko.xz > insmod: init_module: libcrc32c.ko.xz: Invalid module format > [ 1.234236] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input2 > supermin: waiting another 1024000000 ns for /sys/block/sdb/dev to appear > supermin: waiting another 2048000000 ns for /sys/block/sdb/dev to appear > supermin: waiting another 4096000000 ns for /sys/block/sdb/dev to appear > supermin: waiting another 8192000000 ns for /sys/block/sdb/dev to appear > supermin: waiting another 16384000000 ns for /sys/block/sdb/dev to appear > supermin: waiting another 32768000000 ns for /sys/block/sdb/dev to appear > supermin: waiting another 65536000000 ns for /sys/block/sdb/dev to appear > supermin: waiting another 131072000000 ns for /sys/block/sdb/dev to appearThese errors are caused because supermin isn't compiled with xz-static support. Did you compile supermin by hand? There's a version in Fedora itself which should work fine. If you're building it by hand, then most likely you didn't run `yum-builddep supermin' first to install all the build dependencies, including the optional ones such as xz. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Richard W.M. Jones
2015-Mar-12 20:42 UTC
Re: [Libguestfs] Invalid module format errors, supermin waits forever for /sys/block/sdb/dev to appear
The error with networking is going to come down to how qemu is invoked by libguestfs. Are you using the default ('direct') backend on both Fedora & Ubuntu? Try doing: guestfish get-backend or this command if libguestfs is not installed: ./run guestfish get-backend Next do this command, all on one line: guestfish -v -x --network -a /dev/null run : debug sh 'exec 3<> /dev/tcp/google.com/80 ; echo -e "GET /\n" >&3 ; cat <&3' # http://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip You'll have to look for the qemu command line in the debug output. Both the command line parameters related to the network, and the version of qemu are of interest. Also note that `ping' is not expected to work inside the guest, when using the direct backend as non-root. 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
Apparently Analagous Threads
- Re: Invalid module format errors, supermin waits forever for /sys/block/sdb/dev to appear
- virt-sparsify error message.
- virt-df stuck at supermin: [...] waiting for /sys/block/sdb/dev to appear
- Re: virt-df stuck at supermin: [...] waiting for /sys/block/sdb/dev to appear
- Re: supermin in Fedora Rawhide switched (again) to using dnf instead of yum