What is the syntax for adding a locally existing VirtualBox .vdi to vagrant?
There doesn't appear to be an example of alternate URI schemes in the documentation.
Can it also use ssh and httpauth locations?
You can add a box to Vagrant with vagrant box add . This stores the box under a specific name so that multiple Vagrant environments can re-use it. If you have not added a box yet, do so now. Vagrant will prompt you to select a provider.
You cannot directly "import" a VirtualBox VM into Vagrant.
Basically you'll have to package the existing VirtualBox VM to a box
and then add it to vagrant.
NOTE: a box is tarred VirtualBox Exports (could be gzipped).
You would be doing
vagrant package --base mybox --output /path/to/mybox.box
See more here =>
http://docs.vagrantup.com/v2/cli/package.html
vagrant box add mybox /path/to/mybox.box
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With