Install this version:
emerge -a =app-emulation/virtualbox-modules-7.1.4
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-emulation/virtualbox-modules-7.1.4
Or alternatively:
emerge --autounmask-write -a =app-emulation/virtualbox-modules-7.1.4
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 7.1.4 | 8 | ~amd64 | 0/$(ver_cut 1-2) |
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# XXX: the tarball here is just the kernel modules split out of the binary
# package that comes from VirtualBox-*.run
# XXX: update: now it is split from virtualbox-*-Debian~bullseye_amd64.deb
EAPI=8
inherit dkms
MY_P="vbox-kernel-module-src-${PV}"
DESCRIPTION="Kernel Modules for Virtualbox"
HOMEPAGE="https://www.virtualbox.org/"
SRC_URI="https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${MY_P}.tar.xz"
S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="~amd64"
CONFIG_CHECK="~!SPINLOCK JUMP_LABEL"
src_compile() {
local modlist=( {vboxdrv,vboxnetflt,vboxnetadp}=misc )
local modargs=( KERN_DIR="${KV_OUT_DIR}" KERN_VER="${KV_FULL}" )
dkms_src_compile --no-kernelrelease
}
src_install() {
dkms_src_install
insinto /usr/lib/modules-load.d/
newins "${FILESDIR}"/virtualbox.conf-r1 virtualbox.conf
insinto /etc/modprobe.d # bug #945135
newins - virtualbox.conf <<-EOF
# modprobe.d configuration file for VBOXSF
# Starting with kernel 6.12,
# KVM initializes virtualization on module loading by default.
# This prevents VirtualBox VMs from starting.
# See also:
# https://bugs.gentoo.org/945135
# https://www.virtualbox.org/wiki/Changelog-7.1
# ------------------------------
options kvm enable_virt_at_load=0
EOF
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | vbox-kernel-module-src-7.1.4.tar.xz | 738112 bytes | https://dev.gentoo.org/~ceamac//virtualbox-modules/vbox-kernel-module-src-7.1.4.tar.xz |