From a62bb2c7900d4b591d8bb95c063b1f7502a0d44a Mon Sep 17 00:00:00 2001 From: Troy Harvey Date: Sat, 21 Dec 2024 15:16:01 +1100 Subject: [PATCH] virtualbox: KVM fix "In kernel 6.12, KVM initializes virtualization on module loading by default. This prevents VirtualBox VMs from starting." https://www.virtualbox.org/wiki/Changelog Signed-off-by: Troy Harvey --- packages/v/virtualbox/files/virtualbox.conf | 2 ++ packages/v/virtualbox/package.yml | 5 ++++- packages/v/virtualbox/pspec_x86_64.xml | 25 +++++++++++---------- 3 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 packages/v/virtualbox/files/virtualbox.conf diff --git a/packages/v/virtualbox/files/virtualbox.conf b/packages/v/virtualbox/files/virtualbox.conf new file mode 100644 index 00000000000..c983f2544f0 --- /dev/null +++ b/packages/v/virtualbox/files/virtualbox.conf @@ -0,0 +1,2 @@ +# With kernel 6.12 kvm is enabled by default and this breaks virtualbox. +options kvm enable_virt_at_load=0 diff --git a/packages/v/virtualbox/package.yml b/packages/v/virtualbox/package.yml index 13b03fc771a..87239e47633 100644 --- a/packages/v/virtualbox/package.yml +++ b/packages/v/virtualbox/package.yml @@ -1,6 +1,6 @@ name : virtualbox version : 7.1.4 -release : 341 +release : 342 source : - https://download.virtualbox.org/virtualbox/7.1.4/VirtualBox-7.1.4.tar.bz2 : 872e7a42b41f8558abbf887f1bdc7aac932bb88b2764d07cbce270cab57e3b5e - https://download.virtualbox.org/virtualbox/7.1.4/VBoxGuestAdditions_7.1.4.iso : 80c91d35742f68217cf47b13e5b50d53f54c22c485bacce41ad7fdc321649e61 @@ -264,6 +264,9 @@ install : | # Install Guest Additons ISO install -Dm00644 $sources/VBoxGuestAdditions_*.iso $installdir/usr/share/virtualbox/VBoxGuestAdditions.iso + # Disable KVM + install -Dm00644 $pkgfiles/virtualbox.conf $installdir/usr/lib/modprobe.d/virtualbox.conf + # Usr-merge install -dm00755 $installdir/lib64 pushd $installdir/usr diff --git a/packages/v/virtualbox/pspec_x86_64.xml b/packages/v/virtualbox/pspec_x86_64.xml index 946983d886a..56d9ac46a49 100644 --- a/packages/v/virtualbox/pspec_x86_64.xml +++ b/packages/v/virtualbox/pspec_x86_64.xml @@ -3,8 +3,8 @@ virtualbox https://www.virtualbox.org - Reilly Brogan - solus@reillybrogan.com + Troy Harvey + harveydevel@gmail.com GPL-2.0-only virt @@ -24,7 +24,7 @@ Installation Guide: https://help.getsol.us/docs/user/software/virtualization/vir virt - virtualbox-common + virtualbox-common /lib64/modules/6.6.66-262.lts/extra/vboxdrv.ko.zst @@ -54,6 +54,7 @@ Installation Guide: https://help.getsol.us/docs/user/software/virtualization/vir /usr/bin/VBoxSDL /usr/bin/VBoxVRDP /usr/bin/VirtualBox + /usr/lib/modprobe.d/virtualbox.conf /usr/lib64/systemd/system/multi-user.target.wants/vboxdrv.service /usr/lib64/systemd/system/vboxdrv.service /usr/lib64/sysusers.d/virtualbox.conf @@ -305,7 +306,7 @@ Installation Guide: https://help.getsol.us/docs/user/software/virtualization/vir virt - virtualbox-common + virtualbox-common /lib64/modules/6.12.5-311.current/extra/vboxdrv.ko.zst @@ -325,8 +326,8 @@ Installation Guide: https://help.getsol.us/docs/user/software/virtualization/vir programming.devel - virtualbox - virtualbox-common + virtualbox + virtualbox-common /usr/lib/python3.11/site-packages/vboxapi-1-py3.11.egg-info/PKG-INFO @@ -617,7 +618,7 @@ Installation Guide: https://help.getsol.us/docs/user/software/virtualization/vir virt - virtualbox-guest-common + virtualbox-guest-common /lib64/modules/6.6.66-262.lts/misc/vboxguest.ko.zst @@ -672,7 +673,7 @@ Installation Guide: https://help.getsol.us/docs/user/software/virtualization/vir virt - virtualbox-guest-common + virtualbox-guest-common /lib64/modules/6.12.5-311.current/misc/vboxguest.ko.zst @@ -684,12 +685,12 @@ Installation Guide: https://help.getsol.us/docs/user/software/virtualization/vir - - 2024-12-18 + + 2024-12-21 7.1.4 Packaging update - Reilly Brogan - solus@reillybrogan.com + Troy Harvey + harveydevel@gmail.com \ No newline at end of file