Install VirtualBox Guest Additions in a new Devuan Guest

This took much effort, many retries, exploring many dead ends, over three days to find. The delta between Debian and Devuan and Virtualbox can get messy if any one of the three is not aligned. In the end it turns out to be quite simple, although there are a couple assumptions involved to keep it that simple.

Prep the installation with the correct kernel headers

After you install Devuan as a guest from an ISO, get to a bash prompt (Terminal) and get to root within the VirtualBox guest. Then do the following, as root:

apt -y update
apt -y upgrade
#get the latest linux image
apt -y install linux-image-amd64
#get the headers that go with that image. this takes awhile, be patient
apt -y install linux-headers-amd64
reboot

Ignore the 'rcvboxadd' notice that it will say you can do instead of reboot, or you'll get an error later. You just upgraded the kernel; it doesn't happen often, so kindly reboot. Note the command to install linux-image-amd64 above. This is the one line that many online how-tos miss. If you don't do this and the existing image is even slightly different from what's in the security repo, nothing else works right. The kernel and the headers need to match.

Install the Guest Additions

After reboot, go to the Devices menu of the guest. Right-click "Insert Guest Additions CD image," then do the following in the guest bash shell, while logged in as root:

mount /dev/cdrom /media/cdrom
cd /media/cdrom
./VBoxLinuxAdditions.run

When that finishes, logout and then login.

That's it!

Assumptions

Now for a couple assumptions: If you have multiple VirtualBoxes you might not always have the correct version of Guest Additions ISO embedded in the host application (i.e. if you upgrade the host, you often have to upgrade all guests to match, and that's not always what you want to do). Download the ISO that matches your desired Host version (try "vboxmanage --version") here:

https://packages.debian.org/sid/all/virtualbox-guest-additions-iso/download

Then mount that version instead of the ISO image which appears under the Devices menu.

Another assumption: You should have an /etc/apt/sources.list that looks something like this, the key one here is excalibur-security, but the rest are useful unless you specifically don't want them:


cat /etc/apt/sources.list
deb http://deb.devuan.org/merged excalibur main contrib non-free non-free-firmware
deb http://deb.devuan.org/merged excalibur-security main contrib non-free non-free-firmware
# excalibur-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.devuan.org/merged excalibur-updates main contrib non-free non-free-firmware
# excalibur-backports, previously on backports.debian.org
deb http://deb.devuan.org/merged excalibur-backports main contrib non-free non-free-firmware

The astute will note that I did not need to use Sid (unstable) to get this working, although if this doesn't work for you right away, you may want to consider that approach to get the correct virtualbox or other versions aligned.

Helpful links

https://wiki.debian.org/VirtualBox?pow_referer=#Installing_the_Guest_Additions_on_a_Debian_VM

https://packages.debian.org/sid/all/virtualbox-guest-additions-iso/download

https://itslinuxfoss.com/install-virtualbox-guest-additions-debian-12/

https://darrengoossens.wordpress.com/2022/04/24/installing-virtualbox-on-devuan-one-simple-way-that-seems-to-work/

https://www.reddit.com/r/virtualbox/comments/12vkjwk/where_to_download_guest_additions_iso/

https://askubuntu.com/questions/299415/update-linux-headers-when-kernel-is-updated

https://linuxconfig.org/install-virtualbox-guest-additions-on-linux-guest

https://terokarvinen.com/2021/install-debian-on-virtualbox/

 

Passbolt: How to Solve ‘Could not send the test email’ (SMTP Relay Microsoft 365)

Or, how to spend five hours sending a single email. I tried to do it the right way, with Microsoft App registration and Oauth and all that (which is astoundingly complicated to configure -- it used to be so simple, but every year it gets more complicated), but in the end Digital Ocean doesn't allow  […]

Continue reading

Roger Penrose remembers his most beautiful thought

The following was transcribed from this YouTube video: We need to 'gravitise' quantum mechanics, not quantise gravity | Roger Penrose | Full Interview Penrose is 93 and in an amiable mood in this interview, so he goes into minor non-mathematical tangents from time to time. I've edited the following  […]

Continue reading

Inventing a genre of music I haven't heard before: songs embodying Max Scheler's idea of love, the truest love I ever did see

It's been almost a year since I followed a hint[1] from Iaian McGilchrist to learn more about Max Scheler's ideas on love. How happy I became! I've never found a more potent way of defining love, and over the past nine months or so I've been increasingly impressed with this way of framing love.  […]

Continue reading

How to connect to SQL Server on Amazon with sqlcmd and import data from a SQL file

I found this information from MS to be insufficient, and pieced together the correct way to import data into SQL Server from a SQL file into an Amazon database using a non-standard port: sqlcmd -S tcp:mydata.c960gorblahblah.us-west-2.rds.amazonaws.com,1337 -U username -P p@ssW@rd~ -d mydatabasename  […]

Continue reading

A golden crown with a band of rubies around the base

Just awakened from a wonderful dream, like an intricate adventure story where Indiana Jones might appear at any moment. I was somewhere in Central America, and I had just accidentally found an ancient relic, a golden crown with a beautiful band of rubies near the base. Before that scene, as I write  […]

Continue reading

How to properly reset the VBoxClient clipboard (copy-paste from guest to host) on Devuan Linux and probably Debian too

There is an elusive bug in the VirtualBox client software, which on rare occasions causes the clipboard to stop working. I've seen the issue with both Windows and Linux guests, and I've developed workarounds by writing tiny scripts that reset the client software. However, my standard Devuan client  […]

Continue reading

Yearning for silence and talking to God about it

Today is my birthday and I am yearning for silence of a rare kind. I've been yearning for silence for years, as may be clear to one reading many of my preceding weblog articles here over the past five years or so. Today, as the sun rises and I am contemplating my life in the annual "it's your  […]

Continue reading

On the new fallacy of self-healing hasty bifurcation

The image to the right gives an example of two laws, or two principles. The "Law of Excluded Middle" and the "Principle of Bivalence." They are presented as being distinct from each other, but in fact, they are two sides of the same hair being split down the middle, and they're  […]

Continue reading

Get filename and path after a file is uploaded using Laravel Filament afterStateUpdated

It should not be so difficult to find something so trivial. So in hopes of helping someone else find the answer more quickly than the several days it took me, here is a conversation I had recently in a Discord chat for Laravel Filament. Scroll to the very end for the TL;DR one-liner answer.  […]

Continue reading

How to become a saviour of the world

In a dream from which I awakened as my alarm went off at 5 this morning, I was on a comfortable tour bus with friends. The bus stopped and I saw that there was a large crowd of people gathered around, like a state fair or something. I was contemplating whether to stay on the bus or get out for  […]

Continue reading

How to run a VirtualBox Linux nested inside a VirtualBox Windows running on Linux so you can ShareX a Linux desktop

Yes, you could use Wine, but for diehards, here's this. I used Linux Mint and Windows Ameliorated, but the same basic steps should work for other flavors. You're going to want a good amount of RAM, disk space, and a fast CPU. I used 12Gb RAM for the outer VirtualBox and 8Gb RAM for the innermost,  […]

Continue reading

How to fix security issue in Dradis where Ruby Rails Mini Profiler "Rack Environment" is enabled and visible when using pp=env

I'm not familiar with Ruby, Rails, Puma, or anything else in the Ruby environment, although I'm well familiar with other programming environments which are similar. Still, it took me longer to install Dradis than it should have, and I finally gave up on the Docker version entirely. I had to cobble  […]

Continue reading

'The reward of wisdom comes in silence,' saith the fool, and then he spoke no more

To listen the gift of listening, one must first listen What a way to begin the year. This morning I awakened in the dark before the alarm went off, which is always a good way to start a day. Quiet thoughts ambled through my mind for a while. At the conclusion of a chain of thoughts which have now  […]

Continue reading

Eramba System Health Check fails immediately after installation due to cron error but really it's an .env file issue

System Health Warning: This installation of eramba has a few issues in order to work properly. Check on the settings page under health monitor what could be the issues or click here

The .env file for an eramba installation cannot have #comments. If you have comments, it will silently fail, and you'll see this error message: "System Health Warning: This installation of eramba has a few issues in order to work properly. Check on the settings page under health monitor what  […]

Continue reading

How to open files in vscodium using link in a browser to vscode: add a registry key

To open up a file within a browser having a vscode://file/ URL like this: vscode://file/C:\xampp\htdocs\mycoolapp\app\Models\Membership.php So it looks like this:   Then save the following as a registry file named vscode.reg: Windows Registry Editor Version 5.00  […]

Continue reading

Page top