@mitchellh here is the output you requested, getting the same error as above. Didn't install the package yet. versions:
Jan 28, 2019 - Description: The official VirtualBox Guest Additions ISO image. Upstream URL: License(s):, custom:PUEL. VirtualBox Guest Additions is a set of drivers and software which comes with VirtualBox to make using VirtualBox in connection with the host computer a little easier. There are a few features that you’ll get by installing Guest Additions. Virtualbox guest additions for Windows 10. Windows 10 is installed in a jiffy in virtualbox using a standard 8.1 vm configuration but I don't seem to be able to install the guest addons. It claims incompatibility.
ubuntu 14.04
VboxManage 4.3.10_Ubuntur93012
packer v0.6.1
VboxManage 4.3.10_Ubuntur93012
packer v0.6.1
(scripts)➜ packer git:(develop) ✗ VBoxManage list systemproperties
API version: 4_3
Minimum guest RAM size: 4 Megabytes
Maximum guest RAM size: 2097152 Megabytes
Minimum video RAM size: 1 Megabytes
Maximum video RAM size: 256 Megabytes
Maximum guest monitor count: 64
Minimum guest CPU count: 1
Maximum guest CPU count: 32
Virtual disk limit (info): 2199022206976 Bytes
Maximum Serial Port count: 2
Maximum Parallel Port count: 2
Maximum Boot Position: 4
Maximum PIIX3 Network Adapter count: 8
Maximum ICH9 Network Adapter count: 36
Maximum PIIX3 IDE Controllers: 1
Maximum ICH9 IDE Controllers: 1
Maximum IDE Port count: 2
Maximum Devices per IDE Port: 2
Maximum PIIX3 SATA Controllers: 1
Maximum ICH9 SATA Controllers: 8
Maximum SATA Port count: 30
Maximum Devices per SATA Port: 1
Maximum PIIX3 SCSI Controllers: 1
Maximum ICH9 SCSI Controllers: 8
Maximum SCSI Port count: 16
Maximum Devices per SCSI Port: 1
Maximum SAS PIIX3 Controllers: 1
Maximum SAS ICH9 Controllers: 8
Maximum SAS Port count: 8
Maximum Devices per SAS Port: 1
Maximum PIIX3 Floppy Controllers:1
Maximum ICH9 Floppy Controllers: 1
Maximum Floppy Port count: 1
Maximum Devices per Floppy Port: 2
Default machine folder: /home/alon/VirtualBox VMs
Exclusive HW virtualization use: on
Default hard disk format: VDI
VRDE auth library: VBoxAuth
Webservice auth. library: VBoxAuth
Remote desktop ExtPack: VNC
Log history count: 3
Default frontend:
Autostart database path:
Default Guest Additions ISO:
API version: 4_3
Minimum guest RAM size: 4 Megabytes
Maximum guest RAM size: 2097152 Megabytes
Minimum video RAM size: 1 Megabytes
Maximum video RAM size: 256 Megabytes
Maximum guest monitor count: 64
Minimum guest CPU count: 1
Maximum guest CPU count: 32
Virtual disk limit (info): 2199022206976 Bytes
Maximum Serial Port count: 2
Maximum Parallel Port count: 2
Maximum Boot Position: 4
Maximum PIIX3 Network Adapter count: 8
Maximum ICH9 Network Adapter count: 36
Maximum PIIX3 IDE Controllers: 1
Maximum ICH9 IDE Controllers: 1
Maximum IDE Port count: 2
Maximum Devices per IDE Port: 2
Maximum PIIX3 SATA Controllers: 1
Maximum ICH9 SATA Controllers: 8
Maximum SATA Port count: 30
Maximum Devices per SATA Port: 1
Maximum PIIX3 SCSI Controllers: 1
Maximum ICH9 SCSI Controllers: 8
Maximum SCSI Port count: 16
Maximum Devices per SCSI Port: 1
Maximum SAS PIIX3 Controllers: 1
Maximum SAS ICH9 Controllers: 8
Maximum SAS Port count: 8
Maximum Devices per SAS Port: 1
Maximum PIIX3 Floppy Controllers:1
Maximum ICH9 Floppy Controllers: 1
Maximum Floppy Port count: 1
Maximum Devices per Floppy Port: 2
Default machine folder: /home/alon/VirtualBox VMs
Exclusive HW virtualization use: on
Default hard disk format: VDI
VRDE auth library: VBoxAuth
Webservice auth. library: VBoxAuth
Remote desktop ExtPack: VNC
Log history count: 3
Default frontend:
Autostart database path:
Default Guest Additions ISO:
I have been struggling to install VirtualBox Guest Additions in a Debian Virtual Machine (Debian 7, Debian 8 and Debian 9).
ximbal
ximbalximbal
4 Answers
The TL;DR version for Debian 9 is, as root:
That’s it, the VirtualBox Guest Additions are installed.
In more detail, here's the solution for Debian 7, 8, and 9, using Debian packages:
- for Debian 7 and 8, enable the
contrib
repositories; e.g. for Debian 8, make sure your/etc/apt/sources.list
contains something like - for Debian 9, enable backports with
contrib
; to do so, add a line liketo/etc/apt/sources.list
(or better yet, astretch-backports.list
file in/etc/apt/sources.list.d
); - install
virtualbox-guest-dkms
, kernel headers, and, optionally,virtualbox-guest-x11
(for the graphical guest utilities):(with-t stretch-backports
afterinstall
in the second line if you’re using Debian 9).
That’s all that’s needed — you don’t need to mount the guest additions in your VM, or run the installer. You can add the three lines of shell invocations to your
Vagrantfile
(or whatever you use to provision your VMs) and forget about them.Installing the
virtualbox-guest-dkms
package will ensure that the appropriate kernel modules are automatically built (and rebuilt when the kernel is upgraded), and install the guest additions.(Note that this will install the version of the guest additions available in whichever version of Debian you're using in the VM, which may not match the version of Virtual Box running the VM — but the guest additions should still work fine.)
Stephen KittStephen Kitt
Follow these steps to install the VirtualBox Guest Additions on your Linux Debian virtual machine:
- Open terminal and become
root
(su
); if you havesudo
enabled, you may also do for examplesudo -i
; seeman sudo
for all options):
enter root password and press enter
alternatively you can use
sudo -s
if you have it installed and the user where you are logged in has the necessary rights...- Update APT cache:
- Install the latest security updates:This step will upgrade all your packages, so be wise about it. Try the following steps first and they might be enough to work if not, then perform upgrade and retry.
- Install these required packages:Packages
build-essential
andmodule-assistant
are both required to be able to compile the kernel modules and so when installing the VirtualBox Linux Guest Additions you must have them. So, this command will get the headers and packages (compilers and libraries) required to work. Notice, that after installing your VirtualBox Linux Guest Additions you will leave behind some packages as well as Linux headers, which you might delete afterwards or not. In my case they didn't hurt, but for the sake of system tidiness, you might want to pick up after playing. - Configure your system for building kernel modules:
- Insert Guest Additions ISO:Expand menu Devices and click on Insert Guest Additions CD image...
- It should mount automatically, but if for any reason it doesn't:
- Run the following script:
- Restart the system:
Community♦
ximbalximbal
An alternative to installing VirtualBox guest addons from the Debian repository is to use sources from the vendor. The repository is expected to provide older and more stable code while sources from vendor are going to have the latest features and security updates.
I have successfully tried the ensuing instructions on Debian 9.4 guest running Linux kernel 4.9.0-4 using VirtualBox 5.0.30 and OS X 10.11.6. First, attach the guest addons ISO image to the virtual machine and then start it. After bootup, the contents of the image would be available in
/media/cdrom0/
. First, there are two packages and their dependencies that have to be installed:Then, run the vendor provided script that builds and installs the necessary kernel modules:
Virtualbox Guest Additions Iso Download
Reboot the virtual machine and enjoy!
pdppdp
In Debian 9, the virtualbox-guest-dkms package is in the unstable (sid) repository.
- Add this to
/etc/apt/sources.list
: - Update repositories and install package
- Optionally: disable the sid repository, because it has updates for packages that you might not want.
TimSCTimSC
protected by Community♦Sep 1 '18 at 11:25
Oracle Virtualbox Guest Additions Iso
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?