Bug 799865

Summary: Fail to install RHEL7 64bit hvm guest on Xen
Product: Red Hat Enterprise Linux 7 Reporter: Qin Guan <qguan>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: leiwang, qwan, yuzhou
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-16 08:45:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 799508    
Attachments:
Description Flags
rhel7-anaconda.zip
none
install.log
none
rhel7-install-bootloader-hang.png none

Description Qin Guan 2012-03-05 10:10:41 UTC
Description of problem:
RHEL7 64bit hvm guest installation with DVD iso hang after installing all packages and when trying to installing bootloader.

Version-Release number of selected component (if applicable):
xen-3.0.3-138.el5
kernel-xen-2.6.18-308.el5
guest: RHEL-7.0-20120228.n.1-Server

How reproducible:
100%

Steps to Reproduce:
1. Install RHEL7 64bit hvm guest with following cfg:
name = "RHEL7-64-hvm"
maxmem = 1024
memory = 1024
vcpus = 2
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader" 
boot = "d"
pae = 1
apic = 1
acpi = 1
sdl = 0
vnc = 1
vncunused = 1
vnclisten = "0.0.0.0"
localtime = 0
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model='/usr/lib64/xen/bin/qemu-dm'
disk = ["file:/data/exp/images/RHEL-Server-7-64-hvm.raw,hda,w","file:/data/exp/iso/0223/RHEL-7.0-20120223.n.1-Server-x86_64-dvd1.iso,hdc:cdrom,r"]
vif = [ "type=ioemu,mac=06:16:36:a3:e3:c8,bridge=xenbr0,script=vif-bridge,model=rtl8139"]
serial  = "pty"

Actual results:
RHEL7 64bit hvm guest installation hang after installing all packages and when trying to installing bootloader.

Expected results:
Guest should be installed successfully.

Additional info:
1. Following message found in anaconda log. full log attached.
[root@localhost anaconda]# cat anaconda.log | grep -i fail
06:07:10,008 INFO anaconda: failed to get default SELinux context for /proc: [Errno 2] No such file or directory
06:07:10,011 INFO anaconda: failed to get default SELinux context for /proc: [Errno 2] No such file or directory
06:07:10,013 INFO anaconda: failed to get default SELinux context for /proc/bus/usb: [Errno 2] No such file or directory
06:07:10,017 INFO anaconda: failed to get default SELinux context for /proc/bus/usb: [Errno 2] No such file or directory
06:07:10,028 INFO anaconda: failed to set SELinux context for /mnt/sysimage/sys/fs/selinux: [Errno 95] Operation not supported
06:08:05,304 WARN anaconda: /usr/lib64/python2.7/site-packages/pyanaconda/iw/progress_gui.py:55: GtkWarning: IA__gtk_progress_set_percentage: assertion `percentage >= 0 && percentage <= 1.0' failed
06:08:35,366 INFO anaconda: failed to get default SELinux context for /etc/mtab: [Errno 2] No such file or directory

Note that the same problem found when install RHEL7 on bare metal machine (intel q9400).

Comment 1 Qin Guan 2012-03-05 10:12:16 UTC
Created attachment 567546 [details]
rhel7-anaconda.zip

Comment 2 Qin Guan 2012-03-05 10:14:07 UTC
Created attachment 567547 [details]
install.log

More investigation is ongoing.

(1) The guest image is bootable without run grub2-intall case

(2) Tried grub2-intall case in rescue mode and normal mode:
tried with matrix (file+tap:aio) * (xvda + hda), all results are same:

#grub2-intall /dev/xvda
Installation finished. No error reported

(3) there is a install.log in guest /root (attached)
with following interesting messages:

grubby fatal error: unable to find a suitable template
grubby fatal error: unable to find a suitable template
grubby: doing this would leave no kernel entries. Not writing out new config.
*** FINISHED INSTALLING PACKAGES ***

Comment 3 Qin Guan 2012-03-07 08:20:14 UTC
Created attachment 568190 [details]
rhel7-install-bootloader-hang.png

The same problem (install bootloader hang) found with build of RHEL-7.0-20120305.0 iso.

Screenshot attached for reference.

Comment 4 Chris Lumens 2012-03-08 14:52:05 UTC
Please attach log files as individual, uncompressed attachments.  Doing anything else prevents us from later searching bugzilla.  Thanks.

Comment 7 Qin Guan 2012-03-16 08:45:43 UTC
The problem can not be reproduced when installing with DVD iso by using the build RHEL7.0-20120314.0, which contains the anaconda-16.25.4-4.el7 with the fixes #801479.

Mark it CLOSED.