VBoxManage cannot find my VMs unless VirtualBox is running
Posted: 19. Oct 2013, 01:23
In the GUI Preferences I changed the default machine folder, and everything works there.
But with VBoxManage, a different set of configurations seem to apply. In particular, VBoxManage cannot find my VMs. It can't find them, that is, unless the GUI is already running, started with a double click and not from the command line. With the GUI running, it does find my VMs. But that kind of defeats the value of having command-line access.
Below is a transcript of my session. Any idea what the problem is? Thanks.
But with VBoxManage, a different set of configurations seem to apply. In particular, VBoxManage cannot find my VMs. It can't find them, that is, unless the GUI is already running, started with a double click and not from the command line. With the GUI running, it does find my VMs. But that kind of defeats the value of having command-line access.
Below is a transcript of my session. Any idea what the problem is? Thanks.
Code: Select all
% VBoxManage --version
4.2.18r88780
% VBoxManage setproperty machinefolder "F:\\vboxVms"
% VBoxManage list systemproperties | grep 'Default machine folder'
Default machine folder: F:\vboxVms
% grep defaultMachineFolder ~/.VirtualBox/VirtualBox.xml
<SystemProperties defaultMachineFolder="F:\vboxVms" defaultHardDiskFormat="VDI" VRDEAuthLibrary="VBoxAuth" webServiceAuthLibrary="VBoxAuth" LogHistoryCount="3"/>
% VBoxManage list vms
# <no output>
# <Now I start VirtualBox from GUI, not command line>
% VBoxManage list vms
"Ubuntu1204" {584f7c0d-2186-4258-957c-3830e79068fe}
# <Kill VirtualBox GUI app>
% VBoxManage setproperty machinefolder /cygdrive/f/vboxVms
% VBoxManage list vms
# <no output>
% VBoxManage setproperty machinefolder default
% VBoxManage list vms
# <no output>