Oracle VM VirtualBox: Ticket #9547: "VirtualBox modifyvm --cableconnect" failed on running VMhttps://www.virtualbox.org/ticket/9547
<p>
cableconnect option may be used on running VM in <a class="wiki" href="https://www.virtualbox.org/wiki/VirtualBox">VirtualBox</a> client and through the webservice .  But I tried from the command line and I get an error (Session is locked). 
</p>
en-usOracle VM VirtualBox/graphics/vbox_logo2_gradient.pnghttps://www.virtualbox.org/ticket/9547
Trac 0.12frankFri, 02 Sep 2011 09:57:27 GMTstatus changed; resolution sethttps://www.virtualbox.org/ticket/9547#comment:1
https://www.virtualbox.org/ticket/9547#comment:1
<ul>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>invalid</em>
</li>
</ul>
<p>
The command you are looking for is <em>VBoxManage controlvm VM_NAME setlinkstate1</em>.  <em>VBoxManage modifyvm</em> is to modify the configuration of a VM, <em>VBoxManage controlvm</em> is for doing runtime changes. 
</p>
Ticket