- Run the following command and copy the ID of your VM
VBoxManage list vms
=> "virtualMachine" {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
- Go to the Vagrant project configuration folder
cd .vagrant/machines/default/virtualbox
- Create a file called
id
without a newline but the ID of your VMxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
echo -n 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' > id
- In the directory where your
Vagrantfile
of the associated VM is located, run Vagrant with new config
vagrant up
How can I export my box as-is with the HD and everything and restore in another machine? I´ve tried doing this with vagrant package, however, when I do vagrant add box and vagrant up my VM starts from the scratch. What can I be doing wrong?