VirtualBox

Opened 8 years ago

Closed 8 years ago

#15683 closed defect (fixed)

rhgb boot option crashes gdm with EFI -> fixed in releases higher than 5.1.6

Reported by: Freddy Willemsen Owned by:
Component: guest additions/x11/graphics Version: VirtualBox 5.1.2
Keywords: rhgb gdm Cc:
Guest type: Linux Host type: Linux

Description

Using Fedora 24 both as host and as guest (fully updated with testing repos), GDM (login screen) keeps crashing when using the rhgb boot option. Removing the rhgb option makes everything work as expected. Had this problem from the getgo with VB 5.1, 5.1.2 did not solve the issue. Happens with both 3D enabled as disabled. I am not using any form of xorg.conf file with custom settings.

Attachments (5)

journalloggdmcrash.log.zip (177.5 KB ) - added by Freddy Willemsen 8 years ago.
journal log
Xorg.0.log (8.4 KB ) - added by Freddy Willemsen 8 years ago.
xorg log
VBox.log.1 (145.9 KB ) - added by Freddy Willemsen 8 years ago.
Log file without iomem=relaxed
VBox.log (175.0 KB ) - added by Freddy Willemsen 8 years ago.
Log file with iomem=relaxed
Fedora.vbox (11.5 KB ) - added by Freddy Willemsen 8 years ago.
The XML file

Download all attachments as: .zip

Change History (26)

by Freddy Willemsen, 8 years ago

Attachment: journalloggdmcrash.log.zip added

journal log

by Freddy Willemsen, 8 years ago

Attachment: Xorg.0.log added

xorg log

comment:1 by Michael Thayer, 8 years ago

Could you please check to see whether this is still the case with the latest Additions test build? Thank you.

comment:2 by Freddy Willemsen, 8 years ago

tried with VBoxGuestAdditions_5.1.3-109087.iso but the issue remains. No GDM login screen with the rhgb boot option.

comment:3 by Michael Thayer, 8 years ago

How does one enable the testing repositories? And is it reasonable to assume that the problem is with VirtualBox and not something unstable in the repository?

comment:4 by Freddy Willemsen, 8 years ago

dnf --enablerepo=update-testing update

I do think the problem is VirtualBox as the problem arose the minute I upgraded to VirtualBox-5.1. No problem whatsoever with VB-5.0. That being said, a Fedora 23 guest does not display this problem. It looks like a combination of Fedora24 (guest) and VB-5.1. After some more digging, it appears that using iomem=relaxed combined with rhgb does work.

comment:5 by Michael Thayer, 8 years ago

No problem here. Before continuing, could you please check with Additions test build 109119 or later?

comment:6 by Michael Thayer, 8 years ago

Test build<1> revision 109126 and later of the Additions contains a fix for a problem which could cause random (timing-related) failures, particularly in early boot.

<1> https://www.virtualbox.org/wiki/Testbuilds

comment:7 by Freddy Willemsen, 8 years ago

same issue, I need to either add iomem=relaxed or remove rhgb from the boot options.

comment:8 by Michael Thayer, 8 years ago

Could you please upload a virtual machine log file and the machine XML?

by Freddy Willemsen, 8 years ago

Attachment: VBox.log.1 added

Log file without iomem=relaxed

by Freddy Willemsen, 8 years ago

Attachment: VBox.log added

Log file with iomem=relaxed

by Freddy Willemsen, 8 years ago

Attachment: Fedora.vbox added

The XML file

comment:9 by Michael Thayer, 8 years ago

Test build 109138 has another fix. Probably not it, but you never know.

in reply to:  9 comment:10 by Freddy Willemsen, 8 years ago

Replying to michael:

Test build 109138 has another fix. Probably not it, but you never know.

Nope, unfortunately not it. Still needs iomem=relaxed.

comment:12 by Michael Thayer, 8 years ago

I don't know anything about EFI by the way, so what do I need to do to make Fedora work with it? Just set it before installing the machine?

in reply to:  12 comment:13 by Freddy Willemsen, 8 years ago

Replying to michael:

I don't know anything about EFI by the way, so what do I need to do to make Fedora work with it? Just set it before installing the machine?

That would be (by far) the easiest way. I will try to do a fresh install while not using EFI.

in reply to:  11 comment:14 by Freddy Willemsen, 8 years ago

Replying to michael:

Try disabling EFI<1>.

<1> https://forums.virtualbox.org/viewtopic.php?f=3&t=78427&p=368135#p368130

Looks like EFI indeed has something to do with it. A fresh install not using EFI works out-of-the-box, no special boot parameters needed.

comment:15 by Michael Thayer, 8 years ago

Summary: rhgb boot option crashes gdmrhgb boot option crashes gdm with EFI

comment:16 by Michael Thayer, 8 years ago

Reproduced. Pressing escape during the splash screen also allowed me to boot. I think I can guess what the cause of this is: our graphics driver refuses to load if any of the Linux virtual consoles are in graphics mode (which to my understanding basically means that someone else has taken over the graphics card) to prevent fights with the VESA driver. Presumably the EFI splash screen also sets the graphics mode flag and unsets it if it is cancelled with escape. Now I just need to think about how to solve this.

comment:17 by Freddy Willemsen, 8 years ago

Thanks for not forgetting about this one. Very curious what can be done about it.

comment:18 by Michael Thayer, 8 years ago

Summary: rhgb boot option crashes gdm with EFIrhgb boot option crashes gdm with EFI -> fixed in releases higher than 5.1.6

I committed a fix for this. I removed the offending code (nearly the end of vbox_drv.c if you are interested) and just made sure (hopefully) that the driver does not get loaded when the X server is already running. Normally it should load long before that. When I get a chance to update the test builds, Additions build revision 110797 or later should contain the fix.

comment:19 by Frank Mehnert, 8 years ago

Please download the most recent 5.1.x Guest Additions from our test builds page and install it. It contains the fix. Feedback welcome!

in reply to:  19 comment:20 by Freddy Willemsen, 8 years ago

Replying to frank:

Please download the most recent 5.1.x Guest Additions from our test builds page and install it. It contains the fix. Feedback welcome!

Guest Additions test build 5.1.7-110797 does indeed seem to fix the issue, I can boot in rhgb mode without the iomem kernel parameter. Thanks for the fix!

comment:21 by Frank Mehnert, 8 years ago

Resolution: fixed
Status: newclosed

Fix is part of VBox 5.1.8.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use