Issue: Failed to create the host-only network interface

Discussions related to using VirtualBox on Linux hosts.

Issue: Failed to create the host-only network interface

Postby Borhanx » 22. Feb 2013, 16:32

Hi All ,

I've big problem with Virtualbox 4.2
I'm using ubuntu 12.10 , 64bit.
and I installed virtualbox 4.2 with this exactly steps:
http://www.n00bsonubuntu.net/content/ho ... ntu-12-10/
(I did this steps extactly)

Then when I opened Virtualbox -> File -> Prefrences > Network > add host-only network (lns)

I got this error message:
Failed to create the host-only network interface
VBoxNetAdctl: Error while adding new interface: failed to open
/dev/vboxnetctl: No such file or directory

( I attached error message picture in the topic)

when i type this command:
Code: Select all   Expand viewCollapse view
borhan@ubuntu:~$ cd /dev/vboxnetctl/
bash: cd: /dev/vboxnetctl/: No such file or directory

(so the vboxnetctl directory doesn't exsist !)

How can I fix this problem ?
Attachments
vbox_screenshot2.jpg
vbox_screenshot2.jpg (76.27 KiB) Viewed 11554 times
Last edited by Borhanx on 22. Feb 2013, 16:59, edited 1 time in total.
Borhanx
 
Posts: 9
Joined: 20. Feb 2013, 16:31

Re: Issue: Failed to create the host-only network interface

Postby Perryg » 22. Feb 2013, 16:53

Couple of things that you need to do.

1) add your user name to the vboxusers group.
In a host terminal run this:
    Code: Select all   Expand viewCollapse view
    sudo usermod -aG vboxusers <your username>

    Replace <your username> with the name you use to log in. Type your user password when prompted.
    Be sure to log off and back in to finalize the change in permissions

2) instead of logging off reboot the host and see if you still have this issue.
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Issue: Failed to create the host-only network interface

Postby Borhanx » 22. Feb 2013, 17:06

I did what u said , exactly.
and I made reboot

then I still have the same problem when I trying to create host-only network adapter.

the problem is he can't find the directory !

after ur command line
i did this, is the result normal ?
borhan@ubuntu:~$ id
uid=1000(borhan) gid=1000(borhan) groups=1000(borhan),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),107(lpadmin),124(sambashare),125(winbindd_priv)
Last edited by Borhanx on 22. Feb 2013, 17:18, edited 1 time in total.
Borhanx
 
Posts: 9
Joined: 20. Feb 2013, 16:31

Re: Issue: Failed to create the host-only network interface

Postby Perryg » 22. Feb 2013, 17:16

Open a terminal on the host and post the results of the following:
Code: Select all   Expand viewCollapse view
VBoxManage -v
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Issue: Failed to create the host-only network interface

Postby Borhanx » 22. Feb 2013, 17:19

Done.
Code: Select all   Expand viewCollapse view
root@ubuntu:/dev# VBoxManage -v
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (3.5.0-25-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/init.d/vboxdrv setup

         You will not be able to start VMs until this problem is fixed.
4.2.6r82870
root@ubuntu:/dev#
Borhanx
 
Posts: 9
Joined: 20. Feb 2013, 16:31

Re: Issue: Failed to create the host-only network interface

Postby Perryg » 22. Feb 2013, 17:26

Why are you in root?
Do this with the normal user that installed VirtualBox and try again.
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Issue: Failed to create the host-only network interface

Postby Borhanx » 22. Feb 2013, 17:27

Sorry, i did it now.
Code: Select all   Expand viewCollapse view
borhan@ubuntu:/dev$ VBoxManage -v
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (3.5.0-25-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/init.d/vboxdrv setup

         You will not be able to start VMs until this problem is fixed.
4.2.6r82870
borhan@ubuntu:/dev$

Borhanx
 
Posts: 9
Joined: 20. Feb 2013, 16:31

Re: Issue: Failed to create the host-only network interface

Postby Perryg » 22. Feb 2013, 17:35

Well the results are the same and it indicates that VirtualBox is not installed properly.

When installing did you see any errors?

Post the /var/log/vbox-install.log (as an attachment)
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Issue: Failed to create the host-only network interface

Postby Borhanx » 22. Feb 2013, 17:43

this is log
Code: Select all   Expand viewCollapse view
Uninstalling modules from DKMS
  removing old DKMS module vboxhost version  4.2.6

------------------------------
Deleting module version: 4.2.6
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/4.2.6/source ->
                 /usr/src/vboxhost-4.2.6

DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Borhanx
 
Posts: 9
Joined: 20. Feb 2013, 16:31

Re: Issue: Failed to create the host-only network interface

Postby Perryg » 22. Feb 2013, 17:52

The log is telling you what your problem is.

You need to install the headers to match you running kernel.
Then run /etc/init.d/vboxdrv setup
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Issue: Failed to create the host-only network interface

Postby Borhanx » 22. Feb 2013, 17:54

Finally, i fix the problem by this command
http://askubuntu.com/questions/218320/v ... ox-upgrade

the problem was in kernel headers

and i tried to create host-only network adapter, and it's successful created.


thanks too much dear Perryg .
appreciate your efforts.
Borhanx
 
Posts: 9
Joined: 20. Feb 2013, 16:31


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 16 guests