VMs unable to start

Discussions related to using VirtualBox on Linux hosts.
Locked
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

VMs unable to start

Post by satimis »

Host - Ubuntu 20.04 Desktop
VMs - Ubuntu and Windows

Just uninstall VirtualBox which was previously installed on Ubuntu repo and reinstalled it online.

VMs unable to start

Warning

Code: Select all

Please reinstall virtualbox-dkms package and load the kernel module by executing

'modprobe vboxdrv'
how to remove virturalbox installed on repo and install it onlin

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. 
$ su root
Password:
# /sbin/vboxconfig

Code: Select all

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.
Please help. Thanks

Regards
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VMs unable to start

Post by scottgus1 »

This is interesting:
Kernel driver not installed
Maybe the prerequisites need a re-run. https://www.virtualbox.org/manual/ch02. ... nux-prereq
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Re: VMs unable to start

Post by satimis »

Hi,

This is a very old PC built more than 10 years ago and resting on shelves sometimes.

Configuration:
CPU - AMD 8-cores
RAM - 8G
HDD - 1TB SSD for running OS, Ubuntu 18.04 and VirtualBox installed on Ubuntu repo.
HDD - WD 2TB for data storage.

2 weeks ago I took it down running it for software testing. I connected a 120G SSD for testing cPanel. The OS is CentOS 8. Now cPanel is running without problem with its Dashboard displayed. It is solely for testing NOT for production.

Later I added another old 500G SSD and installed CentOS 8 on it. CentOS is now also running without problem.

In view of having so much hassles on the running VirtualBox, I decide to reinstall Ubuntu 20.04 desktop and VirtualBox 6.1
ISO:-
ubuntu-20.04.2.0-desktop-amd64.iso
virtualbox-6.1_6.1.20-143896~Ubuntu~eoan_amd64.deb

Now both Ubunbu 20.04 and VirtualBox 6.1 are up running without problem. I haven't specifically installed Guest Additions.

Then I installed Ubuntu 20.04 VM. It also works without problem.

Night-mare came on CentOS 8. It can be installed and is now up running. But on reboot it drops back to 800x600 resolution. Copy-n-paste between Host and VM is NOT working as reported on my another posting.

Any advice? Otherwise I'll be compelled ceasing building CentOS 8 VM.

I'll test Webmin on CentOS and CentOS Web Panel, the alternatives of cPanel.

Thanks and Regards
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VMs unable to start

Post by scottgus1 »

One issue per thread, please. This topic seems to have jumped tracks in your last post. Do you still have the problem in the first post, or have you abandoned the problem?
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Re: VMs unable to start

Post by satimis »

scottgus1 wrote:One issue per thread, please. This topic seems to have jumped tracks in your last post. Do you still have the problem in the first post, or have you abandoned the problem?
Hi scottgus1,

Now the problem, unable to start VM, solved after installing VirtualBox on the ISO download from VirtualBox website.

Now I have following VMs installed
Ubuntu 20.04
CentOS 8
Win7
Win10 Home
Win10 Pro

All can be started but file-sharing and copy-n-paste between Host and VM not working

Shared Clipboard: Bidirectional
Drag'n'Drop: Bidirectioal
already selected.

I suppose that it is caused by Guest Addition not installed? Which ISO I have to download on VirtualBox website?

Regards
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VMs unable to start

Post by scottgus1 »

Great that your VMs are all running now!

****************
satimis wrote:file-sharing and copy-n-paste between Host and VM not working....I suppose that it is caused by Guest Addition not installed?
Correct, all those services require Guest Additions in the VMs.

****************
satimis wrote:Which ISO I have to download on VirtualBox website?
Per your other active topic: viewtopic.php?f=7&t=102641#p498593
scottgus1 wrote:Official Virtualbox from https://www.virtualbox.org/wiki/Linux_Downloads comes with Guest Additions built-in as an ISO and does not need a separate download.
Don't download the GAs ISO. Use the GAs ISO that is bundled with your official Virtualbox installation. See https://www.virtualbox.org/manual/ch04.html
satimis
Posts: 506
Joined: 12. Jun 2007, 03:41

Re: VMs unable to start

Post by satimis »

scottgus1 wrote: -snip-
Don't download the GAs ISO. Use the GAs ISO that is bundled with your official Virtualbox installation. See https://www.virtualbox.org/manual/ch04.html
On ComputerB

I installed VirttualBox on "virtualbox-6.1_6.1.20-143896~Ubuntu~eoan_amd64.deb" download on VirturalBox Website.

Not ISO

What shall I do?

Edit
====


Just found following document;
How to Install VirtualBox Guest Additions on CentOS 8
https://www.tecmint.com/install-virtual ... -centos-8/

Would it be so complicate?

Regards
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VMs unable to start

Post by scottgus1 »

satimis wrote:What shall I do?
satimis wrote:(re 3rd party tutorial) Would it be so complicate?
It appears you didn't see this, or decided to go elsewhere:
FWIW, installing Guest Additions on Linux VMs has given me some trouble too. Especially see https://www.virtualbox.org/manual/ch04. ... ions-linux and https://www.virtualbox.org/manual/ch02. ... nux-prereq
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VMs unable to start

Post by scottgus1 »

I am going to lock this topic, as the subject has faded to your other topic's subject: viewtopic.php?f=7&t=102641
Locked