I have an Ubuntu server virtual machine on my Windows box, I am able to run VirtualBox on my Windows machine without problems, and then I can SSH into the newly created server. However what I am trying to do is to SSH into my Windows machine (I have an SSH server installed) and start VirtualBox by running the following commands:
cd C:/Program Files/oracle/virtualbox virtualbox --vm <virtual machine ID>
The machine ID I use is the same as the one used when you create a shortcut using the VirtualBox machine manager.
When I do this the GUI for the VM does not appear. Checking the Task Manager Processes tab I am only able to see the VirtualBox process if I click Show all users, however the process shown is run under the same user name as my account.
Trying to do an SSH connection to the new server does not work. And doing a ping scan of my network using nmap does not seem to show any new hosts.
I would like to add that using the same commands as above straight in to the Windows command prompt starts the VM with no problems.
I have followed instructions and changed
VBoxHeadless --startvm 8b2db
Doing this through ssh gives me the error:
Invalid machine name or UUID!
however the UUID is the same as the one used in my shortcut on my desktop, and simply double clicking the .bat file runs fine.
I suspect the problem may be being caused by my ssh server being run under an administrative context. I'm using "bitvise ssh server"
Further inspection has shown that in windows command prompt i can
VBoxMange list vms in both standard user and as an administrator. However running it in cygwin gives no results, and running it through ssh, whether in the cygwin terminal or command prompt, returns nothing.