VirtualBox setup

Discussion for all VM - Installing, Software, Problems

Moderator: Moderators

Post Reply
msdobrescu
Old Dear Hen
Posts: 706
Joined: Sun Aug 21, 2011 8:48

VirtualBox setup

Post by msdobrescu » Thu Mar 28, 2019 10:49

Hello,

I've read here:
Autoload modules on boot

With systemd

On new installs systemd is default init system.

Create a file with extension *.conf in directory /etc/modules-load.d/, e.g. virtualbox.conf. In this file write what modules should be loaded.

File content:

Code: Select all

 vboxdrv
 vboxnetadp
 vboxnetflt
What is this for, what do I lose to miss this configuration or what do I gain with it?

Thank you.

User avatar
albfneto
Sagely Hen
Posts: 1892
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil
Contact:

Re: VirtualBox setup

Post by albfneto » Mon Apr 01, 2019 17:53

I used VirtualBox only few times, but i have in mind that these are Kernel Modules, they seems to me mandatory.
The configuration files may be only to force the modules to be loaded.
ALBERTO FEDERMAN NETO
albfneto
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE

msdobrescu
Old Dear Hen
Posts: 706
Joined: Sun Aug 21, 2011 8:48

Re: VirtualBox setup

Post by msdobrescu » Mon Apr 01, 2019 18:07

I don't see any difference with or without that setting.

User avatar
sabayonino
Sagely Hen
Posts: 3342
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: VirtualBox setup

Post by sabayonino » Mon Apr 01, 2019 18:29

Maybe you need the virtualbox running kernel modules

Code: Select all

# equo i virtualbox-modules#$(uname -r) -a
Be sure your user is part of vboxusers member

Code: Select all

# gpasswd -a <your user> vboxusers
reboot to load the modules.

msdobrescu
Old Dear Hen
Posts: 706
Joined: Sun Aug 21, 2011 8:48

Re: VirtualBox setup

Post by msdobrescu » Mon Apr 01, 2019 20:20

These are already installed and set.
I did not say it does not work.
I say there is no difference with or without the configuration file in /etc/modules-load.d, or I don't see it, hence I ask what is the purpose of that.

User avatar
sabayonino
Sagely Hen
Posts: 3342
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: VirtualBox setup

Post by sabayonino » Mon Apr 01, 2019 20:38

Does systemd-modules-load service loaded ?

Code: Select all

$ systemctl status systemd-modules-load
?

if not , start the service

Code: Select all

# systemctl start systemd-modules-load
and add the service at boot

Code: Select all

systemctl enable  systemd-modules-load

msdobrescu
Old Dear Hen
Posts: 706
Joined: Sun Aug 21, 2011 8:48

Re: VirtualBox setup

Post by msdobrescu » Mon Apr 01, 2019 21:37

It does.
Last edited by msdobrescu on Tue Apr 02, 2019 6:12, edited 1 time in total.

User avatar
sabayonino
Sagely Hen
Posts: 3342
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: VirtualBox setup

Post by sabayonino » Mon Apr 01, 2019 21:52

you can try to remove/ Virtualbox directory in your home (default : ~/.VirtualBox)

Backup its data contents before removing (or renaming)

msdobrescu
Old Dear Hen
Posts: 706
Joined: Sun Aug 21, 2011 8:48

Re: VirtualBox setup

Post by msdobrescu » Tue Apr 02, 2019 6:13

Yes, indeed, backing up it's a must whenever you tune something.
But I see no change.
What should I expect?

Post Reply