****************************************************************
UPDATE as of 04/23/2021 Link below doesn't provide kernel-devel install anymore. For myself the easiest way is to rebuild kernel-5.11.15-300.fc34.src.rpm and install locally all required rpms along with kernel-5.11.15 itself . Build on WD500 NVMe device reduce build-time in 4 times vs SATA SSD on the same box.
$ sudo dnf builddep kernel-5.11.15-300.fc34.src.rpm
$ rpmbuild --rebuild kernel-5.11.15-300.fc34.src.rpm
To succeed with Virtual Box 6.1.20 installation per https://kifarunix.com/install-virtualbox-6-1-on-fedora/ you still would have to rebuild kernel-5.11.15-300.fc34.src.rpm, otherwise instruction from link above :-
$ sudo dnf -y install VirtualBox-6.1-6.1.20_143896_fedora33-1.x86_64.rpm
will report : - This system is currently not set up to build kernel modules. Please install the Linux kernel "header" files matching the current kernel for adding new hardware support to the system. The distribution packages containing the headers are probably:
kernel-devel kernel-devel-5.11.15-300.fc34.x86_64
****************************************************************
The most recent update to F34 installs kernel 5.11.14 and kernel-devel-5.11.14-300.fc34.x86_64 at a time . What makes possible to install Virtual Box 6.1.18 via rpmfusion repository .
To force this update see https://bodhi.fedoraproject.org/updates/FEDORA-2021-d56567bdab
$ sudo dnf upgrade --enablerepo=updates-testing \ --advisory=FEDORA-2021-d56567bdab Last metadata expiration check: 0:00:40 ago on Sat 17 Apr 2021 03:09:01 PM MSK. Dependencies resolved. =========================================================================================== Package Arch Version Repository Size =========================================================================================== Installing: kernel x86_64 5.11.14-300.fc34 updates-testing 151 k kernel-core x86_64 5.11.14-300.fc34 updates-testing 34 M kernel-devel x86_64 5.11.14-300.fc34 updates-testing 14 M kernel-modules x86_64 5.11.14-300.fc34 updates-testing 31 M kernel-modules-extra x86_64 5.11.14-300.fc34 updates-testing 2.1 M Upgrading: kernel-headers x86_64 5.11.14-300.fc34 updates-testing 1.2 M Removing: kernel x86_64 5.11.11-300.fc34 @fedora 0 kernel-core x86_64 5.11.11-300.fc34 @fedora 74 M kernel-devel x86_64 5.11.11-300.fc34 @fedora 56 M kernel-modules x86_64 5.11.11-300.fc34 @fedora 30 M kernel-modules-extra x86_64 5.11.11-300.fc34 @fedora 1.9 M Transaction Summary =========================================================================================== Install 5 Packages Upgrade 1 Package Remove 5 Packages Total download size: 82 M Is this ok [y/N]: y Downloading Packages: (1/6): kernel-5.11.14-300.fc34.x86_64.rpm 222 kB/s | 151 kB 00:00 (2/6): kernel-devel-5.11.14-300.fc34.x86_64.rpm 1.3 MB/s | 14 MB 00:10 (3/6): kernel-modules-extra-5.11.14-300.fc34.x86_64.rpm 1.2 MB/s | 2.1 MB 00:01 (4/6): kernel-headers-5.11.14-300.fc34.x86_64.rpm 858 kB/s | 1.2 MB 00:01 (5/6): kernel-core-5.11.14-300.fc34.x86_64.rpm 1.6 MB/s | 34 MB 00:20 (6/6): kernel-modules-5.11.14-300.fc34.x86_64.rpm 1.5 MB/s | 31 MB 00:20 ------------------------------------------------------------------------------------------- Total 3.8 MB/s | 82 MB 00:21 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : kernel-core-5.11.14-300.fc34.x86_64 1/12 Running scriptlet: kernel-core-5.11.14-300.fc34.x86_64 1/12 Installing : kernel-modules-5.11.14-300.fc34.x86_64 2/12 Running scriptlet: kernel-modules-5.11.14-300.fc34.x86_64 2/12 Installing : kernel-5.11.14-300.fc34.x86_64 3/12 Installing : kernel-modules-extra-5.11.14-300.fc34.x86_64 4/12 Running scriptlet: kernel-modules-extra-5.11.14-300.fc34.x86_64 4/12 Upgrading : kernel-headers-5.11.14-300.fc34.x86_64 5/12 Installing : kernel-devel-5.11.14-300.fc34.x86_64 6/12 Running scriptlet: kernel-devel-5.11.14-300.fc34.x86_64 6/12 Erasing : kernel-modules-extra-5.11.11-300.fc34.x86_64 7/12 Running scriptlet: kernel-modules-extra-5.11.11-300.fc34.x86_64 7/12 Erasing : kernel-5.11.11-300.fc34.x86_64 8/12 Running scriptlet: kernel-5.11.11-300.fc34.x86_64 8/12 Erasing : kernel-modules-5.11.11-300.fc34.x86_64 9/12 Running scriptlet: kernel-modules-5.11.11-300.fc34.x86_64 9/12 Running scriptlet: kernel-core-5.11.11-300.fc34.x86_64 10/12 Erasing : kernel-core-5.11.11-300.fc34.x86_64 10/12 dkms: running auto installation service for kernel 5.11.14-300.fc34.x86_64 Done. Running scriptlet: kernel-headers-5.11.11-300.fc34.x86_64 12/12 Verifying : kernel-5.11.14-300.fc34.x86_64 1/12 Verifying : kernel-core-5.11.14-300.fc34.x86_64 2/12 Verifying : kernel-devel-5.11.14-300.fc34.x86_64 3/12 Verifying : kernel-modules-5.11.14-300.fc34.x86_64 4/12 Verifying : kernel-modules-extra-5.11.14-300.fc34.x86_64 5/12 Verifying : kernel-headers-5.11.14-300.fc34.x86_64 6/12 Verifying : kernel-headers-5.11.11-300.fc34.x86_64 7/12 Verifying : kernel-5.11.11-300.fc34.x86_64 8/12 Verifying : kernel-core-5.11.11-300.fc34.x86_64 9/12 Verifying : kernel-devel-5.11.11-300.fc34.x86_64 10/12 Verifying : kernel-modules-5.11.11-300.fc34.x86_64 11/12 Verifying : kernel-modules-extra-5.11.11-300.fc34.x86_64 12/12 Upgraded: kernel-headers-5.11.14-300.fc34.x86_64 Installed: kernel-5.11.14-300.fc34.x86_64 kernel-core-5.11.14-300.fc34.x86_64 kernel-devel-5.11.14-300.fc34.x86_64 kernel-modules-5.11.14-300.fc34.x86_64 kernel-modules-extra-5.11.14-300.fc34.x86_64 Removed: kernel-5.11.11-300.fc34.x86_64 kernel-core-5.11.11-300.fc34.x86_64 kernel-devel-5.11.11-300.fc34.x86_64 kernel-modules-5.11.11-300.fc34.x86_64 kernel-modules-extra-5.11.11-300.fc34.x86_64
Setup rpmfusion :-
$ sudo dnf install \ https://download1.rpmfusion.org/free/fedora/rpmfusion-
free-release-$(rpm -E %fedora).noarch.rpm
$ sudo dnf \ install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
$ sudo dnf install VirtualBox kernel-devel-$(uname -r) akmod-VirtualBox
$ sudo akmods
$ sudo systemctl restart vboxdrv
$ lsmod | grep -i vbox
vboxnetadp 28672 0
vboxnetflt 32768 1
vboxdrv 557056 3 vboxnetadp,vboxnetflt
Now deploy F34 Prerelease WKS via Virtual Box ( Linux Bridge VM's network setup )
No comments:
Post a Comment