[OmniOS-discuss] how to: networking with zones in Omnios running as Virtualbox guest

Geoff Nordli geoffn at gnaa.net
Sat Mar 3 20:44:38 UTC 2018


Hi.

I use Linux as my desktop and run Virtualbox as the hypervisor.

I started playing with lxzones.   First, I couldn't login to the Ubuntu 
native container.  I set the root password and then logged in via the 
console.  Then I couldn't get the zone to connect to the outside world.  
I noticed there were some people having the same problem on ESX.

When I would do a network sniff on the virtualbox host OS, I could see 
the arp requests leaving the zone and the reply back.

1 0.000000000 02:08:20:db:c2:c4 → ff:ff:ff:ff:ff:ff ARP 60 Who has 
192.168.0.1? Tell 192.168.0.51
2 0.000024439 02:08:20:db:c2:c4 → ff:ff:ff:ff:ff:ff ARP 60 Who has 
192.168.0.1? Tell 192.168.0.51
3 0.000547144 1c:ab:c0:b1:cc:a2 → 02:08:20:db:c2:c4 ARP 60 192.168.0.1 
is at 1c:ab:c0:b1:cc:a2

The problem was the arp request would never get back to the zone.

To fix the problem:

Set promiscuous mode set to "allow all" on the guest network adapter

On the omnios guest OS, create a bridge and add your guest OS nic to the 
bridge.

dladm create-bridge vboxbridge

Add the guest OS nic to the bridge.

dladm add-bridge -l e1000g0 vboxbridge


I pulled some of the information from this post: 
https://forums.virtualbox.org/viewtopic.php?t=52428

They created an etherstub, but I didn't have to get it to work.

Geoff


More information about the OmniOS-discuss mailing list