Install Linux Guest Additions - Distros Linux
Install Linux Guest Additions - Distros Linux
virtualbox.org View topic - HOWTO: Install Linux Guest Additions + Xorg config
virtualbox.org
End user forums for VirtualBox
Search Search
Advanced search Board index General Howtos and Tutorials Linux Guests Change font size Print view FAQ Login
1 post Page 1 of 1
System preparations
After you have installed your Linux Guest system, there are a few additional packages needed for the Guest Additions. These packages enables you to create kernel modules. For Debian and Debian based distro's like
https://forums.virtualbox.org/viewtopic.php?t=15679# 1/6
7/4/2014
virtualbox.org View topic - HOWTO: Install Linux Guest Additions + Xorg config
Ubuntu, you need the following packages: dkms build-essential linux-headers-generic (Ubuntu) linux-headers-{amd64 OR 686-pae OR 486} (Debian) Code: Select all Expand viewCollapse view
a p t g e ti n s t a l ld k m sb u i l d e s s e n t i a ll i n u x h e a d e r s g e n e r i c
Check the version you need with uname -r. Mandriva users run the following: Code: Select all Expand viewCollapse view
u r p m id k m sg c cm a k el i b g o m p 1g l i b c d e v e lk e r n e l d e v e lk e r n e l h e a d e r s
Fedora users need the following packages: dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel OR kernel-pae-devel Code: Select all Expand viewCollapse view
y u mi n s t a l ld k m sb i n u t i l sg c cm a k ep a t c hl i b g o m pg l i b c h e a d e r sg l i b c d e v e l k e r n e l h e a d e r sk e r n e l d e v e l
SuSE users need the kernel-source and kernel-syms. You have to make sure that the kernel-headers and/or kernel-source are of the same version as your running kernel. It's best to do a full system update and reboot before trying to install the Guest Additions. Additionally, installing DKMS before the GA is also recommended so you don't need to manually install the GA again after a kernel update. Note: Not all distributions have DKMS in their repo. Either continue without, or install them manually from source. Note: If you run a different kernel flavour, you need to install the packages corresponding to that
https://forums.virtualbox.org/viewtopic.php?t=15679# 2/6
7/4/2014
virtualbox.org View topic - HOWTO: Install Linux Guest Additions + Xorg config
flavour. You can always find out which kernel you are running by issuing uname -r.
Select "Install Guest Additions..." from the menu Install-GA1.png (23.02 KiB) Viewed 717570 times Make sure that no other CD is already loaded for the VM, like the install disk. Unmount that one first. The CD doesn't always get mounted automatically, so you have to do that manually. Usually an icon appears on the Desktop with the name of the inserted CD. You can mount the disc from there, but if you don't have a GUI, you have to mount it using the command line. The CLI can also be used if you have a GUI. Use a terminal emulator for that. In the CLI, check if there is a valid mount point for the CD. This is usually /media/cdrom, but any empty folder can be used as mount point. Now to mount the CD, issue the following command: Code: Select all Expand viewCollapse view
m o u n t/ d e v / s r 0/ m e d i a / c d r o m
Install the GA
So, the CD is mounted. It should come up with a message about content that can be run from the CD on newer releases of the distro you use. This is usually a Desktop Manger or file manager setting, so not all Desktop Managers have this. Gnome, KDE and Xfce should have it, but I'm not sure if it's enabled by default. Accepting the autorun should install the GA now. If there is no autorun message, or you don't trust it or want to do it manually, follow the steps below. Go to the folder with a terminal (this can be easily done from a graphical file browser (like Nautilus (Gnome), Thunar (Xfce) or Dolphin (KDE)) by right-clicking on the folder and select "Open Terminal here ", or use
https://forums.virtualbox.org/viewtopic.php?t=15679# 3/6
7/4/2014
virtualbox.org View topic - HOWTO: Install Linux Guest Additions + Xorg config
cd /path/to/cdrom). In that folder, check it's contents with the ls command, so you are certain you are at the right place and you know the file names. Depending on the architecture you run for the Guest (32 bit or 64 bit), you run one of the two commands: Code: Select all Expand viewCollapse view
s h. / V B o x L i n u x A d d i t i o n s x 8 6 . r u n
Since 4.0, the Guest Additions are merged into one, architecture independent package, so it will be as follows: Code: Select all Expand viewCollapse view
s h. / V B o x L i n u x A d d i t i o n s . r u n
The Additions should install without issues. If there is an error, it usually states what's wrong. Check /var/log/vbox-install.log for more information. It's usually a version mismatch of the kernel headers or source. If you don't run Xserver, you will get a message about it that looks like this: No Xserver found, skipping This means that because you don't have X installed, the mouse and video modules won't be created and shared clipboard will not be available. If you install X later, you have to run the GA installer again. There are some parameter options available for the GA installer. Run the installer with the parameter --help for a list of available parameters. See the manual too for some information about that.
7/4/2014
virtualbox.org View topic - HOWTO: Install Linux Guest Additions + Xorg config
S e c t i o n" D e v i c e " I d e n t i f i e r D r i v e r E n d S e c t i o n S e c t i o n" M o n i t o r " I d e n t i f i e r E n d S e c t i o n S e c t i o n" S c r e e n " I d e n t i f i e r M o n i t o r D e v i c e E n d S e c t i o n S e c t i o n" I n p u t D e v i c e " I d e n t i f i e r " v b o x m o u s e " D r i v e r O p t i o n O p t i o n E n d S e c t i o n S e c t i o n" S e r v e r L a y o u t " I d e n t i f i e r S c r e e n I n p u t D e v i c e E n d S e c t i o n " D e f a u l tL a y o u t " " D e f a u l tS c r e e n " " v b o x m o u s e " 00 " v b o x m o u s e " " C o r e P o i n t e r " " D e v i c e " " / d e v / i n p u t / m i c e " " D e f a u l tS c r e e n " " C o n f i g u r e dM o n i t o r " " C o n f i g u r e dV i d e oD e v i c e " " C o n f i g u r e dM o n i t o r " " C o n f i g u r e dV i d e oD e v i c e " " v b o x v i d e o "
As you see, there is no resolution provided to be used. Some distributions won't allow this and will prevent GDM/KDM to start. If you need a resolution, you have to add it to the screen section as a subsection. Please see the manpages for xorg.conf for an example, or your current xorg.conf configuration. Adding a resolution to the xorg.conf file will disable the dynamic resolution change function of the Guest Additions. This check was added in VB 2.1.4. If you use an older version of the GA, you will have the dynamic resolution despite the resolution noted in the xorg.conf file. In case you DO need to specify a resolution (like Fedora 12), add something like this. Code: Select all Expand viewCollapse view
S e c t i o n" S c r e e n " I d e n t i f i e r M o n i t o r D e v i c e S u b S e c t i o n D e p t h M o d e s E n d S u b S e c t i o n E n d S e c t i o n
https://forums.virtualbox.org/viewtopic.php?t=15679# 5/6
" D e f a u l tS c r e e n " " C o n f i g u r e dM o n i t o r " " C o n f i g u r e dV i d e oD e v i c e " 2 4 " D i s p l a y " 2 4 " 1 2 8 0 x 1 0 2 4 "
D e f a u l t D e p t h
7/4/2014
virtualbox.org View topic - HOWTO: Install Linux Guest Additions + Xorg config
Note, more recent versions of Xserver might not need this kind of configuration and everything is done automatically. The developers (from Xserver-Xorg) are planning to stop using xorg.conf for configuration and let HAL take over. A part of that is already working, but only with the open source drivers shipped with your xserver-xorg version. The VB video driver is not a default driver, just like the fglrx for ATi cards and nVidiaglx for nVidia cards. An explicit configuration to use the non-standard driver is needed for these kinds of drivers. Sasquatch Volunteer Posts: 17800 Joined: 17. Mar 2008, 13:41 Location: /dev/random Primary OS: Debian other VBox Version: PUEL Guest OSses: Windows XP, Windows 7, Linux Top Post a reply 1 post Page 1 of 1 Return to Linux Guests Jump to:
Linux Guests Go
Who is online
Users browsing this forum: No registered users and 1 guest Board index The team Delete all board cookies All times are UTC + 1 hour [ DST ] Get VirtualBox Forum powered by phpBB phpBB Group By any use of this Website, you agree to be bound by these Sponsored by
https://forums.virtualbox.org/viewtopic.php?t=15679#
6/6