Peppermint OS Community Forum

Support => Software & Applications => Topic started by: emegra on June 10, 2019, 03:04:16 pm

Title: Virtualbox woes (SOLVED)
Post by: emegra on June 10, 2019, 03:04:16 pm
Hi guy

Im currently installing PM10 on a friends laptop and sadly I have to install Virtualbox to run a Windows VM due to some specialist (windows only) software however I can't get Virtualbox to cooperate when I try to run it I get the following message

Quote
grant@Grants-Thinkpad ~ $ virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.18.0-21-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.

When I run the command I get thge following error

Quote
grant@Grants-Thinkpad ~ $ sudo /sbin/vboxconfig
[sudo] password for grant:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
 them. Please see your Linux system's documentation for more information.
grant@Grants-Thinkpad ~ $

This laptop does have EFI secure boot which I think has something to do with this issue


Here's the stats

Code: [Select]
grant@Grants-Thinkpad ~ $ inxi -Fz
System:    Host: Grants-Thinkpad Kernel: 4.18.0-21-generic x86_64 bits: 64
           Desktop: N/A Distro: Peppermint Ten
Machine:   Device: laptop System: LENOVO product: 20AWA08500 v: ThinkPad T440p serial: N/A
           Mobo: LENOVO model: 20AWA08500 serial: N/A
           UEFI: LENOVO v: GLET95WW (2.49 ) date: 03/19/2018
Battery    BAT0: charge: 55.6 Wh 100.1% condition: 55.6/56.2 Wh (99%)
CPU:       Dual core Intel Core i5-4300M (-MT-MCP-) cache: 3072 KB
           clock speeds: max: 3300 MHz 1: 1199 MHz 2: 2416 MHz 3: 2120 MHz
           4: 2389 MHz
Graphics:  Card: Intel 4th Gen Core Processor Integrated Graphics Controller
           Display Server: x11 (X.Org 1.20.1 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.00hz
           OpenGL: renderer: Mesa DRI Intel Haswell Mobile version: 4.5 Mesa 18.2.8
Audio:     Card-1 Intel 8 Series/C220 Series High Def. Audio Controller
           driver: snd_hda_intel
           Card-2 Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.18.0-21-generic
Network:   Card-1: Intel Ethernet Connection I217-LM driver: e1000e
           IF: enp0s25 state: down mac: <filter>
           Card-2: Intel Wireless 7260 driver: iwlwifi
           IF: wlp3s0 state: up mac: <filter>
Drives:    HDD Total Size: 500.1GB (2.7% used)
           ID-1: /dev/sda model: CT500MX500SSD1 size: 500.1GB
Partition: ID-1: / size: 217G used: 13G (7%) fs: ext4 dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 48.0C mobo: N/A
           Fan Speeds (in rpm): cpu: 0
Info:      Processes: 201 Uptime: 1:04 Memory: 904.3/7855.0MB
           Client: Shell (bash) inxi: 2.3.56
grant@Grants-Thinkpad ~ $


Any help or advice would be much appreciated


Graeme

 
Title: Re: Virtualbox woes
Post by: PCNetSpec on June 10, 2019, 03:24:27 pm
How did you install virtualbox ?

and what's the output from:
Code: [Select]
dpkg -l | grep virtualbox
Title: Re: Virtualbox woes
Post by: emegra on June 10, 2019, 03:42:51 pm
Quote
How did you install virtualbox ?
I installed it from Synaptic when it failed the first time I uninstalled it and installed V6 from the Virtualbox website but that failed as well with a different but similiar issue (I can't remember exactly) so I'm back to the synaptic version



Code: [Select]
grant@Grants-Thinkpad ~ $ dpkg -l | grep virtualbox
ii  virtualbox-5.2                         5.2.30-130521~Ubuntu~bionic                     amd64        Oracle VM VirtualBox
rc  virtualbox-6.0                         6.0.8-130520~Ubuntu~bionic                      amd64        Oracle VM VirtualBox
rc  virtualbox-ext-pack                    5.2.18-1~ubuntu18.04.1                          all          extra capabilities for VirtualBox, downloader.
ii  virtualbox-guest-source-hwe            5.2.18-dfsg-3~ubuntu18.04.3                     all          x86 virtualization solution - guest addition module source
ii  virtualbox-guest-utils-hwe             5.2.18-dfsg-3~ubuntu18.04.3                     amd64        x86 virtualization solution - non-X11 guest utilities
ii  virtualbox-guest-x11-hwe               5.2.18-dfsg-3~ubuntu18.04.3                     amd64        x86 virtualization solution - X11 guest utilities
rc  virtualbox-qt                          5.2.18-dfsg-2~ubuntu18.04.5                     amd64        x86 virtualization solution - Qt based user interface
grant@Grants-Thinkpad ~ $



Graeme
Title: Re: Virtualbox woes
Post by: PCNetSpec on June 10, 2019, 03:55:33 pm
Okay let's try this, run:
Code: [Select]
sudo apt-get remove --purge virtualbox*
then
Code: [Select]
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
then
Code: [Select]
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
then
Code: [Select]
gksudo xed /etc/apt/sources.list
when a file with a load if stuff already in it opens, add these 3 lines at the bottom
Code: [Select]
## Virtualbox [BEGIN]
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bionic contrib
## Virtualbox [END]
SAVE the file and exit the text editor

Back in the terminal run:
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get install virtualbox-6.0
any errors so far ?
Title: Re: Virtualbox woes
Post by: emegra on June 10, 2019, 04:12:06 pm
any errors so far ?

It installed fine but when I try to install Win 7 I get the following error

Quote
Failed to open a session for the virtual machine Windows 7.

The virtual machine 'Windows 7' has terminated unexpectedly during startup with exit code 1 (0x1).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {5047460a-265d-4538-b23e-ddba5fb84976}


Graeme

Title: Re: Virtualbox woes
Post by: PCNetSpec on June 10, 2019, 04:27:32 pm
Was this a pre-existing vm ?

And have you installed the extension pack from the virtual box website yet ?

Sent from my SM-N960F using Tapatalk

Title: Re: Virtualbox woes
Post by: emegra on June 10, 2019, 04:44:34 pm
Quote
Was this a pre-existing vm ?

Yes it was from a previous failed attempt, the configuration was obviously still there after I uninstalled VB
Quote

And have you installed the extension pack from the virtual box website yet ?

No, I did install it from Synaptic when I first installed VB but I uninstalled everything since then and so Far I haven't reinstalled it yet


Graeme
Title: Re: Virtualbox woes
Post by: emegra on June 10, 2019, 05:04:25 pm
I should have pointed out I'm also getting this message as well as the last one I posted
Quote

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing

'/sbin/vboxconfig'

as root.

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.


Graeme
Title: Re: Virtualbox woes
Post by: PCNetSpec on June 10, 2019, 05:05:46 pm
Go here:
https://www.virtualbox.org/wiki/Downloads

and click the blue writing "All supported platforms" under the heading

VirtualBox 6.0.8 Oracle VM VirtualBox Extension Pack

Download the file, then double-click it to install.

Will your Windows VM launch now ?
Title: Re: Virtualbox woes
Post by: PCNetSpec on June 10, 2019, 05:11:37 pm
Also what is returned if you run:
Code: [Select]
lsmod | grep vbox
and
Code: [Select]
sudo modprobe vboxdrv
Title: Re: Virtualbox woes
Post by: emegra on June 11, 2019, 12:22:33 am
Quote
Go here:
https://www.virtualbox.org/wiki/Downloads

and click the blue writing "All supported platforms" under the heading

VirtualBox 6.0.8 Oracle VM VirtualBox Extension Pack

Download the file, then double-click it to install.

Will your Windows VM launch now ?

Sadly no I'm still getting the same issue there are 2 error messages show up

(1)
Quote
Failed to open a session for the virtual machine Windows7.

The virtual machine 'Windows7' has terminated unexpectedly during startup with exit code 1 (0x1).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {5047460a-265d-4538-b23e-ddba5fb84976}

(2)

Quote
Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing

'/sbin/vboxconfig'

as root.

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

Quote
Also what is returned if you run:

Code: [Select]
grant@Grants-Thinkpad ~ $ lsmod | grep vbox
grant@Grants-Thinkpad ~ $

grant@Grants-Thinkpad ~ $ sudo modprobe vboxdrv
[sudo] password for grant:
modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted
grant@Grants-Thinkpad ~ $



Graeme






Title: Re: Virtualbox woes
Post by: PCNetSpec on June 11, 2019, 05:39:18 am
Okay, looks like you're gonna need to disable secureboot in the bios, then run vboxconfig.

Sent from my SM-N960F using Tapatalk

Title: Re: Virtualbox woes
Post by: emegra on June 11, 2019, 06:39:40 am
Quote
Okay, looks like you're gonna need to disable secureboot in the bios, then run vboxconfig.

Ok well I can do with a help with that, this is only the 2nd UEFI PC/laptop I've had anything to do with so I'm a bit in the dark here  :-[



Graeme
Title: Re: Virtualbox woes
Post by: PCNetSpec on June 11, 2019, 09:23:34 am
Okay if this is the same as the T470p or T440s...

Turn on the PC and immediately hit the F1 key to enter the BIOS

Select the "Security" tab/section

(https://i.imgur.com/CoMyPsM.jpg)

Set:-

Secure Boot: Disabled

SAVE and exit the BIOS by hitting F10.

Boot into Peppermint.

Try running
Code: [Select]
sudo /sbin/vboxconfig
Title: Re: Virtualbox woes
Post by: alynur on June 11, 2019, 10:02:58 am
Hi emegra, a short while ago I was having problems because I didn't know how to activate virtual acceleration or something like that in the bios. After finally figuring that out with help from you know who, I was still getting the same error and I purged vb and reinstalled a couple of times. But I noticed that the VirtualBox VMS folder was still there in my home folder even after purging. So I deleted that and then reinstalled VB and it all worked.
Title: Re: Virtualbox woes
Post by: emegra on June 12, 2019, 01:10:00 am
That sorted it, after disabling secure boot jt started to run the installation fine, I did run into another error but following alynurs advice of removing ~/Virtualbox VMs and restarting the installation again sorted it, so all's well that ends well



Thanks guys



Graeme
Title: Re: Virtualbox woes (SOLVED)
Post by: PCNetSpec on June 12, 2019, 07:00:45 am
Great news :)