Error While Installing Windows 10

Discussions related to using VirtualBox on Linux hosts.
Shaggy123
Posts: 17
Joined: 15. Dec 2015, 05:05

Error While Installing Windows 10

Post by Shaggy123 »

Today I was trying to install Windows 10 via dvd on my Linux Ubuntu 16.04 computer and I get an error as shown in the attached screen shot. After doing some research on the error I found a solution and tried that also and got another error also on an attached screen shot. Can someone please tell me how to resolve this? Oh and I forgot to mention my kernel is 4.10..1
Attachments
Screenshot from 2017-03-11 17-54-30.png
Screenshot from 2017-03-11 17-54-30.png (23.22 KiB) Viewed 3329 times
Screenshot from 2017-03-11 17-11-48.png
Screenshot from 2017-03-11 17-11-48.png (71.62 KiB) Viewed 3329 times
Last edited by Shaggy123 on 12. Mar 2017, 01:21, edited 1 time in total.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Error While Installing Windows 10

Post by socratis »

Moving to "Linux Hosts" from "Linux Guests".
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Shaggy123
Posts: 17
Joined: 15. Dec 2015, 05:05

Re: Error While Installing Windows 10

Post by Shaggy123 »

Sorry and thanks!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Error While Installing Windows 10

Post by Perryg »

What version of VirtualBox did you install and where did you get it from?

Also post the /var/log/vbox-install.log ( as an attachment )
Shaggy123
Posts: 17
Joined: 15. Dec 2015, 05:05

Re: Error While Installing Windows 10

Post by Shaggy123 »

It's version 5.0.32 and all I did was run a sudo apt-get install virtualbox. There is no vbox-install.log in /var/log. It goes from ufw.lo.1 to wtmp!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Error While Installing Windows 10

Post by Perryg »

So that would be the Ubuntu fork. You will need to ask them what to do or remove theirs and install the official one from VirtualBox.org I would also get the newest one available 5.1.16

https://www.virtualbox.org/wiki/Downloads
Shaggy123
Posts: 17
Joined: 15. Dec 2015, 05:05

Re: Error While Installing Windows 10

Post by Shaggy123 »

I downloaded the deb and double clicked on it and it opened up Ubuntu Software. I clicked Install and it shortly ran through the process and stopped. The button still said Install? I don't know what could be wrong with it and no, it's not installed. Oh yeah, I just removed the old one from Ubuntu Software too.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Error While Installing Windows 10

Post by Perryg »

Their software center package is junk. Use dpkg or install gdebi.
Shaggy123
Posts: 17
Joined: 15. Dec 2015, 05:05

Re: Error While Installing Windows 10

Post by Shaggy123 »

Well I scrolled down below the yum install and saw the apt-get install. So I tried that and now I get a new error. I've attached the screen shot. I ran the /sbin/vboxconfig comand I see there is a problem with mysql-server-5.7 and mysql and I've been having this problem all day. So this have something to do with this?
Attachments
Screenshot from 2017-03-11 21-14-15.png
Screenshot from 2017-03-11 21-14-15.png (48.75 KiB) Viewed 3314 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Error While Installing Windows 10

Post by Perryg »

There is no yum in Ubuntu. Typo perhaps?

Open a terminal and run sudo dpkg -i <full name of the installable including the extension> from the folder that actually has the installable. Post any errors.
Using the official version you should also have a file called /var/log/vbox-install.log which you can post here ( as an attachment ).
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Error While Installing Windows 10

Post by Martin »

I have seen similar problmes with other distributions when selinux and/or secure boot was enabled.
Shaggy123
Posts: 17
Joined: 15. Dec 2015, 05:05

Re: Error While Installing Windows 10

Post by Shaggy123 »

Here is the log. Also, I might have to do a total system reinstall unless you can tell me how to go back to my old kernel. All these problems started when I updated my kernel on Ubuntu to the latest!

Code: Select all

Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Error While Installing Windows 10

Post by Perryg »

Re-installing the OS should not be necessary. Just do the following in a terminal:

Code: Select all

sudo apt-get install dkms linux-headers-$(uname -r)
Then run sudo /sbin/vboxconfig
Shaggy123
Posts: 17
Joined: 15. Dec 2015, 05:05

Re: Error While Installing Windows 10

Post by Shaggy123 »

I'm glad I don't have to reinstall my system, but how do I get the Linux headers?
Attachments
Screenshot from 2017-03-12 14-10-27.png
Screenshot from 2017-03-12 14-10-27.png (45.77 KiB) Viewed 3289 times
Last edited by Shaggy123 on 12. Mar 2017, 20:57, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Error While Installing Windows 10

Post by Perryg »

Uh what made you upgrade to 4.10.1 kernel? Evidently that is not the version that your OS version supports yet.
So to get back to the previous kernel, hold the shift key down while booting and select the previous kernel to boot with, then remove the 4.10.1 kernel and wait until you can get the matching headers

You might also be able to get the headers from http://kernel.ubuntu.com/~kernel-ppa/mainline/ but this is going to be well beyond the scope of this forum and requires some advanced skills.
Post Reply