Page 1 of 1

Guest Additions under Debian squeeze/sid not working.

Posted: 11. Feb 2010, 18:41
by anicka47
I'm running VirtualBox 3.1.4beta on Windows 7, my guest OS is Debian squeeze/sid, with 2.6.26-2-amd64 kernel. I did everything they suggest here: http://forums.virtualbox.org/viewtopic.php?f=3&t=15679 and more (installing ksmg, or whatsitsname and other packages), my KERN_DIR is set...but nothing seems to work. The kernel module cannot be created and I always get the error message:
Makefile:147: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
.

Any ideas?

Re: Guest Additions under Debian squeeze/sid not working.

Posted: 11. Feb 2010, 18:58
by Perryg
All I ever need to do in Debian is open a terminal and enter SU then my password.
Then run this command

Code: Select all

apt-get install build-essential 
apt-get install linux-headers-generic
If the linux headers do not match then I run the following command:

Code: Select all

apt-get install linux-headers-$(uname-r)
Which will match the headers with the kernel

Re: Guest Additions under Debian squeeze/sid not working.

Posted: 15. Feb 2010, 15:01
by anicka47
Okay, turns out problem was on my side, my aptitude was completely corrupted.


So now I'm running the Debian testing version, with 2.6.32 kernel. I managed to install the guest additions version 3.1.4beta2 (the session info displays them as "activated"), but

1. the seamless mouse does not work
2. whenever I switch to host and back, mouse wheel (scroll) stops working. I have to switch the guest off (saving the configuration) and back and it works again.

Anyone having similar problems?


Update: As for shared folders, I can only mount them read-only for normal users. Even when the mount point has read/write rights, the mounted folder does not inherit the rights (see attachment for an example)

Re: Guest Additions under Debian squeeze/sid not working.

Posted: 15. Feb 2010, 16:47
by Perryg
There seems to be a slight bug with the mouse in certain versions of Linux. Specifically the newer kernels where they are deprecating hal.
For now (as a temporary fix) create /etc/X11/xorg.conf and add the following.

Code: Select all

Section "InputDevice"
        Identifier  "VBoxMouse"
        Driver      "vboxmouse"
        Option      "CorePointer"
EndSection

Re: Guest Additions under Debian squeeze/sid not working.

Posted: 15. Feb 2010, 17:07
by anicka47
Thanks for the advice, but it doesn't seem to have any effect.

I already had xorg.conf, because I needed to adjust the resolution. Currently, I have the following mice in my xorg.conf:

Code: Select all

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
#       Option      "Protocol" "auto"
        Option      "Protocol" "ImPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
        Identifier  "VBoxMouse"
        Driver      "vboxmouse"
        Option      "CorePointer"
EndSection

Re: Guest Additions under Debian squeeze/sid not working.

Posted: 15. Feb 2010, 17:21
by Perryg
So you don't have the guest additions installed?
My Debian squeeze did not have an xorg.conf because they are not using it any longer.
I was however able to change my resolution to any size I wanted (after I installed the guest additions) with the mouse of the host+F toggle for full screen.
Defined Mode sizes in the xorg.conf will prevent the auto resize from happening.
Also now you have (2) mouse entries and that is not going to work either. Comment out the top part and try it with the section I sent and see if it will work. You will need to log out and back in for this to take effect.

Re: Guest Additions under Debian squeeze/sid not working.

Posted: 15. Feb 2010, 17:48
by anicka47
I really do have the guest additions installed...the automatic adjustment did not work, for example in the fullscreen mode, I had a large grey screen with my desktop inside.

Now I deleted everything from xorg.conf, except for the Mouse entry and the seamless mouse works, yay. Thank you.

The adjustment now works for full screen, but not smaller window sizes (which is okay with me).

Mouse wheel problem is still there.

Re: Guest Additions under Debian squeeze/sid not working.

Posted: 15. Feb 2010, 17:56
by anicka47
I really do have the guest additions installed...the automatic adjustment did not work, for example in the fullscreen mode, I had a large grey screen with my desktop inside.

Now I deleted everything from xorg.conf, except for the Mouse entry and the seamless mouse works, yay. Thank you.

The adjustment now works for full screen, but not smaller window sizes (which is okay with me).

Mouse wheel problem is still there.

Re: Guest Additions under Debian squeeze/sid not working.

Posted: 7. Apr 2010, 01:51
by m_gol
I share the same problem. A month ago everything worked, now I cannot install GA 3.1.6 in my Debian testing (currently squeeze), I get the following:

Code: Select all

Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again..  Stop.
I set KERN_DIR to /usr/src/linux-headers-2.6.32-3-amd64 and /usr/src/linux-headers-2.6.32-3-common, nothing helped. Maybe I cannot install the linux-headers package correctly? This is what happens:

Code: Select all

$ sudo apt-get install linux-headers-`uname -r`
(...)
E: Couldn't find package linux-headers-2.6.32-trunk-amd64
What can I do?

Re: Guest Additions under Debian squeeze/sid not working.

Posted: 12. Apr 2010, 17:05
by fixedwheel
m_gol wrote: E: Couldn't find package linux-headers-2.6.32-trunk-amd64[/code]
What can I do?
this 2.6.32-trunk- one has been replaced by IIRC 2.6.32-3- in the repository: update your kernel

Re: Guest Additions under Debian squeeze/sid not working.

Posted: 13. Apr 2010, 02:16
by m_gol
Thx... The most obvious explanation is sometimes the most difficult to find...