Page 1 of 1

[Fixed] Error recording from CLI: "The machine is not mutable, saved or running" (#18723)

PostPosted: 21. Jun 2019, 18:26
by taszilo

ModEdit; related ticket: #18723: Error recording from CLI: "The machine is not mutable, saved or running"

Host: Win10 x64
Guest: Win10 x64
VirtualBox Version 6.0.8

VM is running in headless mode. I would like to start to record the display from command line. Earlier it was possible by executing this command:
Code: Select all   Expand viewCollapse view
VBoxManage controlvm <vm_name> videocap on

And when I wanted to stop the recording the following command was executed:
Code: Select all   Expand viewCollapse view
VBoxManage controlvm <vm_name> videocap off

If I know it well from VBox 6.0(?) this is the valid command for my purpose:
Code: Select all   Expand viewCollapse view
VBoxManage controlvm <vm_name> recording on

But now I got these error messages:
VBoxManage.exe: error: The machine is not mutable, saved or running (state is Running)
VBoxManage.exe: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), component MachineWrap, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "COMSETTER(Enabled)(TRUE)" at line 1879 of file VBoxManageControlVM.cpp

When the GUI of the VBox is used for starting/stopping records (Settings\Display\Recording\Enable Recording), the process is done well, but executing from Command Prompt is getting me stuck...

Does anyone have any idea? Is it an issue that I haven't realized in the reported bugs, or it is no more possible to start/stop recordings (from console) when the VM is running?

Re: Error recording from CLI: "The machine is not mutable, saved or running"

PostPosted: 21. Jun 2019, 23:20
by socratis
Confirmed on OSX 10.11.6 with a random (WinXP) VM. And I couldn't find anything in the Bugtracker, so I suggest you go ahead and file a new ticket.

Re: Error recording from CLI: "The machine is not mutable, saved or running"

PostPosted: 25. Jun 2019, 10:32
by taszilo
All right then a ticket was written by me:
https://www.virtualbox.org/ticket/18723

I hope something's gonna happen :)

Re: Error recording from CLI: "The machine is not mutable, saved or running" (#18723)

PostPosted: 25. Jun 2019, 18:33
by socratis
Thanks for the info. I updated the title, 1st post and added my experience to the ticket as well. I might ping a dev on IRC to see what they think...

Re: Error recording from CLI: "The machine is not mutable, saved or running" (#18723)

PostPosted: 26. Jun 2019, 17:06
by socratis
Moving to "Using VirtualBox" from "Windows guests" as this is a multi-host issue, not a Windows guest one.

Word has it that the problem has been identified and fixed. Will wait for the next test/dev. build to confirm the fix.

Re: Error recording from CLI: "The machine is not mutable, saved or running" (#18723)

PostPosted: 16. Jul 2019, 19:40
by socratis
Fixed with VirtualBox 6.0.10, please try it and confirm.