Bridged networking fails

Discussions related to using VirtualBox on Solaris hosts.

Bridged networking fails

Postby DickyBow » 6. Nov 2017, 16:08

Hi,

I'm trying to get bridged networking to work on my Solaris box. NAT is fine, but I get the following error starting up the VM with bridged networking:

Code: Select all   Expand viewCollapse view
$ VBoxManage startvm testing --type headless       
Waiting for VM "testing" to power on...
VBoxManage: error: Nonexistent host networking interface, name 'net1' (VERR_INTERNAL_ERROR)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole


This is Solaris 5.11.3 x86_64 running VirtualBox-5.2.0-SunOS-amd64-r118431.pkg with extension pack Oracle_VM_VirtualBox_Extension_Pack-5.2.0-118431.vbox-extpack and an Ubuntu guest.

Here's the command I tried to enable bridged networking:

Code: Select all   Expand viewCollapse view
$ VBoxManage modifyvm testing --nic1 bridged --bridgeadapter1 net1

Code: Select all   Expand viewCollapse view
$ dladm
LINK                CLASS     MTU    STATE    OVER
net1                phys      1500   up       --
net2                phys      9000   down     --
vboxnet0            phys      9706   up       --
vnic0               vnic      1500   up       net1


The same happens if I try to use vnic0

Can anyone help?

Thanks,

Richard
Last edited by DickyBow on 6. Nov 2017, 19:17, edited 1 time in total.
DickyBow
 
Posts: 3
Joined: 6. Nov 2017, 16:02

Re: Bridged networking fails

Postby DickyBow » 6. Nov 2017, 19:13

To answer my own question:

Code: Select all   Expand viewCollapse view
$ VBoxManage list bridgedifs | grep Name:
Name:            net1 - Ethernet
$
$ VBoxManage modifyvm testing --nic1 bridged --bridgeadapter1 "net1 - Ethernet"
$ vboxmanage startvm testing --type headless

Tada! I just hadn't realised that VirtualBox gave interfaces different (stupid) names.
DickyBow
 
Posts: 3
Joined: 6. Nov 2017, 16:02


Return to VirtualBox on Solaris Hosts

Who is online

Users browsing this forum: No registered users and 1 guest