Page 1 of 1

Access VM with another user account

Posted: 13. Oct 2015, 15:32
by Ross__
I am facing an issue with VirtualBox on Windows 7.

I have VBOX_USER_HOME=C:\VirtualBox where VirtualBox.xml resides. My virual machines are located in C:\VM folder. Everything works perfect when run from Windows console.
VBoxManage list vms lists all machines, VBoxManage list runningvms lists running vms, VirtualBox Manager also shows evrth correct.

Now when I connect with the same user through Cygwin Ssh, I get strange behavior (USERPROFILE=C:\Users\{myusername} is set)

VBoxManage list vms lists all vms correctly
VBoxManage list runningvms DOES not list any running machines though they are.

If I stop my running vms from console or from VirtualBox manager locally, I then can use ssh connection to start Vms from there. An running vms show correct.

But then it stops detecting running state from the console.

So only the user who started the vm can see its state. The same user in another sesssion cannot see the machine is started. Is any way to solve this ?

Re: Access VM with another user account

Posted: 14. Oct 2015, 18:33
by socratis
Ross__ wrote:So only the user who started the vm can see its state. The same user in another session cannot see the machine is started.
Exactly! That's the idea behind the design of how VBox works.
Ross__ wrote:Is any way to solve this ?
Not unless you change the source code and recompile it yourself, AFAIK...