[vbox-dev] Activate IHostNetworkInterface via API
klaus.espenlaub at oracle.com
Thu Mar 19 18:20:47 UTC 2015
On 18.03.2015 14:06, Anna Fischer wrote:
> Hi, I'm looking for a way to activate an already installed and configured host-only network interface through the API. When the IHostNetworkInterface.status shows "Down", is there a way to use the API, to set it back to up?
> Normally when I install a VM, its host-only network interface is up immediately and configured with an IP. However, when I reboot the system, the interface is down and un-configured. When I start the VM, the interface is configured properly automatically, and then shows as "up". But I would like to understand if there is a way to manually set the interface back to up without having to set its IP address again (it is already configured and the IP shows under "VBoxManage list hostonlyifs").
Which host OS? Normally there's no need to do this, as interfaces
shouldn't be disabled randomly... it's to my knowledge not easily
possible without annoying (and disruptive) approaches like deleting the
host-only interface and recreating it with the same settings.
> Thanks, Anna
More information about the vbox-dev