Linux – Is it safe to install two different VirtualBox Guest Additions at the same time

linuxvirtual machinevirtualboxwindows

I was wondering if it is safe to install both Windows and Linux versions of VirtualBox Guest Additions? I searched around in google but couldn't find an answer.

I need to make a vbox image that works both on Windows and Linux hosts (for shared folders and such). But I don't know if installing a second guest additions after the first one will cause any unforeseeable conflict/problems.

— EDIT —

Part of the confusion I had was that under Linux/Ubuntu, it was possible to install VBox Guest Additions via the apt-get system. This led me to think that there are Windows vs Linux versions of Guest Additions.

I've tested to install the Guest Additions on Windows host from the official Oracle source, and then used the virtual image under Linux. Features like shared folders etc. work just fine.

Best Answer

The ISO file containing the GuestAdditions (which is mounted in the GUEST to install them) contains several versions (32/64 bit, Windows, Linux and some Unix variants) for different GUEST OSses. That may be confusing.

The Guest-additions are always installed on the GUEST OS. Not on the HOST.
The HOST side is integrated into the VirtualBox installation itself and not changeable.

The only important thing to keep in mind that you should use the same version of Guest-additions in the GUEST as the VirtualBox version on the HOST.
Even though a version difference may appear to work just fine, there is a possibility of subtle errors occurring, system instability or performance loss if the versions don't match.

So if you move a virtual machine between hosts, make sure to update the GuestAdditions if needed.
Newer versions can be installed over the old one.
If the GUEST has a newer version than the HOST you best upgrade VirtualBox itself on the HOST. (The GuestAdditions can be downgraded in the GUEST, but that can be very complicated, especially on a Unix/Linux GUESTs.)

Related Question