The default location is ~/VirtualBox\ VMS. How can I change it in command line? (GUI is not an option)?

  • 3
    Would you consider making ~/VirtualBox\ VMs a symlink to another directory an option ? Jul 20, 2016 at 11:32
  • @Serg, I considered it thanks, reconfiguring the location would be preferable
    – bpgergo
    Jul 20, 2016 at 11:40

1 Answer 1


This is a global VirtualBox property, and can be set with the following command:

vboxmanage setproperty machinefolder /path/to/directory/

Be aware that this will not move already created VMs, it will affect only VMs which are created after the machinefolder property has been set.

  • This worked, thanks, this is what I was looking for
    – bpgergo
    Jul 20, 2016 at 11:41
  • 11
    use vboxmanage list systemproperties | grep folder to find out the current settings resp. to verify.
    – Frank N
    Oct 6, 2017 at 8:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .