Skip to content

Install VirtualBox Guest Addition 6.1 on

Prepare your Windows host

EnvironmentHypervisor Type
Running WSLbcdedit /set hypervisorlaunchtype auto
Running Virtualboxbcdedit /set hypervisorlaunchtype off

Install Guest Addition

You may need to install/re-install Virtualbox Guest Addition in case Copy/Paste doesn’t work.

  • Ubuntu Version: Ubuntu 20.04.3 LTS
  • VirtualBoxVersion: 6.1.28
  • For a detailed description look here
  • Guest Addition should be mounted on /media/helmut/VBox_GAs_6.1.28
  • Step 1: sudo apt install gcc make flex bison
  • Step 2: sudo apt install linux-headers-generic
  • Step 3: sh VBoxLinuxAdditions.run
  • Step4 : reboot system
root@kubemaster:/home/helmut/Desktop# apt install gcc make flex bison
Reading package lists... Done
Building dependency tree       
Reading state information... Done
bison is already the newest version (2:3.5.1+dfsg-1).
flex is already the newest version (2.6.4-6.2).
gcc is already the newest version (4:9.3.0-1ubuntu2).
make is already the newest version (4.2.1-1.2).
0 upgraded, 0 newly installed, 0 to remove and 75 not upgraded.

root@kubemaster:/home/helmut/Desktop# sudo apt install linux-headers-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-generic is already the newest version (5.4.0.90.94).
0 upgraded, 0 newly installed, 0 to remove and 75 not upgraded.

root@kubemaster:/home/helmut/Desktop# mount |grep -i VBox
/dev/sr0 on /media/helmut/VBox_GAs_6.1.28 type iso9660 (ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,uid=1000,gid=1000,dmode=500,fmode=400,iocharset=utf8,uhelper=udisks2)

root@kubemaster:/media/helmut/VBox_GAs_6.1.28# ls
AUTORUN.INF  NT3x          TRANS.TBL                          VBoxLinuxAdditions.run          VBoxWindowsAdditions.exe
autorun.sh   OS2           VBoxDarwinAdditions.pkg            VBoxSolarisAdditions.pkg        VBoxWindowsAdditions-x86.exe
cert         runasroot.sh  VBoxDarwinAdditionsUninstall.tool  VBoxWindowsAdditions-amd64.exe  windows11-bypass.reg

root@kubemaster:/media/helmut/VBox_GAs_6.1.28# sh VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.28 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.28 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-5.11.0-40-generic
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 5.11.0-40-generic.
update-initramfs: Generating /boot/initrd.img-5.11.0-40-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted
Published inVirtualbox

Be First to Comment

Leave a Reply