[Libguestfs] [v2v PATCH v2] convert_linux: translate the first CD-ROM's references in boot conf files

Laszlo Ersek lersek at redhat.com
Thu Dec 16 11:08:49 UTC 2021


On 12/16/21 11:50, Laszlo Ersek wrote:

> However... the converted guest does not boot at all. Please see the
> attached screenshot (it's not big).

Some more details. During the conversion, I get a warning as follows:

> virt-v2v: warning: mount: mount exited with status 32: mount: 
> /sysroot/mnt2: /dev/sda already mounted or mount point busy. (ignored)

The issue seems to be that *before* the code in my patch runs, there is a separate mapping, from /dev/hda (the CD-ROM) to /dev/sda. However, /dev/sda is already taken: it represents the (originally virtio-blk) system disk.

Here's the contents of the original /etc/fstab file:

> /dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
> LABEL=/boot             /boot                   ext3    defaults        1 2
> tmpfs                   /dev/shm                tmpfs   defaults        0 0
> devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
> sysfs                   /sys                    sysfs   defaults        0 0
> proc                    /proc                   proc    defaults        0 0
> /dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
> /dev/hda                 /mnt2                    iso9660 noauto         0 0

And here's a bit larger snippet from the log:

> libguestfs: trace: v2v: mount "/dev/hda" "/mnt2"
> guestfsd: => mount (0x1) took 0.13 secs
> guestfsd: <= mount (0x1) request length 64 bytes
> device name translated: /dev/hda -> /dev/sda

This seems to come from "daemon/device-name-translation.c" in libguestfs.

But, I'm attaching the full conversion log too. (NB this log was generated with my patch applied; however, the patch itself makes no difference regarding the boot failure, as stated before.)

FWIW, I don't know if this warning (i.e., the failed attempt to mount /dev/sda) has anything to do with the boot failure in the converted guest.

Thanks,
Laszlo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virt-v2v.log.xz
Type: application/x-xz
Size: 118056 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20211216/636834ec/attachment.xz>


More information about the Libguestfs mailing list