Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to setup a Hosts-only Adapter so I can connect to it. It says that invalid settings detected and the name: drop-down isn't populated. What am I doing wrong and how can I rectify it?

My Host is and my guest is .

enter image description here

share|improve this question
Why are you using Host only Adapter, it's primarily for communication between hosts, use NAT instead –  HackToHell May 27 '12 at 15:24
@HackToHell I'm using it so I can http into the guest OS. –  Kit Sunde May 27 '12 at 15:32
By http, you mean run a web server in the guest, NAS will work, Host Only is not neeeded –  HackToHell May 27 '12 at 15:33
@HackToHell I'd prefer not to do port forwarding and couple my local machine ports to the VM. I'd like to be able to access the VM on an IP I've assigned it, but not have to adapt to an external DHCP server. So I'm trying to go down this route: stackoverflow.com/a/2047646/29347 –  Kit Sunde May 27 '12 at 15:48
@HackToHell, Host Only is needed in a couple of scenarios which is why every VM provider offers it. This is not helpful input. –  Rob Osborne Aug 3 '12 at 15:18

2 Answers 2

up vote 33 down vote accepted

It seems like these adapters are added in Virtual Box -> preferences -> network.

enter image description here

share|improve this answer
wow that did the trick! +1! –  FLY Aug 3 '12 at 9:20
wow indeed, who writes user interfaces like this? –  Rob Osborne Aug 3 '12 at 15:13
wow somebody wants all vm to be accessible! that's why. –  CppLearner Mar 31 '13 at 5:15

In order to have bidirectional access please follow next steps ...

It's very important that after (Virtual Box -> Preferences -> Network -> vboxnet0) to configure your firewall.

  1. Allow routing (ip.forwarding)
  2. Allow NAT through fireall

OSX firewall sample

    # (I) Firewall config /etc/sysctl.conf
    sysctl -w net.inet.ip.forwarding=1 net.inet.ip.fw.enable=1
    sysctl -a net.inet.ip.forwarding net.inet.ip.fw.enable

    ipfw list
    ... shoud have ....

    # (II) Enable nat access to /etc/pf.conf
    #============add your host-only vlan =================
    # this commented lines doesn't work after computer reboot
    #nat on en0 from vboxnet0:network -> (en0)
    #nat on en3 from vboxnet0:network -> (en3)
    # this will work in any situation
    nat on en0 from to any -> (en0)
    nat on en3 from to any -> (en3)        

    # Reload pf
    pfctl -f /etc/pf.conf
    pfctl -e


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.