Bug 909456 - virt-v2v fails to install kernel if yum repo's baseurl is not a fqdn
Summary: virt-v2v fails to install kernel if yum repo's baseurl is not a fqdn
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-v2v
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthew Booth
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-08 20:23 UTC by kelvin
Modified: 2014-09-10 12:45 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-09-10 12:45:01 UTC
Embargoed:


Attachments (Terms of Use)
virt-v2v log messages (1.57 KB, text/plain)
2013-02-08 20:23 UTC, kelvin
no flags Details

Description kelvin 2013-02-08 20:23:23 UTC
Created attachment 695228 [details]
virt-v2v log messages

virt-v2v cannot find kernel if yum repo file uses baseurl with shortname (i.e. hostname -s)

Version-Release number of selected component (if applicable):
[root@server4 ~]# virt-v2v --version
0.8.7


How reproducible:
always

Steps to Reproduce:
1. install minimal Xen VM on other host.
lvcreate -L 5G -n nobootloaderDisk0 filer01volgroup00
virt-install --bridge=br0 --nographics --paravirt --file=/dev/filer01volgroup00/nobootloaderDisk0 --location=http://home/distros/centos/5/os/x86_64 --os-type=linux --os-variant=rhel5.4 --name=nobootloader --ram=512 --vcpus=1

2. Inside Xen VM, alter repo file to point to local mirror, using shortname
sed -e 's,^mirrorlist,#mirrorlist,g' -e 's,#baseurl=http://mirror.centos.org/centos,baseurl=http://home/distros/centos,' -i.bak /etc/yum.repos.d/CentOS-Base.repo

3. shutdown Xen VM

4. perform virt-v2v.
virt-v2v -ic xen+ssh://root@server2 -op vm_pool --bridge br0 nobootloader
  

Actual results:
virt-v2v fails to find kernel.  
see attachment for virt-v2v output.

Expected results:
virt-v2v uses /etc/resolv.conf domainname to resolve a mirror host

Additional info:

Starting the Xen vm up again and changing the yum repo baseurl to a fqdn makes the virt-v2v succeed.

Comment 1 Richard W.M. Jones 2014-09-10 12:45:01 UTC
virt-v2v no longer installs kernels.  You have to install the kernel
first in the guest.  So in one sense this bug is "fixed".


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