I'm experiencing the following.
If I download and run a base box (ubuntu/trusty64), make some modifications like installing packages, then shutdown and repackage the box, on subsequent imports it fails to connect on vagrant up
.
This is not the transient wait-for-connection error, this hangs forever:
default: SSH address: 127.0.0.1:2200
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
Workflow is:
vagrant box add ubuntu/trusty64
vagrant init
# change config.vm.box in Vagrantfile to ubuntu/trusty64
vagrant up
vagrant ssh -c "sudo apt-get -y install git"
vagrant halt
vagrant package --output some-box.box
vagrant destroy
vagrant box add --name some-box ./some-box.box
# change config.vm.box in Vagrantfile to some-box
vagrant up
... this does not work.
I suspect this has something to do with VirtualBox networking and some sort of mapping or value that I need to capture or reset prior to packaging but I don't know what.