Laszlo Ersek
2021-Dec-16 11:08 UTC
[Libguestfs] [v2v PATCH v2] convert_linux: translate the first CD-ROM's references in boot conf files
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 0And 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/sdaThis 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>
Laszlo Ersek
2021-Dec-16 11:12 UTC
[Libguestfs] [v2v PATCH v2] convert_linux: translate the first CD-ROM's references in boot conf files
On 12/16/21 12:08, Laszlo Ersek wrote:> 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.Apologies for conversing with myself :/ Noticed this (a bunch of it) in the log:> WARNING: PV /dev/sda2 in VG VolGroup00 is using an old PV header, modify the VG to update.I don't know if we ultimately perform any operation that modifies the volume group, but if we do, it seems plausible that that update prevents the LVM driver in RHEL5 from recognizing the volume group again :( Laszlo