RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 609245 - GUI doesn't start in stage2 / Xen PV guest
Summary: GUI doesn't start in stage2 / Xen PV guest
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On: 597291
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-29 18:18 UTC by Adam Jackson
Modified: 2010-11-10 19:50 UTC (History)
3 users (show)

Fixed In Version: anaconda-13.21.55-1
Doc Type: Bug Fix
Doc Text:
Clone Of: 597291
Environment:
Last Closed: 2010-11-10 19:50:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Adam Jackson 2010-06-29 18:18:24 UTC
+++ This bug was initially created as a clone of Bug #597291 +++

Description of problem:
I'm trying to install a Xen PV guest with latest snap #6 (0527.2). Loader starts and I can proceed to stage2. On tty1 I see Starting anaconda the Red Hat Enterprise Linux installer and then only black screen. Switching to other consoles (tty2, tty3) shows nothing but black screen.

Version-Release number of selected component (if applicable):
anaconda-13.21.48-1.el6 / 0527.2 tree

How reproducible:
Always (tried 2 different hosts)

Steps to Reproduce:
1. Prepare a Xen hypervisor with RHEL 5.5 GA / x86_64.
2. Using virt-manager start new PV guest. 
3. Select Linux/RHEL6 as OS type/version, supply URL to the tree
4. Configure memory to 1024 (startup and maximum memory)
  
Actual results:
Anaconda proceeds to stage2 and shows black screen

Expected results:
Anaconda shown GUI in stage2.

Additional info:
- vnc and text mode start fine (add vnc or text on the command line)
- if I select os type/variant as Generic/Generic same thing - black screen
- if I increase the guest memory to 2048M same thing - black screen
- seen this on two hosts: sun-x4440-01.rhts.eng.bos.redhat.com and hp-z800-01.lab.eng.brq.redhat.com

- anaconda-13.21.45-1 / 0523.0 tree works fine on hp-z800-01.

--- Additional comment from mcepl on 2010-05-29 12:57:11 EDT ---

(In reply to comment #0)
> I'm trying to install a Xen PV guest with latest snap #6 (0527.2). Loader
> starts and I can proceed to stage2.

I don't understand ... you mean you tried to start RHEL-6 as paravirtualized guest? Why do you think RHEL-6 should be able to run paravirtualized? Should it?

--- Additional comment from mcepl on 2010-05-29 13:01:02 EDT ---

(In reply to comment #0)
> - vnc and text mode start fine (add vnc or text on the command line)

Whoops, you are right RHEL-6 should run paravirtualized http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6-Beta/html/Beta_Release_Notes/virtualization.html#id569407 and it apparently worked for you in text mode.

If the computer is not completely frozen when installation fails, switch to the console (Ctrl+Alt+F2) and copy /tmp/X* and /var/log/anaconda.xlog to some other place -- USB stick, some other computer via network, somewhere on the Internet, and please attach it to the bug report as individual uncompressed file attachments using the bugzilla file attachment link above.

If the computer is completely useless after installation fails, you can also install Fedora with a VESA mode driver (see https://fedoraproject.org/wiki/Documentation_Beats_Installer
for more information on that). Then after successful installation you can collect /var/log/anaconda.xlog, /var/log/Xorg.0.log, and the output of the program dmesg instead.

Or you can install Fedora in a text mode completely, and then start X after that. If it fails, still /var/log/Xorg.0.log and the output of dmesg program from the failed attempt to start X would be useful.

We will review this issue again once you've had a chance to attach this information.

Thank you very much in advance.

--- Additional comment from atodorov on 2010-06-01 12:01:15 EDT ---

(In reply to comment #2)
> (In reply to comment #0)
> > - vnc and text mode start fine (add vnc or text on the command line)
> 
> Whoops, you are right RHEL-6 should run paravirtualized
> http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6-Beta/html/Beta_Release_Notes/virtualization.html#id569407
> and it apparently worked for you in text mode.
> 
> If the computer is not completely frozen when installation fails, switch to the
> console (Ctrl+Alt+F2) and copy /tmp/X* and /var/log/anaconda.xlog to some other
> place -- USB stick, some other computer via network, somewhere on the Internet,
> and please attach it to the bug report as individual uncompressed file
> attachments using the bugzilla file attachment link above.
> 

I can't switch tty's at all. 

> If the computer is completely useless after installation fails, you can also
> install Fedora with a VESA mode driver (see
> https://fedoraproject.org/wiki/Documentation_Beats_Installer
> for more information on that). Then after successful installation you can
> collect /var/log/anaconda.xlog, /var/log/Xorg.0.log, and the output of the
> program dmesg instead.

Booting with xdriver=vesa on the command line failed to start X. The last lines in X.log are:

(II) VESA: driver for VESA chipsets: vesa
(WW) Falling back to old probe method for vesa
(EE) No devices detected.

Fatal server error:
no screens found


Will attach all logs from stage2 environment.

> 
> Or you can install Fedora in a text mode completely, and then start X after
> that. If it fails, still /var/log/Xorg.0.log and the output of dmesg program
> from the failed attempt to start X would be useful.

After install, I've installed X and the system was able to start in runlevel 5 and login to GNOME. So no problems here.

--- Additional comment from atodorov on 2010-06-01 12:02:15 EDT ---

Created an attachment (id=418701)
X.log

--- Additional comment from atodorov on 2010-06-01 12:02:47 EDT ---

Created an attachment (id=418703)
dmesg output

--- Additional comment from atodorov on 2010-06-01 12:03:15 EDT ---

Created an attachment (id=418704)
anaconda.log

--- Additional comment from atodorov on 2010-06-01 12:03:44 EDT ---

Created an attachment (id=418706)
program.log

--- Additional comment from atodorov on 2010-06-01 12:04:14 EDT ---

Created an attachment (id=418708)
syslog

--- Additional comment from atodorov on 2010-06-01 12:04:41 EDT ---

Created an attachment (id=418710)
storage.log

--- Additional comment from ajax on 2010-06-03 10:46:42 EDT ---

The X log doesn't show any PCI devices right afetr the "using VT number" line.  Which indicates to me that you don't have any video devices in your Xen guest.  I'm very sorry about that, but I don't think it's something X can be expected to fix.

Check 'lspci' output for VGA or Multimedia devices, and if they're not there, you need to have added them to the guest before booting it.

--- Additional comment from ajax on 2010-06-03 10:48:23 EDT ---

Actually, there's another case there, which is if we've got a /dev/fb0 for xenfb.  We should get that right, afaik, but forcing xdriver=vesa will prevent that.  Can you attach an X log from normal startup too?

--- Additional comment from atodorov on 2010-06-11 13:56:48 EDT ---

Hi Adam,
sorry for late reply. 

When I start the Xen guest so that it shows black screen I can't get any output out of it. I can't switch to tty2 and type commands or do anything else. 

If I start it with the vnc parameter lspci shows nothing. Empty output. There is however /dev/fb0 device.


X log from normal operation will be attached shortly.

--- Additional comment from atodorov on 2010-06-11 14:26:04 EDT ---

Created an attachment (id=423364)
Xorg.0.log from already running system

lspci on th erunning system also produced empty output.

--- Additional comment from ajax on 2010-06-24 10:52:36 EDT ---

What exactly does "when [you] start the Xen guest so that it shows black screen" mean?  Does that mean "when I start with xdriver=vesa" ?  Because that's not expected to work for Xen guests.

--- Additional comment from atodorov on 2010-06-24 12:44:56 EDT ---

I should have been more verbose. 

When I start the PV guest without any additional parameters I hit the black screen. When that happens I can't switch to tty2 or any other tty and I cat get you any log files.

When I start it with the xdriver=vesa X fails and I'm offered to start vnc ot text mode. X.log says:
(EE) No devices detected.

Fatal server error:
no screens found


As you say above this is not expected to work. I can attach the X.log from this install if needed.

--- Additional comment from ajax on 2010-06-24 13:09:19 EDT ---

Are you still trying with the 0527 snapshot?  I can't reproduce this with the 0616 workstation iso.

--- Additional comment from atodorov on 2010-06-24 14:00:21 EDT ---

Nope, comment #15 was with 0622.1/Server/x86_64. Dom0 is RHEL5.5-Server GA (without updates)-x86_64

--- Additional comment from ajax on 2010-06-25 15:19:53 EDT ---

Server, eh.  I've been trying with Workstation.  If that's the difference, I'm going to be quite upset.

--- Additional comment from ajax on 2010-06-29 11:50:28 EDT ---

That _is_ the difference.  I am quite upset.

--- Additional comment from ajax on 2010-06-29 13:15:15 EDT ---

Actually, I can repro it on Workstation too, which is good.  The problem is it's a cascade of two bugs.

Aside: to debug problems like this, do a network install of the Xen guest with 'sshd' on kcmdline.  Inspect the arp cache on the host with 'arp -n' to find the IP address of the guest, and then ssh in once stage2 starts.

One of the bugs is a bug in the fbdev driver where it segfaults on server regeneration:

Backtrace:
0: Xorg (xorg_backtrace+0x28) [0x4adf38]
1: Xorg (0x400000+0x629e9) [0x4629e9]
2: /lib64/libpthread.so.0 (0x7f2b38f19000+0xf440) [0x7f2b38f28440]
3: Xorg (DamageUnregister+0x53) [0x4de543]
4: /usr/lib64/xorg/modules/libshadow.so (shadowRemove+0x33) [0x7f2b352e02c3]
5: /usr/lib64/xorg/modules/libshadow.so (0x7f2b352df000+0x1784) [0x7f2b352e0784]
6: Xorg (0x400000+0xafc29) [0x4afc29]
7: Xorg (0x400000+0x152f0c) [0x552f0c]
8: Xorg (0x400000+0x2209c) [0x42209c]
9: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x7f2b37b6ac5d]
10: Xorg (0x400000+0x21bb9) [0x421bb9]
Segmentation fault at address (nil)

This is pretty straightforward to fix, we had a similar bug in the vesa code.

But the second bug is that we're getting to this at all; the X server should not be regenerating while anaconda is running.  I suspect this is a race condition introduced by the change to metacity from mini-wm; we used to wait for mini-wm to connect before running xrandr(1), but now since we don't, if xrandr beats metacity to the display (and it will, since metacity requires a lot of libraries to load), then when it disconnects the server will regenerate.  The server shouldn't fault when regenerating; but anaconda should also be careful to wait for metacity to initialize before proceeding.

--- Additional comment from ajax on 2010-06-29 13:16:17 EDT ---

Probably the reason I couldn't reproduce it with Workstation before is that I was initially creating the guest with 1 VCPU, which would mitigate some races.  Live, learn.

Comment 1 Adam Jackson 2010-06-29 18:20:56 UTC
Cloned for the anaconda change.

Comment 3 RHEL Program Management 2010-06-29 18:43:08 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
inclusion.

Comment 6 Alexander Todorov 2010-07-05 09:36:19 UTC
With anaconda-13.21.56-1 I can confirm that X is running with the -noreset option as specified in the patch in comment #4. Moving to VERIFIED.

Comment 7 releng-rhel@redhat.com 2010-11-10 19:50:10 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.