Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] X freezes triggered by virtualbox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
bifi.ftw
n00b
n00b


Joined: 05 Nov 2015
Posts: 24

PostPosted: Fri Jun 01, 2018 1:23 pm    Post subject: [Solved] X freezes triggered by virtualbox Reply with quote

Greetings,

I'm currently running into strange freezes which are probably X-related. These freezes started to occur after a system update which included virtualbox and the kernel.

Sometimes when logging in with slim to herbstluftwm I get stuck, however the mouse can still be moved around. This happens only around 1 out of 20 times or even less.
X can be unfrozen by switching to tty1 and back.

When using virtualbox (windows7) after some time everything freezes, but the mouse can still be moved. When a monitor is attached to my laptop I can switch to tty1 to unfreeze, if no monitor is attached this doesn't work.
During the freeze guest and host system are frozen, any actions performed occur after the system has been unfrozen by switching to tty, it's catching up.

My biggest problem is that no events are logged in Xorg-logfiles and the other logs also don't look suspicious to me.

I provoke the freeze by drawing rectangles on the windows desktop with the mouse.
Freeze occured shortly before 15:17:16, all logs are aquired within 1 min after the freeze.

dmesg:
https://paste.pound-python.org/show/jBphpBkEkyqMryiHBDxz/

Xorg.0.log:
https://paste.pound-python.org/show/sZ0yrZXEkyEzfXGOMi1D/

VBox.log:
https://paste.pound-python.org/show/ygJZPp6Jiots9jqtcjft/

VBoxSBV.log:
https://paste.pound-python.org/show/PhfFuUKqJIwfcKgmPkV5/

ls -la /dev | grep vbox
Code:
crw-------   1 root root       10,  57 Jun  1 11:49 vboxdrv
crw-------   1 root root       10,  56 Jun  1 11:49 vboxdrvu
crw-------   1 root root       10,  55 Jun  1 11:49 vboxnetctl
drwxr-x---   4 root vboxusers       80 Jun  1 12:02 vboxusb



I have tried the following things so far without any effect:
- Use genkernel to find out if the error is caused by my custom kernel
- Solve error in VBoxSVC.log (Failed to open "/dev/vboxdrvu", errno=13, rc=VERR_VM_DRIVER_NOT_ACCESSIBLE) by manually changing chown and chmod of /dev/vboxdrv vboxdrvu and vboxnetctl. The error disappears but freezes still occur


I'm still trying to find an error from where I can start working on the problem.
Any help or ideas are highly appreciated since I need the virtualbox for work.

Thank you for your time.


Last edited by bifi.ftw on Sun Jun 17, 2018 7:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
gorg86
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2011
Posts: 103

PostPosted: Sat Jun 02, 2018 3:18 pm    Post subject: Reply with quote

During the "freeze" when you move the mouse outside the VM window and the cursor still has the same sprite of the guest OS, then X didn't freeze.
That is some weird bug that happens when you updated virtualbox and virtualbox-modules but you did not update the virtualbox-guest-additiions in the guest OS.

When that happens you can still control the guest OS with the keyboard only, if you shut it down, X goes back to normal.
Start your guest OS and immediately go to devices->"Inset Guest Additions CD Image..." and update the drivers.
edit:
Make sure you updated app-emulation/virtualbox-additions on the host before doing that. Check matching version numbers also.
Back to top
View user's profile Send private message
bifi.ftw
n00b
n00b


Joined: 05 Nov 2015
Posts: 24

PostPosted: Sat Jun 02, 2018 5:55 pm    Post subject: Reply with quote

Thank you for your reply gorg86.

In fact the cursor does not change when moving it to the host OS, however, the guest OS can not be controlled via keyboard.
I reinstalled virtualbox guest additions on the guest OS, however, freezes still occur.

equert list virtualbox*:
Code:
 * Searching for virtualbox* ...
[IP-] [  ] app-emulation/virtualbox-5.1.36:0
[IP-] [  ] app-emulation/virtualbox-additions-5.1.36-r1:0
[IP-] [  ] app-emulation/virtualbox-modules-5.1.36:0


I guess the additional -r1 at additions doesn't matter, so I have all matching versions.

Any additional ideas?
Back to top
View user's profile Send private message
gorg86
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2011
Posts: 103

PostPosted: Sat Jun 02, 2018 6:08 pm    Post subject: Reply with quote

Does this happen with Windows 7 too? (After updating the drivers with the virtual CD)
Back to top
View user's profile Send private message
bifi.ftw
n00b
n00b


Joined: 05 Nov 2015
Posts: 24

PostPosted: Sat Jun 02, 2018 6:16 pm    Post subject: Reply with quote

I'm not sure what you mean but I think I should have been more explicit:
The host OS also is unresponsive to mouseclicks and button presses, maybe because I can't exit the virtualbox and they consequently don't reach the host OS.
Does this answer your question?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6346
Location: Saint Amant, Acadiana

PostPosted: Sat Jun 02, 2018 6:33 pm    Post subject: Reply with quote

I have to say I've seen this issue for long time now. I have Mint in VM, do not use it often, never cared much. However, you better open a bug with VirtualBox. Maybe it is Gentoo-related. Still, they should figure it out.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
bifi.ftw
n00b
n00b


Joined: 05 Nov 2015
Posts: 24

PostPosted: Sun Jun 17, 2018 7:06 pm    Post subject: Reply with quote

A defective hard drive caused the freezes, which is also why no error messages were printed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum