For those who came here looking for a solution to the same problem. As per my previous thoughts, the problem was really regarding to modifyvm command. To modify VM config, it has to be stopped. However, it is possible to change session config keeping VM config unchanged. The key is to use controlvm like bellow: VBoxManage controlvm "w10" vrde off Adm privilege isn't necessary. The official docs explain everything in details. Big shame on me for not reading it before! https://docs.oracle.com/en/v...
Hi, I am going thru the same problem you posted. I need to activate/deactivate vrde feature on running VMs, but when I run "VBOXManage modifyvm VM --vrde off" I get a session lock error (VBOX_E_INVALID_OBJECT_STATE). I also tried to start VM with VBoxHeadless --vrde config changing vrde config with above command, but I got the same result. I'm curious how PHPVirtualBox and VirtualBox Host GUI manage to switch vrde feature on/off for running VMs. As a desperate trial, I tried to pause VM to disable...