using VBoxManage in an SSH session
Posted: 20. Oct 2010, 20:16
I'm using Bitvise WinSSHD on my Windows XP box. I can issue VboxManage commands from the SSH sessions. However, the view of the VMs is not consistant with what I see locally. VBoxManage list vms shows a consistent list, but VBoxManage list runningvms only shows the VMs started in same environment: if I started the VM locally, I see it locally but not in the SSH session; if I started the VM in an SSH session, I see it in the SSH session, but not locally. For some reason, VBoxManage always looks in the following directories for Machines and HardDisks (according to VBoxManage list systemproperties:
Default machine folder: C:\WINDOWS\system32\config\systemprofile\.VirtualBox\Machines
Default hard disk folder: C:\WINDOWS\system32\config\systemprofile\.VirtualBox\HardDisks
I couldn't change this behavior, even when setting VBOX_HOME_USER to where the harddisks and machines and XML file exists. So, I moved everything to C:\WINDOWS\system32\config\systemprofile\.VirtualBox and defined VBOX_HOME_USER to point to it. This got me a consistant list ov VMs and the ability to start and stop, but not a consistent view of the status of the VMs. My guess is this is a result of the WinSSHD service running using the local system account, but I try using another account, I get an error about not holding required privilege for running CreateProcessAsUser.
Default machine folder: C:\WINDOWS\system32\config\systemprofile\.VirtualBox\Machines
Default hard disk folder: C:\WINDOWS\system32\config\systemprofile\.VirtualBox\HardDisks
I couldn't change this behavior, even when setting VBOX_HOME_USER to where the harddisks and machines and XML file exists. So, I moved everything to C:\WINDOWS\system32\config\systemprofile\.VirtualBox and defined VBOX_HOME_USER to point to it. This got me a consistant list ov VMs and the ability to start and stop, but not a consistent view of the status of the VMs. My guess is this is a result of the WinSSHD service running using the local system account, but I try using another account, I get an error about not holding required privilege for running CreateProcessAsUser.