No Host only adapter selected

I have a problem with my virtualbox on ubuntu 12.04, I can't add a host only adapter, the message is "no host only network adapter selected" I can't select anything

enter image description here

can anyone solve this problem??


Solution 1:

Probably, the virtual host-only network wasn't set up yet. Here's is how you can fix this:

  1. From the main menu, select File > Preferences (Ctrl+G) - NOT the settings of a single vm
  2. Select Network in the list on the left
  3. You should see an empty white box with "Host-only Networks" at the top. On the right, there are three buttons to manage them. Click the topmost one (with a green plus symbol). A new Host-only network will be created and added to the list.

screenshoot

Normally, the settings of the new network will be ok, but for completeness, I give the default values here. You can access the settings for the host-only network through the screwdriver button on the right.

ss2

  • Adapter:
    • IPv4 address: 192.168.56.1
    • IPv4 Network Mask: 255.255.255.0
  • DHCP server:
    • Enable server: checked
    • Server Address: 192.168.56.100
    • Server Mask: 255.255.255.0
    • Lower Address Bound: 192.168.56.101
    • Upper Address Bound: 192.168.56.254

You can change these settings to your liking, as long as they're consistent.

Solution 2:

I installed virtual box recently and its different,

After Virtual Box is open, click on File>Host Network Manager>Add. This will add the 192.168.56.1/24 IP as shown above.

Now you can see vboxnet0 in the "Name" dropdown in the VM.

Solution 3:

For those, who are in trouble finding "Host-only Networks" tab in File->Preferences->Network.

After the version VirtualBox 5.2.0, there are some changes with the location of "Host-only Networks" tab.

This tool is moved on the main UI toolbar, specifically the Global Tools split button on the right.

Alternatively, you can access it via Ctrl+W, or File->Host Network Manager menu.

Source: https://forums.virtualbox.org/viewtopic.php?f=8&t=85464

Solution 4:

In 2020, a few changes.

  1. From the main menu select file

enter image description here

  1. Select Host Network Manager

enter image description here

  1. Select create

enter image description here

This would create the settings of the new network, check the "Enable DHCP Server". Now go back to network settings it should see the name of the newly created network when you select Host-only Adapter.