By default
Begin by stopping all running VMs. Then, unplumb the existing "vboxnet0" interface by execute the following command as root:
# ifconfig vboxnet0 unplumb
If you have several vboxnet interfaces, you will need to unplumb all of them. Once all vboxnet interfaces are unplumbed, remove the driver by executing the following command as root:
# rem_drv vboxnet
Edit the file
name="vboxnet" parent="pseudo" instance=1; name="vboxnet" parent="pseudo" instance=2;
Add as many of these lines as required with each line having a unique instance number.
Next, reload the vboxnet driver by executing the following command as root:
# add_drv vboxnet
On Oracle Solaris 11.1 and newer hosts you may want to rename the default vanity interface name. To check what name has been assigned, execute:
$ dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net0 Ethernet up 100 full e1000g0 net2 Ethernet up 1000 full vboxnet1 net1 Ethernet up 1000 full vboxnet0
In the above example, we can rename "net2" to "vboxnet1" before proceeding to plumb the interface. This can be done by executing as root:
# dladm rename-link net2 vboxnet1
Now plumb all the interfaces using
To make the settings for the newly added interfaces persistent
across reboots, you will need to edit the files