You are not logged in.

#1 2017-06-01 23:17:05

juanp_1982
Member
From: Ottawa, Ontario, Canada
Registered: 2012-09-02
Posts: 69

What kernel modules do I need to get internet in a Virtualbox VM

hello
I have 4 VM (Red Hat 7, CentOS7, CentOS6, SUSE 12) I don't exactly what the problem is, but when I use the arch default kernel  default all my VM detect and configure internet access automatically but when I use my custom kernel custom those VM don't have internet access. I have tried to match all "NET" options in my custom kernel but still have this problem. On the other hand I updated the default kernel and my vms works just fine. I put together a comparison file comparison the first half is the arch default config file and the second half is the custom config file

so I was wondering if anyone can help me to figure this out

thanks for your help! :-)

Offline

#2 2017-06-01 23:45:00

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,893

Re: What kernel modules do I need to get internet in a Virtualbox VM

Before delving into kernel config, a question :

Have you created a virtualbox-host-modules-arch equivalent for your kernel ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2017-06-02 01:33:38

juanp_1982
Member
From: Ottawa, Ontario, Canada
Registered: 2012-09-02
Posts: 69

Re: What kernel modules do I need to get internet in a Virtualbox VM

Lone_Wolf thanks for your reply! yes I did,

first I remove all modules

dkms remove vboxhost/5.1.22_OSE -k 4.11.3-ichigo

then I re-create them

dkms install vboxhost/5.1.22_OSE -k 4.11.3-ichigo

then I re-sign all kernel modules

for module in `ls /lib/modules/$(uname -r)/kernel/misc/{vboxdrv.ko,vboxnetadp.ko,vboxnetflt.ko,vboxpci.ko}` ; do ./scripts/sign-file sha1 certs/signing_key.pem certs/signing_key.x509 $module ; done

and last load virtualbox modules

systemctl start systemd-modules-load.service

I did all that as root

Offline

#4 2017-06-03 13:27:12

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,893

Re: What kernel modules do I need to get internet in a Virtualbox VM

for clarity : usr/lib/modules-load.d/virtualbox-host-dkms.conf is present on your system ?


You have made a lot of changes to the kernel config .

Almost everything that has to do with AMD is not set or disabled, other changes look like they're intended to make this a realtime kernel , many i have no idea of why they are changed.


I'm far from a kernel wizard, but i do know that most people that want  a kernel tailored to a specific cpu brand or model use compiler options for that,
not the kernel configuration .
The -march option for example can have a very big impact on performance.



I do think you'll have troubleshoot this by changing settings incrementally .

example :
start with stock kernel config,
disable only amd related options
Does virtualbox still work ?
if yes, continue with other changes.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2017-06-03 20:37:35

juanp_1982
Member
From: Ottawa, Ontario, Canada
Registered: 2012-09-02
Posts: 69

Re: What kernel modules do I need to get internet in a Virtualbox VM

Hi Lone_Wolf, thanks again for your reply!

Lone_Wolf wrote:

for clarity : usr/lib/modules-load.d/virtualbox-host-dkms.conf is present on your system ?

Yes, I do have that file

Lone_Wolf wrote:

i do know that most people that want  a kernel tailored to a specific cpu brand or model use compiler options for that,
not the kernel configuration .
The -march option for example can have a very big impact on performance.

could you elaborate more about this option? Please I'm very interested in improving my laptop performance :-)

Offline

#6 2017-06-05 11:06:28

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,893

Re: What kernel modules do I need to get internet in a Virtualbox VM

Well, very big impact is an overstatement. Depending on application / hardware the difference can be big enough to be noticeable though.

Start herein arch wiki.

The 2 gentoo pages mentioned there [1] give more details .

P.S. don't forget to check the performance page in the wiki.


[1]
https://wiki.gentoo.org/wiki/GCC_optimization
https://wiki.gentoo.org/wiki/Safe_CFLAGS


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB