Page 1 of 1

Bridged networking fails

Posted: 6. Nov 2017, 16:08
by DickyBow
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

$ 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

$ VBoxManage modifyvm testing --nic1 bridged --bridgeadapter1 net1

Code: Select all

$ 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

Re: Bridged networking fails

Posted: 6. Nov 2017, 19:13
by DickyBow
To answer my own question:

Code: Select all

$ 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.