I’m trying to install VirtualBox in a lxd container (not vm) running 22.04. My container has a gnome desktop which I can Vnc into fine. My plan is to migrate a number of old windows vm I currently have under an old dedicated 18.04 machine.
The deb file is virtualbox-6.1_6.1.36-152435~Ubuntu~jammy_amd64.deb from virtualbox.org
This is what I get…
root@container:~# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
depmod: WARNING: could not open modules.order at /lib/modules/5.15.0-39-generic: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/5.15.0-39-generic: No such file or directory
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
depmod: WARNING: could not open modules.order at /lib/modules/5.15.0-39-generic: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/5.15.0-39-generic: No such file or directory
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
root@container:~#
root@container:~# cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
root@container:~#
I can’t look at dmesg (which I assume is normal) and there’s nothing else useful in /var/log/*
The two files modules.order + .builtin exist on the host machine (also Ubuntu 22.04) so not sure why are not in the container (should I just copy them there?).