[Libguestfs] febootstrap: no ext2 root device found

Steve Keller Savvco steve.keller at savvco.com
Thu Mar 8 21:58:08 UTC 2018


Thanks for the update.  I'll give that a try and let you know.

-----Original Message-----
From: Richard W.M. Jones [mailto:rjones at redhat.com] 
Sent: Thursday, March 8, 2018 3:14 PM
To: Steve Keller Savvco <steve.keller at savvco.com>
Cc: libguestfs at redhat.com
Subject: Re: [Libguestfs] febootstrap: no ext2 root device found

On Thu, Mar 08, 2018 at 06:41:57AM -0600, Steve Keller Savvco wrote:
> [41300ms] /usr/libexec/qemu-kvm \
>     -global virtio-blk-pci.scsi=off \
>     -nodefconfig \
>     -nodefaults \
>     -nographic \
>     -machine accel=kvm:tcg \
>     -cpu host,+kvmclock \
>     -m 500 \
>     -no-reboot \
>     -kernel /var/tmp/.guestfs-0/kernel.21046 \
>     -initrd /var/tmp/.guestfs-0/initrd.21046 \
>     -device virtio-scsi-pci,id=scsi \
>     -drive
> file=/tmp/libguestfs-test-tool-sda-TZujW3,cache=writeback,format=raw,i
> d=hd0,
> if=none \
>     -device scsi-hd,drive=hd0 \
>     -drive
> file=/var/tmp/.guestfs-0/root.21046,snapshot=on,id=appliance,if=none,c
> ache=u
> nsafe \
>     -device scsi-hd,drive=appliance \

We present virtio-scsi disks to the appliance, but ...

> febootstrap: internal insmod libcrc32c.ko
> febootstrap: internal insmod crc32c-intel.ko
> febootstrap: internal insmod crc-itu-t.ko
> febootstrap: internal insmod crc-t10dif.ko
> febootstrap: internal insmod crc-ccitt.ko
> febootstrap: internal insmod crc7.ko
> febootstrap: internal insmod mbcache.ko
> febootstrap: internal insmod cdrom.ko
> febootstrap: internal insmod sr_mod.ko
> febootstrap: internal insmod ata_piix.ko
> febootstrap: internal insmod scsi_transport_spi.ko
> febootstrap: internal insmod sym53c8xx.ko
> febootstrap: internal insmod sd_mod.ko
> febootstrap: internal insmod virtio_ring.ko
> febootstrap: internal insmod virtio.ko
> febootstrap: internal insmod virtio-rng.ko
> febootstrap: internal insmod virtio_console.ko
> febootstrap: internal insmod virtio_blk.ko
> febootstrap: internal insmod virtio_net.ko
> febootstrap: internal insmod virtio_pci.ko
> febootstrap: internal insmod virtio_balloon.ko
> febootstrap: internal insmod jbd2.ko
> febootstrap: internal insmod ext4.ko
> febootstrap: internal insmod ext2.ko
> febootstrap: no ext2 root device found

... there is no virtio-scsi module in the initramfs.

The reason for this is that your host kernel doesn't have virtio-scsi
configured.  I don't know why that is, but you need to fix that, and then
you can do:

  rm -rf /var/tmp/.guestfs-*
  libguestfs-test-tool

and hopefully it should work.

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




More information about the Libguestfs mailing list