Kubuntu 7.04 - KDE doesn't start with guest additions

Discussions about using Linux guests in VirtualBox.

Kubuntu 7.04 - KDE doesn't start with guest additions

Postby vrabcak » 12. Jun 2007, 07:21

I installed Kubuntu 7.04 guest into virtual box. Everything went fine, but after installing guest additions, I cannot start KDE anymore. After login, X restarts immediately and the login screen is shown again. Tested on both windows XP and OpenSuse 10.2 hosts with the same result.
vrabcak
 
Posts: 4
Joined: 12. Jun 2007, 06:49

Postby bodhi.zazen » 12. Jun 2007, 07:34

I do not know if this will hep you not, but I had to add the following lines to /etc/X11/xorg.conf:

Section "ServerFlags"
Option "Xinerama" "true"
EndSection


Then re-start x (KDE)
If is a virtual machine, is it still broken ?
bodhi.zazen
Volunteer
 
Posts: 180
Joined: 17. May 2007, 16:02

Postby vrabcak » 12. Jun 2007, 10:47

It didn't help.
Error output from X start:
Code: Select all   Expand viewCollapse view
xauth:  creating new authority file /home/tichy/.serverauth.5287


X Window System Version 7.2.0
Release Date: 22 January 2007
X Protocol Version 11, Revision 0, Release 7.2
Build Operating System: Linux Ubuntu
Current Operating System: Linux tichy-laptop 2.6.20-16-generic #2 SMP Wed May 23 01:46:23 UTC 2007 i686
Build Date: 04 April 2007
   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Tue Jun 12 09:03:34 2007
(==) Using config file: "/etc/X11/xorg.conf"
(WW) VBoxVideo(0): Failed to set up write-combining range (0xe0000000,0x800000)
(EE) AIGLX: Screen 0 is not DRI capable
(EE) No Input driver matching `mouse'
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
(EE) xf86OpenSerial: Cannot open device /dev/input/wacom
   No such file or directory.
Error opening /dev/input/wacom : No such file or directory
(EE) xf86OpenSerial: Cannot open device /dev/input/wacom
   No such file or directory.
Error opening /dev/input/wacom : No such file or directory
(EE) xf86OpenSerial: Cannot open device /dev/input/wacom
   No such file or directory.
Error opening /dev/input/wacom : No such file or directory
Could not init font path element /usr/X11R6/lib/X11/fonts/misc, removing from list!
Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1, removing from list!
FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.

[/code]
vrabcak
 
Posts: 4
Joined: 12. Jun 2007, 06:49

Postby starcraft.man » 13. Jun 2007, 14:33

I'm getting this exact same issue. I installed Kubuntu clean and all I did was update everything, install build essential and install virtual box additions. Now after I boot up Kubuntu I can't log in any more, why is that? I mean it doesn't make sense since Kubuntu was working just fine without the additions... it just keeps resetting itself when I log in.

Anyone?
starcraft.man
 
Posts: 9
Joined: 6. Jun 2007, 19:12

Postby starcraft.man » 13. Jun 2007, 14:38

Oh and just an additional note. I was able to log in via failsafe session. Should I paste my xorg? Do the additions modify it and if so maybe we can compare and see what makes it not log in? If ya want it I'll paste it.
starcraft.man
 
Posts: 9
Joined: 6. Jun 2007, 19:12

Postby ManfredB » 13. Jun 2007, 15:22

Hello,

try XUbuntu, it does run!

Manfred
ManfredB
Volunteer
 
Posts: 166
Joined: 10. May 2007, 12:48

Postby starcraft.man » 13. Jun 2007, 15:47

ManfredB wrote:Hello,

try XUbuntu, it does run!

Manfred


LOL, well the point kinda was for me to learn the KDE interface since a lot of people use that. I was aiming to install xubuntu as an alternate session to it... maybe if I install Ubuntu first and get it working and then make KDE and Xfce sessions it will work better. I'm gonna try it, meanwhile is there any solution for this? Is it a graphical thing, can we turn off features in KDE to get it to run better in VM?
starcraft.man
 
Posts: 9
Joined: 6. Jun 2007, 19:12

Postby starcraft.man » 14. Jun 2007, 01:46

Seriously weird. I've found the solution. I installed Ubuntu and then installed the KDE packages, this is a bug I think I don't know why but when I just installed kubuntu straight and put in the additions it doesn't want to log in via the Kubuntu screen. When I log in as a session of Ubuntu it works flawlessly.
starcraft.man
 
Posts: 9
Joined: 6. Jun 2007, 19:12

Postby nuno » 14. Jun 2007, 05:54

Try this:

Add "xconsole &" right after the shebang line (#!/bin/sh) in /usr/bin/startkde
Reboot (really, reboot!)
Try to login.

I think one of the early programs, in startkde, is exiting after the update. Without x clients the X session closes. That xconsole will make sure that you have an active x client at least.

Regards,
Nuno Silva

P.S. Really reboot :-)
nuno
 
Posts: 40
Joined: 12. May 2007, 01:33

Postby vrabcak » 15. Jun 2007, 10:57

Adding xconsole didn't help, the problem is still the same.
I alsou tried to install ubuntu - everything went ok. Then I installed metapackage kubuntu-desktop and after logout and login KDE worked. But after reboot, the problem was back, i wasn't able to log in to KDE neither GNOME.
I have removed package kdm and everything was fine again with login from gdm. So I assume that guest additions break something in kdm.
vrabcak
 
Posts: 4
Joined: 12. Jun 2007, 06:49

Postby nuno » 15. Jun 2007, 16:12

vrabcak wrote:Adding xconsole didn't help, the problem is still the same.


You're right! But in my system, after reboot, I can login. If I logout the problem surfaces again.

vrabcak wrote:I alsou tried to install ubuntu - everything went ok. Then I installed metapackage kubuntu-desktop and after logout and login KDE worked. But after reboot, the problem was back, i wasn't able to log in to KDE neither GNOME.
I have removed package kdm and everything was fine again with login from gdm. So I assume that guest additions break something in kdm.


I traced this to:
/etc/X11/Xsession.d/98vboxadd-xclient

This file executes /usr/bin/vboxadd-xclient. This is related to the Shared Clipboard feature in 1.4.0. Anyway, even with Shared Clipboard disabled the symptoms are the same.

vboxadd-xclient tries to access /dev/vboxadd, which is 660 root:root, as the user logging in. This fails as expected.

Even if root chmod's 666 /dev/vboxadd, the vboxadd-xclient fails with the same message:

"""
We got an invalid client ID of 0!
Failed to connect to the host clipboard.
""

Doing "echo $?" returns:
1

I don't have a gnome setup handy to test, and I have no ideia why it works with GDM... Maybe one of the developers can take a look?

Kind regards,
Nuno

UPDATE:
The correct workaround for the logout-right-after-login in KDM (maybe others) is:

- to make clear that this file is not executable, it's sourced:
Code: Select all   Expand viewCollapse view
chmod 644 /etc/X11/Xsession.d/98vboxadd-xclient


- to prevent Xsession from exiting because of error exit code, replace the "/usr/bin/vboxadd-xclient" line with:
Code: Select all   Expand viewCollapse view
/usr/bin/vboxadd-xclient || true


vboxadd-xclient won't work (see errors above), but at least won't prevent the session from starting.

Peace,
Nuno
nuno
 
Posts: 40
Joined: 12. May 2007, 01:33

Postby w31rd0 » 25. Jun 2007, 00:40

bodhi.zazen wrote:add the following lines to /etc/X11/xorg.conf:
Section "ServerFlags"
Option "Xinerama" "true"
EndSection


nuno wrote:Add "xconsole &" right after the shebang line (#!/bin/sh) in /usr/bin/startkde

nuno wrote:- to make clear that this file is not executable, it's sourced:
Code: Select all   Expand viewCollapse view
chmod 644 /etc/X11/Xsession.d/98vboxadd-xclient

- to prevent Xsession from exiting because of error exit code, replace the "/usr/bin/vboxadd-xclient" line with:
Code: Select all   Expand viewCollapse view
/usr/bin/vboxadd-xclient || true



None of these really worked for me. Even after libstdc++5 installed (see this ticket: http://www.virtualbox.org/ticket/402). But simply removing /etc/X11/Xsession.d/98vboxadd-xclient solved the problem.
Host: Windows XP, guest: kubuntu 7.04.
w31rd0
 
Posts: 2
Joined: 25. Jun 2007, 00:30

Postby polarbear101 » 27. Jun 2007, 13:12

Hi *all
Sorry for to be sooooo stupid.
Have installed Kubuntu 7.04 as guest. Have WinXP as host.
After the installation of "additions" i can't login.
Before booting i was also unable to edit /etc/X11/Xsession.d/98vboxadd-xclient, got "disk full or not authorized"...

Can anybody explain step by step
- how to "bypass" the login screen from KDE
- how to edit /etc/X11/Xsession.d/98vboxadd-xclient from the command-line

Tnx

Greetings
Marc
polarbear101
 
Posts: 2
Joined: 27. Jun 2007, 11:21

Postby w31rd0 » 27. Jun 2007, 14:11

polarbear101 wrote:Can anybody explain step by step
- how to "bypass" the login screen from KDE
- how to edit /etc/X11/Xsession.d/98vboxadd-xclient from the command-line

1. Ctrl+Alt+F1 will switch you to text mode terminal #1, Alt+F7 - back to KDE.
2. sudo vim /etc/X11/Xsession.d/98vboxadd-xclient

NOTE#1: google for vim manual first, if you aren't familiar with vim

NOTE#2: in my case it worked only when I totally removed /etc/X11/Xsession.d/98vboxadd-xclient (see previous posts)
w31rd0
 
Posts: 2
Joined: 25. Jun 2007, 00:30

Postby polarbear101 » 28. Jun 2007, 14:44

Thank You for the tip.

Now i try to get a better resolution than 1024x768...
Can't believe that this is soooo dificult !
polarbear101
 
Posts: 2
Joined: 27. Jun 2007, 11:21

Next

Return to Linux Guests

Who is online

Users browsing this forum: Google [Bot] and 7 guests