Bug 593419 - [XEN conversion] failed with error "No template kernel found in grub......"
Summary: [XEN conversion] failed with error "No template kernel found in grub......"
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-v2v
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Matthew Booth
QA Contact: Virtualization Bugs
Depends On: 586822
TreeView+ depends on / blocked
Reported: 2010-05-18 18:34 UTC by Hugh Brock
Modified: 2016-04-26 14:25 UTC (History)
8 users (show)

Fixed In Version: virt-v2v-0.6.1-1
Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Clone Of: 586822
Last Closed: 2010-11-10 21:54:29 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Hugh Brock 2010-05-18 18:34:17 UTC
+++ This bug was initially created as a clone of Bug #586822 +++

Description of problem:
as subject. modify "/usr/lib/perl5/vendor_perl/5.8.8/Sys/VirtV2V/GuestOS/RedHat.pm" like following:
1191                 else {
1192                     my ($match) =
1193                         $g->aug_match('/files/boot/grub/menu.lst/title/kernel');
1195                     #die("No template kernel found in grub")
1196                     my $grub = $g->cat('/boot/grub/menu.lst');
1197                     die("No template kernel found in grub: $grub")
1198                         unless(defined($match));
1200                     $match =~ s/\/kernel$//;
1201                     $g->aug_defvar('template', $match)

then the output will be:

see the attachment, it's part of the output with LIBGUESTFS_TRACE and LIBGUESTFS_DEBUG is in attachment. 

guest image is rhel5u4-32b-hv-raw-intel.img.

Version-Release number of selected component (if applicable):
[root@dhcp-66-70-129 xen-remote]# rpm -q virt-v2v v2v-libvirt libguestfs

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

--- Additional comment from jyang@redhat.com on 2010-04-28 08:42:53 EDT ---

Created an attachment (id=409805)
debug and trace output

--- Additional comment from mbooth@redhat.com on 2010-04-29 09:15:17 EDT ---

Posted a fix for this.

--- Additional comment from mbooth@redhat.com on 2010-04-29 10:16:07 EDT ---

Build 0.5.2-1 is now in brew.

--- Additional comment from nzhang@redhat.com on 2010-05-06 03:28:41 EDT ---

Verified with virt-v2v-0.5.2-1.el5, it's already fixed.

Comment 1 RHEL Program Management 2010-05-18 18:55:00 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for

Comment 2 Matthew Booth 2010-06-18 10:50:23 UTC
This went upstream a long time ago. It'll be in the next build.

Comment 6 koka xiong 2010-08-03 06:21:54 UTC
Verified on rhel6  with virt-v2v-0.6.1-1.el6.x86_64 
run  LIBGUESTFS_TRACE=1 virt-v2v -f /etc/virt-v2v.conf -i libvirtxml -op test rhel5u4-32b-hv-raw-intel.xml 2>&1 >conversion_trace.log
In the conversion_trace.log,"no template kernle found in grub" is not found.

Verified is passed.

Comment 7 releng-rhel@redhat.com 2010-11-10 21:54:29 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

Note You need to log in before you can comment on or make changes to this bug.