Change location of VMDK/VHD when using VirtualBox provider?

For the VirtualBox provider, is there any way I can have a specific Vagrant instance in a separate folder then $HOME/VirtualBox VMs? I would like to include it in the .vagrant directory where the Vagrantfile is, but cant seem to locate an option or config value to change the virtual hard disk file path. I am referring to running vagrant up for the first time, when Vagrant copies a Box to your new VM

1 thought on “Change location of VMDK/VHD when using VirtualBox provider?”

  1. Easy one. Alter Vagrant settings by

    “`
    VAGRANT_HOME=’d:\srv\vagrant’
    “`

    Alter VBox settings by editing file `c:/Users/user/.VirtualBox/VirtualBox.xml`:

    “`







    “`

    Reply

Leave a Comment