Page 1 of 1

How to install VirtualBox Guest Additions?

Posted: Thu Dec 26, 2024 6:26 pm
by timg11

I'd like to create a VM with Bionic so I can test and replicate the physical system.

I've found that VirtualBox requires Guest Additions for basic functionality like clipboards, file sharing, and setting resolution higher than VGA.

With other Linux distros, I mount the VBoxGuestAdditions_7.1.4.iso in the VM, boot Linux, mount the CDROM, and run autorun.sh. In Bionic, that does not work:
Image

It seems to be a kernel version issue. Should I try an older version of Guest Additions?


Re: How to install VirtualBox Guest Additions?

Posted: Fri Dec 27, 2024 5:36 am
by Geek3579

I used VBox a lot some years ago, and it was a bit of a hassle to get all the things right.
The Virtual Box Guest additions must match the VirtualBox version. Once you select the Guest addition ISO, it should self install.

BTW, before doing that,however, I needed to configure the VirtualBox installation.
See https://oldforum.puppylinux.com/viewtopic.php?t=111200 for more details.

Basically, I needed to do the following:
1) In a terminal run: adduser vboxusers
you will then be asked to enter a new password - note, no display of password is provided
2) In a terminal run: /sbin/vboxconfig


Re: How to install VirtualBox Guest Additions?

Posted: Fri Dec 27, 2024 1:22 pm
by rockedge

The ViirtualBox kernel module needs to be compiled that matches the current kernel that the operating system is booting with..

The kernel sources need to be installed usually by loading the provided SFS for that particular kernel.

Then as noted you need to run in a terminal:

Code: Select all

 /sbin/vboxconfig

Re: How to install VirtualBox Guest Additions?

Posted: Fri Dec 27, 2024 9:17 pm
by dogcat
timg11 wrote: Thu Dec 26, 2024 6:26 pm

I'd like to create a VM with Bionic so I can test and replicate the physical system.

I've found that VirtualBox requires Guest Additions for basic functionality like clipboards, file sharing, and setting resolution higher than VGA.

With other Linux distros, I mount the VBoxGuestAdditions_7.1.4.iso in the VM, boot Linux, mount the CDROM, and run autorun.sh. In Bionic, that does not work:

It seems to be a kernel version issue. Should I try an older version of Guest Additions?

Hi @timg11

Yes, the virtualbox is kernel specific.

Go to this post and download the vbox-5.2.18_x86_3-diff-pups.sfs. That is virtualbox built for your kernel version 4.9.163
viewtopic.php?p=1552#p1552

After downloading the sfs you then load the sfs, that will give you a working virtualbox 5.2.18
There will be a menu entry at Menu --> System --> Oracle VM VirtualBox

After you have the working virtualbox you can install the guest additions cd by downloading the .iso from here
https://download.virtualbox.org/virtualbox/5.2.18/