Tuesday, March 26, 2013

Network Access in OmniOS on VMWare


So I installed and rebooted and had no network. WAT? I was utterly clueless initially but quickly found some great clues here.

Here were the steps to having usable network access:

  • Configure VMWare to use Bridged networking.
    # dladm show-link -o link (displayed e1000g0)
    # ipadm create-if e1000g0
    # ipadm create-addr -T dhcp e1000g0/v4
        
  • Edit /etc/nsswitch.conf and add dns to the end of a couple of lines so that you end up with
    hosts:      files dns
    ipnodes:    files dns
    
  • Edit /etc/resolv.conf and configure it from scratch so that it looks something like
    domain example.com
    nameserver 111.111.111.111
    nameserver 111.111.111.112
    
    (using values that work for your machine, of course; grab these from resolv.conf on Linux or from the output of ipconfig /all on Windows if you don't know what to use)

I don't have hints for picking up the DNS information automatically from DHCP. Do you? (Please leave a comment.)

1 comment:

Alan Chalmers said...

You need to use eventhook check out https://blogs.oracle.com/darren/entry/dhcp_eventhook , with some heavy modes I got this to work on OmniOS