Page 1 of 1

Modify VM description via vboxmanage

Posted: 24. May 2016, 15:52
by Wasa
I want to modify VM description from vboxmanage. But it fails if VM is running at the time:

Code: Select all

vboxmanage.exe modifyvm myVM --description "new descr of myVM" 
vboxmanage.exe: error: The machine 'att9-1034-slave-5' 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 493 of file VBoxManageModifyVM.cpp
At the same time I can change VM description via virtualbox manager GUI.

I use Windows Host, VirtualBox 5.0.20.

Is there a way to change description via vboxmanage?

Re: Modify VM description via vboxmanage

Posted: 24. May 2016, 15:59
by Perryg
Is there a way to change description via vboxmanage?
Not while it is running.

Re: Modify VM description via vboxmanage

Posted: 31. May 2016, 13:49
by Wasa
Is there any other API I can use to change VM description while VM is running?

Re: Modify VM description via vboxmanage

Posted: 31. May 2016, 14:11
by Perryg
Not that I know of. One would think that since the GUI portion can change the description while running it should be able to do so with VBoxManage, but I have not found any way in the actual code. Of course I have not looked all that hard. The source is available Here if you want to investigate further, or you can ask the DEVs direct on irc://irc.freenode.org/vbox