• SOLVED Virtualbox modules reload problem


    @“MaNNa”:qzr0pf9g said:

    Edit your /etc/modules-load.d/modules.conf file, and put these in:

    vboxdrv
    vboxnetflt
    vboxnetadp
    vboxpci

    That should do it for you…

    Ref: [url:qzr0pf9g]https://wiki.archlinux.org/index.php/VirtualBox#Load_the_VirtualBox_kernel_modules[/url:qzr0pf9g][/quote:qzr0pf9g]

    I have already this file and content.

    Cheers
    freecaster

  • Hi,

    Systemd is saying that systemd-modules-load loaded successfully, so it should parse your conf files in /etc/modules-load.d
    but it’s not loading vboxdrv module.

    Check what I get in my computer:

    systemd-modules-load.service - Load Kernel Modules  
    Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)  
    Active: active (exited) since dc 2014-03-26 17:20:36 CET; 25min ago  
    Docs: man:systemd-modules-load.service(8)  
    man:modules-load.d(5)  
    Process: 131 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=0/SUCCESS)  
    Main PID: 131 (code=exited, status=0/SUCCESS)  
    CGroup: /system.slice/systemd-modules-load.service  
      
    mar 26 17:20:36 winterfell systemd-modules-load[131]: Inserted module 'vboxdrv'  
    mar 26 17:20:36 winterfell systemd-modules-load[131]: Inserted module 'vboxnet...  
    mar 26 17:20:36 winterfell systemd-modules-load[131]: Inserted module 'vboxnet...  
    mar 26 17:20:36 winterfell systemd[1]: Started Load Kernel Modules.  
    Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.  
    Hint: Some lines were ellipsized, use -l to show in full.  
    
    

    See those “inserted module xxx” lines? It seems to me that in your case it’s not even trying

    Check /etc/modules.load-d/virtualbox.conf file permissions:

    -rw-r--r-- 1 root root 39 25 mar 21:29 virtualbox.conf
    

    Also, leave a blank line at the end of the virtualbox.conf file (just in case, some parsers have problems with files without an ending blank line)

    @MaNNa:

    You should read all the messages first…

  • Check /etc/modules.load-d/virtualbox.conf file permissions:

    -rw-r--r-- 1 root root 39 25 mar 21:29 virtualbox.conf
    

    Also, leave a blank line at the end of the virtualbox.conf file (just in case, some parsers have problems with files without an ending blank line)

    What do you mean with this command? I’ve tried it in console, does not work…,maybe I am just stupid for arch linux

  • Sorry again

    Write this:

    ls -la /etc/modules-load.d/virtualbox.conf
    

    and compare it with what I posted. It’s just to see if permissions are ok.

    Also, remember to add a blank line at the end of this file.

    Cheers!

  • @“karasu”:2op2qjaf said:

    Sorry again

    Write this:

    ls -la /etc/modules-load.d/virtualbox.conf
    

    and compare it with what I posted. It’s just to see if permissions are ok.

    Also, remember to add a blank line at the end of this file.

    Cheers![/quote:2op2qjaf]

    Have added a blank line at the end of file.

    Than tried your command with this result:

      
    > [root @ frecaster /] \# ls-la / etc / modules-load.d / virtualbox.conf  
    > File not found or directory ls: Access to / etc / modules-load.d / virtualbox.conf not possible  
    > [root @ frecaster /] \#
    

    But the command [b:2op2qjaf]cd /etc/modules-load.d/[/b:2op2qjaf] shows:

      
    > [[email protected] /]\# cd /etc/modules-load.d/  
    > [[email protected] modules-load.d]\# ls  
    > virtualbox.conf   
    > [[email protected] modules-load.d]\#   
    > 
    

    There is somewhere next problem…

    Cheers
    freecaster

  • Hi,

    Please, be careful with white spaces!

    ls-la / etc / modules-load.d / virtualbox.conf
    

    is not the same as

    ls -la /etc/modules-load.d/virtualbox.conf
    
  • [quote:n8q4gszk]@MaNNa:

    You should read all the messages first…

    Yes, I see that now, Gustau. I was certainly in too big a rush to run out the door when I wrote that, sorry…

  • @“karasu”:ucpa4s3s said:

    Hi,

    Please, be careful with white spaces!

    ls-la / etc / modules-load.d / virtualbox.conf
    

    is not the same as

    ls -la /etc/modules-load.d/virtualbox.conf
    

    Hi karasu,

    this time I was careful with space button:

    [[email protected] freecaster]\# ls -la /etc/modules-load.d/virtualbox.conf  
    > ls: Zugriff auf /etc/modules-load.d/virtualbox.conf nicht möglich: Datei oder Verzeichnis nicht gefunden  
    > [[email protected] freecaster]\#   
    > 
    

    But I got the error again

    Cheers
    freecaster

  • @Freecaster: WHen using ls to list a directory, the file path should end with a directory like this:

    ls -la /etc/modules-load.d/
    

    Cheers!

  • Hi,

    @lots0logs: We wanted to ls the file, so ls -la /etc/modules-load.d/virtualbox.conf is ok

    @freecaster: mmmm… it says that it can’t find the path… so you don’t have the virtualbox.conf file there! ¿?¿?
    I know that if you cd to the directory the file is there… I don’t understand what’s happening.

    Try this (as root):

    echo "vboxdrv" \> /etc/modules-load.d/virtualbox.conf  
    echo " " \>\> /etc/modules-load.d/virtualbox.conf
    

    (there’s a blank space between " " in the second command. Also notice that first command uses just one > and the second one uses two >>)

    And then retry the ls command (and post results here):

    ls -la /etc/modules-load.d/virtualbox.conf
    

    Cheers!

  • @karasu

    I have typed the 3 commands into my lxterminal (I love it, it’s light and fast <3

    [[email protected] freecaster]\# echo "vboxdrv" \> /etc/modules-load.d/virtualbox.conf  
    [[email protected] freecaster]\# echo " " \>\> /etc/modules-load.d/virtualbox.conf  
    [[email protected] freecaster]\# ls -la /etc/modules-load.d/virtualbox.conf  
    -rw-r--r-- 1 root root 10 27\. Mär 19:14 /etc/modules-load.d/virtualbox.conf  
    [[email protected] freecaster]\# 
    

    It looks good, or not?

    Cheers
    freecaster

  • Yes, it looks good.

    I presume it’s not working… is it?

    I’m without ideas… maybe somebody else can help.

    Cheers!

  • @“karasu”:1ptfge0g said:

    Yes, it looks good.

    I presume it’s not working… is it?

    I’m without ideas… maybe somebody else can help.

    Cheers![/quote:1ptfge0g]

    I can’t believe it! It works without extra [b:1ptfge0g]“modprobe vboxdrv”[/b:1ptfge0g] command in console…

    Thank you karasu, you’re good!

  • I’m glad we solved it!

    Cheers!

Posts 34Views 11972
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.