If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: Oracle VirtualBox installation script

Top right of the forum page, click on "Fedora Project", click on "Fedora Build System (Koji)" near the bottom of the drop down menu. Search for kernel in the Koji window. Use "uname -r" in a terminal to find out which kernel you're using. Pick the kernel version that you got with "uname -r". Scroll down to the the correct archecture, then pick kernel-devel. I have a folder named RPMS that I use for rpms from Koji. Then search for dkms in Koji and download the most recent F24 dkms from Koji to the same directory. Open a terminal window in that directory and run "sudo dnf install ./kernel-devel* ./dkms*". Reboot and a virtualbox kernel module should be built. If your CPU activity runs high for 30 seconds or so, it did.

Re: Oracle VirtualBox installation script

Originally Posted by dd_wizard

Top right of the forum page, click on "Fedora Project", click on "Fedora Build System (Koji)" near the bottom of the drop down menu. Search for kernel in the Koji window. Use "uname -r" in a terminal to find out which kernel you're using. Pick the kernel version that you got with "uname -r". Scroll down to the the correct archecture, then pick kernel-devel. I have a folder named RPMS that I use for rpms from Koji. Then search for dkms in Koji and download the most recent F24 dkms from Koji to the same directory. Open a terminal window in that directory and run "sudo dnf install ./kernel-devel* ./dkms*". Reboot and a virtualbox kernel module should be built. If your CPU activity runs high for 30 seconds or so, it did.

dd_wizard

Hi dd_wizard
Thank you so much. I looked around the Web but I got a lot of 404 errors and had probelms fionding those two packages. Have a great day!

# We can easily make changes to the source file versions by changing a few variables below.# Most recent is https://download.virtualbox.org/virtualbox/5.2.8/VirtualBox-5.2-5.2.10_122591_fedora26-1.x86_64.rpm# Most recent is https://download.virtualbox.org/virtualbox/5.2.12/VirtualBox-5.2-5.2.12_122591_fedora26-1.x86_64.rpm# Most recent is https://download.virtualbox.org/virtualbox/5.2.14/VirtualBox-5.2-5.2.14_123301_fedora26-1.x86_64.rpm# Most recent is https://download.virtualbox.org/virtualbox/5.2.16/VirtualBox-5.2-5.2.16_123759_fedora26-1.x86_64.rpm

# Need elevated permissions at some point, might as well do it now.if [[ $EUID -ne 0 ]] ; then printf $ERRB"You're going to need elevated permissions at some point. Let's get that out of the way now.\nUse "sudo" or "su -c"\n"$RSTexit 0fi

# Determine if system booted using EFI or BIOSfunction efiorbios(){if [[ -d /sys/firmware/efi ]] ; then printf $ERR"This system is booted using UEFI.\n"$RSTelseprintf $ERR"This system is booted using BIOS.\n"$RSTfi}

# Main script flowfunction menu(){clearheadlineprintf $OK"\nFor this script to succeed you need to be running the newest available and installed kernel.\n\nIf you aren't running the newest available and installed kernel please exit this script\nand update your system. Then boot into the newest installed kernel and run this script again.\n"$RSTprintf $OKB"\nShall we continue? <y/n> "$RSTread yncase $yn in y) clear remove_fed_vbox get_packages get_public_key get_source install_source install_extpack remove_source script_complete#runvb;;

n) script_cancelexit 0;;

# Test menu entry used for development. End user should ignore this menu option.# All this does is test for missing packages and test the download process for VirtualBox and GuestAdditions.t) test_get_packages get_source efiorbios script_test_complete;;

# Test menu entry used for development. End user should ignore this menu option.# All this does is show the current value of all of the variables.v) show_vars;;

# Process to follow when an incorrect response is detected.*) script_cancelexit 0;;esac}menu # Call the main menu.