From bee538ffaa680aa6c251ce6dc784d1fa1df9273e Mon Sep 17 00:00:00 2001 From: Justin Watt Date: Thu, 20 Mar 2014 13:45:36 -0700 Subject: [PATCH 1/3] dkms is required to build guest additions see: http://askubuntu.com/questions/98416/error-kernel-headers-not-found-but-they-are-in-place --- website/docs/source/v2/virtualbox/boxes.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/source/v2/virtualbox/boxes.html.md b/website/docs/source/v2/virtualbox/boxes.html.md index c2d799787..5e79d52e0 100644 --- a/website/docs/source/v2/virtualbox/boxes.html.md +++ b/website/docs/source/v2/virtualbox/boxes.html.md @@ -46,7 +46,7 @@ and the basic developer tools. On Ubuntu, you can easily install these like so: ``` -$ sudo apt-get install linux-headers-$(uname -r) build-essential +$ sudo apt-get install linux-headers-generic build-essential dkms ``` Next, make sure that the guest additions image is available by using the From 495098e920fb02d9dea04f4bd3d0f886281d4e3d Mon Sep 17 00:00:00 2001 From: Justin Watt Date: Thu, 20 Mar 2014 14:01:03 -0700 Subject: [PATCH 2/3] Add instructions for installing guest additions via the command line --- .../docs/source/v2/virtualbox/boxes.html.md | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/website/docs/source/v2/virtualbox/boxes.html.md b/website/docs/source/v2/virtualbox/boxes.html.md index 5e79d52e0..5248de598 100644 --- a/website/docs/source/v2/virtualbox/boxes.html.md +++ b/website/docs/source/v2/virtualbox/boxes.html.md @@ -49,6 +49,8 @@ so: $ sudo apt-get install linux-headers-generic build-essential dkms ``` +#### To install via the GUI: + Next, make sure that the guest additions image is available by using the GUI and clicking on "Devices" followed by "Install Guest Additions". Then mount the CD-ROM to some location. On Ubuntu, this usually looks like @@ -65,12 +67,31 @@ guest additions. For example, for Linux on x86, it is the following: $ sudo sh /media/cdrom/VBoxLinuxAdditions.run ``` +If the commands succeeds, then the guest additions are now installed! + +#### To install via the command line: + +You can find the appropriate guest additions version to match your VirtualBox +version by selecting the appropriate version +[here](http://download.virtualbox.org/virtualbox/). The examples below use +4.3.8, which was the latest VirtualBox version at the time of writing. + +``` +wget http://download.virtualbox.org/virtualbox/4.3.8/VBoxGuestAdditions_4.3.8.iso +sudo mkdir /media/VBoxGuestAdditions +sudo mount -o loop,ro VBoxGuestAdditions_4.3.8.iso /media/VBoxGuestAdditions +sudo sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run +rm VBoxGuestAdditions_4.3.8.iso +sudo umount /media/VBoxGuestAdditions +sudo rmdir /media/VBoxGuestAdditions +``` + If you didn’t install a Desktop environment when you installed the operating system, as recommended to reduce size, the install of the VirtualBox additions should warn you about the lack of OpenGL or Window System Drivers, but you can safely ignore this. -If the command succeeds, then the guest additions are now installed! +If the commands succeed, then the guest additions are now installed! ## Packaging the Box From d1f37b2078ec21d3ad6eebe32df59a75bd733707 Mon Sep 17 00:00:00 2001 From: Justin Watt Date: Thu, 20 Mar 2014 14:08:03 -0700 Subject: [PATCH 3/3] Fix grammatical error --- website/docs/source/v2/virtualbox/boxes.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/source/v2/virtualbox/boxes.html.md b/website/docs/source/v2/virtualbox/boxes.html.md index 5248de598..2d59a6495 100644 --- a/website/docs/source/v2/virtualbox/boxes.html.md +++ b/website/docs/source/v2/virtualbox/boxes.html.md @@ -67,7 +67,7 @@ guest additions. For example, for Linux on x86, it is the following: $ sudo sh /media/cdrom/VBoxLinuxAdditions.run ``` -If the commands succeeds, then the guest additions are now installed! +If the command succeeds, then the guest additions are now installed! #### To install via the command line: