Bug 586822 - [XEN conversion] failed with error "No template kernel found in grub......"
Summary: [XEN conversion] failed with error "No template kernel found in grub......"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: virt-v2v
Version: 5.5
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Matthew Booth
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 593419 599050
TreeView+ depends on / blocked
 
Reported: 2010-04-28 12:40 UTC by Osier Yang
Modified: 2016-04-26 13:38 UTC (History)
8 users (show)

Fixed In Version: 0.5.2-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 593419 (view as bug list)
Environment:
Last Closed: 2010-07-16 16:17:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
debug and trace output (60.71 KB, text/plain)
2010-04-28 12:42 UTC, Osier Yang
no flags Details

Description Osier Yang 2010-04-28 12:40:41 UTC
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');
1194 
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));
1199 
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
virt-v2v-0.5.1-1.el5
v2v-libvirt-0.8.0-2.el5
libguestfs-1.2.4-1.el5.10


How reproducible:
always

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Osier Yang 2010-04-28 12:42:53 UTC
Created attachment 409805 [details]
debug and trace output

Comment 2 Matthew Booth 2010-04-29 13:15:17 UTC
Posted a fix for this.

Comment 3 Matthew Booth 2010-04-29 14:16:07 UTC
Build 0.5.2-1 is now in brew.

Comment 4 Nan Zhang 2010-05-06 07:28:41 UTC
Verified with virt-v2v-0.5.2-1.el5, it's already fixed.

Comment 7 Matthew Booth 2010-07-16 16:17:01 UTC
This was released in virt-v2v-0.6.0-6.el5


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