VirtualBox

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#6198 closed defect (fixed)

Guest Fedora 12 hangs during login in graphic mode => Fixed in SVN

Reported by: Lucas Owned by:
Component: other Version: VirtualBox 3.1.4
Keywords: Cc:
Guest type: Linux Host type: Linux

Description

Guest hangs during login step in Gnome desktop. The host run under last update Fedora 8 on a PC.

VirtualBox version is 3.1.4. Fedora 12 guest is up to date. I can use it in terminal mode. The latest Linux VirtualBox additions are installed.

Best regards.

Attachments (2)

Fedora-12-2010-02-14-15-30-16.log (65.1 KB ) - added by Lucas 14 years ago.
xorg.conf (925 bytes ) - added by Lucas 14 years ago.
Xorg.conf

Download all attachments as: .zip

Change History (23)

comment:1 by Frank Mehnert, 14 years ago

Do you know if this is a regression, that is, did you test the same guest with an older release of VirtualBox on the same host?

comment:2 by Lucas, 14 years ago

I don't know if it is a regression because i have done migration from F11 -> F12 and VB from 3.0 to 3.1.4 a the same time.

But in that configuration, i have a very curious ugly experiment :

Last sunday, i have done those things in that order :

-a) Start the host (FC8 intel Core duo 1)
-b) Start a user account under Gnome.
-c) Start VirtualBox 3.1.4
-d) Start guest F12 + LinuxAdditions.
-e) Log root in console mode (Ctrl + F2), not under Gnome.
-f) Update F12 with yum, in particular xorg.
-g) logout
-h) Log under Gnome in graphic mode.
-i) IT WORKS FINE.
-j) doing some little works.
-k) Shutdown F12 correctly
-l) Start again F12
-m) Try to log in graphic mode under Gnome.
-n) IT HANGS ???
-o) Force a shutdown (=> Guest status : aborted)
-p) Start again F12
-q) Log in console mode (Ctrl + F2)
-r) Logout
-s) Try to log in graphic mode under Gnome.
-t) IT HANGS ???? !!!!

So i am a little bit disappointed.

Hope that help you.

Regards

comment:3 by Michael Thayer, 14 years ago

Could you try removing the Guest Additions ("VBoxLinuxAdditions-x86.run uninstall") to see if that makes a difference?

in reply to:  3 comment:4 by Lucas, 14 years ago

Replying to michael:

Could you try removing the Guest Additions ("VBoxLinuxAdditions-x86.run uninstall") to see if that makes a difference?

After uninstalling the Guest Additions with the uninstall.sh script in /opt and restoring the original (vesa) xorg.conf file and restarting the F12 guest, I have the same hang.

comment:5 by Frank Mehnert, 14 years ago

Summary: Guest Fedora 12 hangs during login in graphic mode on PC with Fedora 8.Guest Fedora 12 hangs during login in graphic mode => Fixed in SVN

Confirmed. The fix can be found in r27248. You can manually apply this fix after you installed the guest additions (but before you rebooted the guest!) by changing /usr/src/vboxvideo-3.1.4/vboxvideo_drm.c in your guest and then re-compile the kernel modules with

/etc/init.d/vboxadd setup

. This fix will be included in the next maintenance release.

comment:6 by Frank Mehnert, 14 years ago

Applies to Ubuntu/Lucid as well.

in reply to:  5 comment:7 by Lucas, 14 years ago

Replying to frank:

Confirmed. The fix can be found in r27248. You can manually apply this fix after you installed the guest additions (but before you rebooted the guest!) by changing /usr/src/vboxvideo-3.1.4/vboxvideo_drm.c in your guest and then re-compile the kernel modules with

/etc/init.d/vboxadd setup

. This fix will be included in the next maintenance release.

Well, I have tried your patch, exactly as you explain to me, and it does not changes anything. I have the same error with the same code. On the guest F12, I am using the 2.6.31.12-174.2.22.fc12.i686 kernel and your patch is for version >= 2.6.33.

comment:8 by Frank Mehnert, 14 years ago

Look at the patch, it applies to the Fedora 12 kernels as well as DRM_UNLOCKED is defined. I guess you did something wrong. Are you sure that you recompiled and re-loaded the guest kernel module?

in reply to:  8 comment:9 by Lucas, 14 years ago

Replying to frank:

Look at the patch, it applies to the Fedora 12 kernels as well as DRM_UNLOCKED is defined. I guess you did something wrong. Are you sure that you recompiled and re-loaded the guest kernel module?

I have done the things exactly as you wrote it two days ago, and it doesn't work.

The command : "find /usr/include -name '*' -exec grep -l DRM_UNLOCKED {} \;" doesn't print any line, so the define DRM_UNLOCKED doesn't exist in this directory. So the test in vbox fails. For me the question is : where DRM_UNLOCKED is defined ?

I find only the macro DRM_LOCK in /usr/include/xf86drm.h. Obviously, compilation of the additions succeeds.

comment:10 by Frank Mehnert, 14 years ago

You can find DRM_UNLOCKED in include/drm/drmP.h in the linux kernel sources.

in reply to:  10 comment:11 by Lucas, 14 years ago

Replying to frank:

You can find DRM_UNLOCKED in include/drm/drmP.h in the linux kernel sources.

Finding command : "find /usr/src/kernels/2.6.31.12-174.2.22.fc12.i686 -name '*' -exec grep -l DRM_UNLOCKED {} \;" gives nothing !!!

comment:12 by Frank Mehnert, 14 years ago

That's correct but the latest Fedora 12 kernel is 2.6.32. To be specific: 2.6.32.9-70.fc12.i686

in reply to:  12 ; comment:13 by Lucas, 14 years ago

Replying to frank:

That's correct but the latest Fedora 12 kernel is 2.6.32. To be specific: 2.6.32.9-70.fc12.i686

So we must assume that : -1) VirtualBox 3.1.4 + LinuxAddition doesn't work on F12 with kernel version < 2.6.32 -2) Consequently i must upgrade the kernel.

Is that right ?

in reply to:  13 comment:14 by Lucas, 14 years ago

Replying to philo:

Replying to frank:

That's correct but the latest Fedora 12 kernel is 2.6.32. To be specific: 2.6.32.9-70.fc12.i686

So we must assume that : -1) VirtualBox 3.1.4 + LinuxAddition doesn't work on F12 with kernel version < 2.6.32 -2) Consequently i must upgrade the kernel.

Is that right ?

Well i have tried with the latest kernel 2.6.32.9-70.fc12.i686 and it hang again with the same error. Those time i have found the define DRM_UNLOCKED in the h file. I have proceeded in this order :

  1. Upgrade the kernel.
  2. Uninstall LinuxAdditions.
  3. Reboot the guest. Use the terminal F2.
  4. Install LinuxAdditions.
  5. Apply the patch.
  6. Compile the modules with /etc/init.d/vboxadd setup.
  7. Shutdown the guest.
  8. Restart the guest.
  9. Try to log in graphic mode.
  10. Hang.

comment:15 by Frank Mehnert, 14 years ago

Hmm, in that case I cannot reproduce your problem. There was definitely a problem with Linux 2.6.32 / Fedora kernels but your problem seem to be different. Can you describe the hang in more detail, that is, does 'only' the guest hang or is even the guest VM window frozen? Can you shutdown the VM using the shutdown dialog or do you have to kill the VM process?

Can you try if disabling the clipboard helps (use the VM settings please)?

by Lucas, 14 years ago

Attachment: xorg.conf added

Xorg.conf

in reply to:  15 comment:16 by Lucas, 14 years ago

Replying to frank:

Hmm, in that case I cannot reproduce your problem. There was definitely a problem with Linux 2.6.32 / Fedora kernels but your problem seem to be different. Can you describe the hang in more detail, that is, does 'only' the guest hang or is even the guest VM window frozen? Can you shutdown the VM using the shutdown dialog or do you have to kill the VM process?

Can you try if disabling the clipboard helps (use the VM settings please)?

-1) After the hang, on the server /opt/VirtualBox/VirtualBox process runs continuously (TIME column of ps). Ont the guest "Host + Q" doesn't terminate. I have to close the main guest F12 windows which close immediately after i press the terminate button of the dialogBox.

-2) After disabling the clipboard, i have the same symptom.

-3) Other thins on guest f12 :

-a) No error with dmesg. -b) No error in VirtualBox log (/var/log) -c) No error in the Xorg.log. -d) Note that i set a xorg.conf file for screen resolution (See the Xorg.conf above as attachment file).

Anyway, if it doesn't work on my laptop with guest F12 on Host F8, i shall try in a few weeks with F13 beta as guest.

comment:17 by Len, 14 years ago

I've got the same problem with a system that was working.

Host is FC12, Guest is FC12. After clean install on a guest of FC12, all upgrades completed, FC12 guest works fine without the GuestAdditions. After installing the GuestAdditions the Guest reboots and has an X11 problem, appearing to hang.

I can load the FC12 CD and boot to a rescue shell, edit inittab for init 3 and I get the system back but so far I have been unable to recover X once GuestAdditions has been run.

The procedures I am using worked before the most recent kernel upgrades, so something broke recently. I've got 3 guests and they are all exhibiting the exact same problem (all FC12 guests running on a FC12 host).

I thought I had broken my FC12 guest when I ran the GuestAdditions after a kernel upgrade so I did a complete clean reinstall and got to the same problem a few hours later after the upgrades.

/Len

in reply to:  5 comment:18 by Jorgen, 14 years ago

Replying to frank:

Confirmed. The fix can be found in r27248. You can manually apply this fix after you installed the guest additions (but before you rebooted the guest!) by changing /usr/src/vboxvideo-3.1.4/vboxvideo_drm.c in your guest and then re-compile the kernel modules with

/etc/init.d/vboxadd setup

. This fix will be included in the next maintenance release.

I had the exact same problem with a black screen after updating the kernel to 2.6.32.9-70 and the guest additions to 3.1.4. Your instructions on how to change vboxvideo_drm.c did the trick for me on the first attempt. Thanks.

comment:19 by Michael Thayer, 14 years ago

Ticket #6404 has been marked a duplicate of this one.

in reply to:  5 comment:20 by Mike B, 14 years ago

I can reconfirm this problem with the latest Fedora 12 kernel + updates and I can confirm the fix listed in comment 5. Thanks!

Replying to frank:

Confirmed. The fix can be found in r27248. You can manually apply this fix after you installed the guest additions (but before you rebooted the guest!) by changing /usr/src/vboxvideo-3.1.4/vboxvideo_drm.c in your guest and then re-compile the kernel modules with

/etc/init.d/vboxadd setup

. This fix will be included in the next maintenance release.

comment:21 by Frank Mehnert, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in 3.1.6. philo, if your problem still exists please open another ticket.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use