VirtualBox GuestAdditions for Linux Guest OS

I often work with VirtualBox virtual machines and need to install GuestAdditions to use GUI applications comfortably. So, I decided to collect here some configuration scripts.

VirtualBox GuestAdditions

CentOS 7

In the configuration a new VirtualBox machine I add 2 network adapters:

  • Host Only Network
  • NAT

Installing clean CentOS (CentOS-7-x86_64-DVD-1611)

Activating network connections using `nmtui` and set the activation automatically

Getting the address via `ip addr`:

Installing OpenSSH:

yum install openssh-server
systemctl restart sshd.service

Going to the host using ssh (basically to be able to copy-past commands):

ssh vmuser@

Installing Desktop Environment:

su -
yum -y groups install "GNOME Desktop"

Installing dependences for GuestAdditions:

su -
yum update
yum install gcc kernel-devel kernel-headers dkms make bzip2 perl

Checking that Desktop Environment installed successfully:


Adding iso with GuestAdditions in VirtualBox interface: “Devices -> Insert Guest Additions CD Image”

Installing the GuestAdditions:

su -
mkdir /media/VirtualBoxGuestAdditions
mount -r /dev/cdrom /media/VirtualBoxGuestAdditions
KERN_DIR=/usr/src/kernels/`uname -r`
cd /media/VirtualBoxGuestAdditions

It works!

full screen Centos7

Leave a Reply

Your email address will not be published. Required fields are marked *