Issue: Failed to create the host-only network interface

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Borhanx
Posts: 9
Joined: 20. Feb 2013, 16:31

Issue: Failed to create the host-only network interface

Post by Borhanx »

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

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 15362 times
Last edited by Borhanx on 22. Feb 2013, 16:59, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
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

Post by Perryg »

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

    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.
Borhanx
Posts: 9
Joined: 20. Feb 2013, 16:31

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

Post by Borhanx »

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.
Perryg
Site Moderator
Posts: 34369
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

Post by Perryg »

Open a terminal on the host and post the results of the following:

Code: Select all

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

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

Post by Borhanx »

Done.

Code: Select all

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# 
Perryg
Site Moderator
Posts: 34369
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

Post by Perryg »

Why are you in root?
Do this with the normal user that installed VirtualBox and try again.
Borhanx
Posts: 9
Joined: 20. Feb 2013, 16:31

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

Post by Borhanx »

Sorry, i did it now.

Code: Select all

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$ 

Perryg
Site Moderator
Posts: 34369
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

Post by Perryg »

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)
Borhanx
Posts: 9
Joined: 20. Feb 2013, 16:31

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

Post by Borhanx »

this is log

Code: Select all

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.
Perryg
Site Moderator
Posts: 34369
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

Post by Perryg »

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
Borhanx
Posts: 9
Joined: 20. Feb 2013, 16:31

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

Post by Borhanx »

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.
Post Reply