using VBoxManage in an SSH session

Discussions related to using VirtualBox on Windows hosts.
Post Reply
MBSimmons
Posts: 2
Joined: 20. Oct 2010, 13:29
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: CentOS 5.5

using VBoxManage in an SSH session

Post by MBSimmons »

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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: using VBoxManage in an SSH session

Post by Sasquatch »

You're running a set up that is not supported by VB. This is not the default way to manage VMs on Windows. Sorry, but we can't help you with this.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
MBSimmons
Posts: 2
Joined: 20. Oct 2010, 13:29
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: CentOS 5.5

Re: using VBoxManage in an SSH session

Post by MBSimmons »

What would I need to change to make it supported?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: using VBoxManage in an SSH session

Post by Sasquatch »

Either run Linux as Host or use RDP or VNC like remote control software so you run VB as your actual user.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply