Modify VM description via vboxmanage

This is for discussing general topics about how to use VirtualBox.
Post Reply
Wasa
Posts: 2
Joined: 24. May 2016, 15:49

Modify VM description via vboxmanage

Post 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?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Modify VM description via vboxmanage

Post by Perryg »

Is there a way to change description via vboxmanage?
Not while it is running.
Wasa
Posts: 2
Joined: 24. May 2016, 15:49

Re: Modify VM description via vboxmanage

Post by Wasa »

Is there any other API I can use to change VM description while VM is running?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Modify VM description via vboxmanage

Post 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
Post Reply