VirtualBox

Ticket #16888 (closed defect: invalid)

Opened 5 years ago

Last modified 5 years ago

--cableconnected1 on/off fails when VM is running

Reported by: ludodude Owned by:
Component: network Version: VirtualBox 5.1.22
Keywords: Cc:
Guest type: Linux Host type: Windows

Description

I can't seem to disconnect a network cable with vboxmanage when the VM is running, even though I can do it from the GUI.

This is what I get:

C:>vboxmanage modifyvm centos1 --cableconnected1 off
VBoxManage.exe: error: The machine 'centos1' is already locked for a session (or being unlocked)
VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 507 of file VBoxManageModifyVM.cpp

I am running Version 5.1.23 r116680 (Qt5.6.2)

Change History

comment:1 Changed 5 years ago by vushakov

  • Status changed from new to closed
  • Resolution set to invalid

When the VM is running you need to use controlvm command.

vboxmanage controlvm centos1 setlinkstate1 off
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use