Bug 586822

Summary: [XEN conversion] failed with error "No template kernel found in grub......"
Product: Red Hat Enterprise Linux 5 Reporter: Osier Yang <jyang>
Component: virt-v2vAssignee: Matthew Booth <mbooth>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 5.5CC: cpelland, dallan, llim, mbooth, mshao, nzhang, rjones, tyan
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.5.2-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 593419 (view as bug list) Environment:
Last Closed: 2010-07-16 16:17:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 593419, 599050    
Attachments:
Description Flags
debug and trace output none

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