Code: Select all
VirtualBox-<version>-Win.exe --silent --ignore-reboot
TIA
Code: Select all
VirtualBox-<version>-Win.exe --silent --ignore-reboot
I'm trying to automate manual installation instructions from the development team, and one of them was to change the "Default Machine Folder" setting, So then how do I set the target folder when creating a new VM via the command line? I was given a script that takes an *.ova file as a parameter, and it's not clear to me, by looking at it, where the VM is created. I only see the following line in the script.mpack wrote:Why do you want to do that? The "default machine folder" only controls where new VMs will be created, but all the command line methods for creating a VM allow you to set the target folder directly.
AFAIK the default machine folder setting can't be set from the command line, it's a private setting for the manager app which determines which parameter it will pass to the background process when creating VMs.
But, you could copy a template VirtualBox.xml file into the users\<user>\.VirtualBox folder, as that is where this setting is stored.
Code: Select all
%PATH_TO%\VboxManager.exe import %1
Code: Select all
%PATH_TO%\VirtualBoxManager.exe import %1 --basefolder F:\some_folder