Link to home
Start Free TrialLog in
Avatar of AttilaB
AttilaB

asked on

VirtualBox in Fedora 25 Linux: Unable to Install OS

I managed to install VirtualBox 5.1.10 along with its extension pack in Fedora 25. Unfortunately I cannot install an OS, like I am trying
to install Windows XP on it. I get the following errors: User generated imageIt does give me instructions to install kernel driver: User generated imageThese instructions I am trying to follow, with username 'user' which has administrative rights, so this is what I do, and this is what I get:
[user@user-A55MLV ~]$ sudo dnf install akmod-VirtualBox kernel-devel-$(user -r)
bash: user: command not found...
[sudo] password for user: 
Last metadata expiration check: 0:31:24 ago on Sun Dec 11 06:51:22 2016.
Package akmod-VirtualBox-5.1.10-1.fc25.x86_64 is already installed, skipping.
Dependencies resolved.
================================================================================
 Package             Arch          Version                 Repository      Size
================================================================================
Installing:
 kernel-devel        x86_64        4.8.12-300.fc25         updates         11 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 11 M
Installed size: 40 M
Is this ok [y/N]: y
Downloading Packages:
kernel-devel-4.8.12-300.fc25.x86_64.rpm         424 kB/s |  11 MB     00:26    
--------------------------------------------------------------------------------
Total                                           413 kB/s |  11 MB     00:26     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : kernel-devel-4.8.12-300.fc25.x86_64                         1/1 
  Verifying   : kernel-devel-4.8.12-300.fc25.x86_64                         1/1 

Installed:
  kernel-devel.x86_64 4.8.12-300.fc25                                           

Complete!
[user@user-A55MLV ~]$ 

Open in new window


I also don't understand the 'command not found' error message in there. Was I doing the right thing with username 'user'?
It did look like I did to me, that's what I was supposed to put in there. Is that right?

Then I re-started the computer and still get the same errors with VirtualBox.  So what do I need to do from here to be able to load an OS?
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

user should be replaced with uname - it is meant to get the kernel version (to get the correct kernel development files).
Avatar of AttilaB
AttilaB

ASKER

Well, it still has a problem:
  
[user@user-A55MLV ~]$ sudo dnf install akmod-VirtualBox kernel-devel-$(uname -r)
[sudo] password for user: 
Last metadata expiration check: 0:21:57 ago on Sun Dec 11 10:45:06 2016.
Package akmod-VirtualBox-5.1.10-1.fc25.x86_64 is already installed, skipping.
No package kernel-devel-4.8.11-300.fc25.x86_64 available.
Error: Unable to find a match.
[user@user-A55MLV ~]$ 

Open in new window


So, where / how would I get this kernel-devel-4.8.11-300.fc25.x86_64 package it is missing?
What is your kernel? You have installed kernel-devel-4.8.12 but uname -r gives you 4.8.11

Do you have a boot menu where you can choose which kernel to boot?
Avatar of AttilaB

ASKER

Yes. And I don't have kernel-devel-4.8.12 in the menu!
So, what do I need to do to make it work? How come .12 doesn't how up if that is installed?
See boot menu photo:User generated image
Strange, kernel-4.8.12-300 is the latest stable kernel for FC25 - maybe you can upgrade?
Avatar of AttilaB

ASKER

I would be happy to try that. This is a brand new setup, and I am trying to make it work. What would be the command for updating to kernel-4.8.12-300 from where I am now?
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AttilaB

ASKER

Thank you. I will try it once I get home later on today and let you know.
Avatar of AttilaB

ASKER

After I did the update to the latest version it worked perfectly. Thanks!

Just one question: Why did the old version kernel boot-up still stayed in the start-up menu?
This new version is the default, of course, but why would I want the old one?

Thanks.
Good question, it looks like the previous update didn't finish. But good to hear it's working now ;)
Avatar of AttilaB

ASKER

Thanks!