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
1  
@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
3  
@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
add comment

2 Answers

up vote 27 down vote accepted

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

enter image description here

share|improve this answer
1  
wow that did the trick! +1! –  FLY Aug 3 '12 at 9:20
6  
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
add comment

In order to have bidirectional access...

It's very important after (Virtual Box -> preferences -> network -> vboxnet0) to configure your firewall 1. Allow routing (ip.forwarding) 2. Allow NAT through fireall


OSX firewall sample

   # Firewall config
    cat /etc/sysctl.conf
    net.inet.ip.forwarding=1
    net.inet.ip.fw.enable=1

    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
    ipfw add fwd 127.0.0.1,20559 tcp from any to me dst-port 80 in"

    # Enable host-only access to internet
    /etc/pf.conf

    #=============================

    nat on en0 from vboxnet0:network -> (en0)
    nat on en3 from vboxnet0:network -> (en3)

    #==========================


    # After every reboot
    pfctl -f /etc/pf.conf
    pfctl -e

share|improve this answer
add comment

Your Answer

 
discard

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.