I want to install Virtualbox on the same server I am running OMR VPS script on. The server is bare metal, not virtualized. Kernel is 5.4.86-mptcp, as installed by OMR, OS is Ubuntu 20.04.
However, when I try to install, I get this error:
Building for 5.4.86-mptcp
Building initial module for 5.4.86-mptcp
Error! Bad return status for module build on kernel: 5.4.86-mptcp (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.16/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
In the log:
DKMS make.log for virtualbox-6.1.16 for kernel 5.4.86-mptcp (x86_64)
Thu 25 Mar 2021 03:11:21 PM UTC
make: Entering directory '/usr/src/linux-headers-5.4.86-mptcp'
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/linux/SUPDrv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/SUPDrv.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/SUPDrvGip.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/SUPDrvSem.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/SUPDrvTracer.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/SUPLibAll.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/alloc-r0drv.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/initterm-r0drv.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/memobj-r0drv.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/mpnotification-r0drv.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/powernotification-r0drv.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/process-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/rtStrFormatKernelAddress-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/semevent-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/semeventmulti-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/semfastmutex-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/semmutex-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/spinlock-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/thread-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/thread2-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/threadctxhooks-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/time-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/timer-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/generic/semspinmutex-r0drv-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/alloc/alloc.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/checksum/crc32.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/checksum/ipv4.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/checksum/ipv6.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/err/RTErrConvertFromErrno.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/err/RTErrConvertToErrno.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/err/errinfo.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/log/log.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/log/logellipsis.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/log/logrel.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/log/logrelellipsis.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/log/logcom.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/log/logformat.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/misc/RTAssertMsg1Weak.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/misc/RTAssertMsg2.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/misc/RTAssertMsg2Add.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/misc/RTAssertMsg2AddWeak.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/misc/RTAssertMsg2AddWeakV.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/misc/RTAssertMsg2Weak.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/misc/RTAssertMsg2WeakV.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/misc/assert.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/misc/handletable.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/misc/handletablectx.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/misc/thread.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/RTStrCat.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/RTStrCopy.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/RTStrCopyEx.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/RTStrCopyP.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/RTStrNCmp.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/RTStrNLen.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/stringalloc.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/strformat.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/strformatnum.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/strformatrt.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/strformattype.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/strprintf.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/string/strtonum.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/table/avlpv.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/time/time.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/r0drv/linux/RTLogWriteDebugger-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/RTAssertShouldPanic-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/RTLogWriteStdErr-stub-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/RTLogWriteStdOut-stub-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/RTLogWriteUser-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/RTMpGetArraySize-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/RTMpGetCoreCount-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/RTSemEventWait-2-ex-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/RTSemEventWaitNoResume-2-ex-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/RTSemEventMultiWait-2-ex-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/RTSemEventMultiWaitNoResume-2-ex-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/RTTimerCreate-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/errvars-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/mppresent-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/generic/uuid-generic.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/VBox/log-vbox.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/common/alloc/heapsimple.o
LD [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxdrv/vboxdrv.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxnetadp/linux/VBoxNetAdp-linux.o
CC [M] /var/lib/dkms/virtualbox/6.1.16/build/vboxnetadp/VBoxNetAdp.o
In file included from ./include/linux/compat.h:16,
from ./include/linux/ethtool.h:17,
from /var/lib/dkms/virtualbox/6.1.16/build/vboxnetadp/linux/VBoxNetAdp-linux.c:35:
./include/linux/if.h:28:10: fatal error: sys/socket.h: No such file or directory
28 | #include <sys/socket.h> /* for struct sockaddr. */
| ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:261: /var/lib/dkms/virtualbox/6.1.16/build/vboxnetadp/linux/VBoxNetAdp-linux.o] Error 1
make[1]: *** [scripts/Makefile.build:496: /var/lib/dkms/virtualbox/6.1.16/build/vboxnetadp] Error 2
make: *** [Makefile:1732: /var/lib/dkms/virtualbox/6.1.16/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.4.86-mptcp'
Hi!
I want to install Virtualbox on the same server I am running OMR VPS script on. The server is bare metal, not virtualized. Kernel is 5.4.86-mptcp, as installed by OMR, OS is Ubuntu 20.04.
However, when I try to install, I get this error:
In the log: