Karoline Haus
2014-07-23 14:34:05 UTC
Hi if I use VBoxManage I can disconnect a VM's virtual network cable using controlvm setlinkstate while the VM is running but I do not seem to be able to do that via the API/SDK. I don't seem to find the right commands to set. I tried to set cableConnected of INetworkAdapter but it does not allow me to change this while the VM is in running state. How can I unplug the cable via the API whilst the VM is running?
Basically I'm trying to simulate a network connection loss to the VM so that it then tries to obtain a new IP address via DHCP.
Thanks
Karoline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140723/5578020a/attachment.html
Basically I'm trying to simulate a network connection loss to the VM so that it then tries to obtain a new IP address via DHCP.
Thanks
Karoline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140723/5578020a/attachment.html