On Thu, Jan 28, 2016 at 02:04:53PM +0100, arnaud.bougeard(a)univ-rennes1.fr wrote:
Hello
I have error virt-v2v: error: unable to rebuild initrd
(/boot/initramfs-4.2.3-300.fc23.x86_64.img) because mkinitrd or dracut was
not found in the guest
My physical machine run on fedora23
Boot on usb made from virt-p2v-livecd-1.32.0.fc23.iso
<
http://oirase.annexia.org/virt-p2v/virt-p2v-livecd-1.32.0.fc23.iso>
It does look like a bug, since dracut is no longer present in /sbin.
libguestfs: trace: v2v: is_file "/sbin/dracut"
"followsymlinks:true"
guestfsd: main_loop: proc 89 (mv) took 0.05 seconds
guestfsd: main_loop: new request, len 0x3c
libguestfs: trace: v2v: is_file = 0
libguestfs: trace: v2v: is_file "/sbin/mkinitrd"
"followsymlinks:true"
guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds
guestfsd: main_loop: new request, len 0x40
guestfsd: main_loop: proc 37 (is_file) took 0.00 secondslibguestfs: trace: v2v: is_file =
0
virt-v2v: error: unable to rebuild initrd
(/boot/initramfs-4.2.3-300.fc23.x86_64.img) because mkinitrd or dracut was
not found in the guest
The reproducer is simple too:
$ virt-builder fedora-23
$ virt-v2v -i disk fedora-23.img -o null
[...]
virt-v2v: error: unable to rebuild initrd
(/boot/initramfs-4.2.3-300.fc23.x86_64.img) because mkinitrd or dracut was
not found in the guest
Try this fix which works for me:
https://github.com/libguestfs/libguestfs/commit/569ad259b4726fbdabf380bdc...
Thanks,
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW