dotless-de/vagrant-plugins-env — pull request #1 by dergachev (2013-05-03 20:33:18+00:00)
Title: Update to Vagrant 1.2.2 and vagrant-vbguest 0.8

At the moment, vagrant-plugins-env repo includes vagrant 1.1.3 as a submodule:

```
alex@sage:~/code/vagrant-plugins-env$ git submodule status
5fbcc13f193b6f231325f39d5663c4680d41dd5f vagrant (v0.9.7-978-g5fbcc13)
99f351feb05b39b9fde307bb44d41d46e5e04a4e vagrant-vbguest (v0.7.0.pre2)

alex@sage:~/code/vagrant-plugins-env$ bin/vagrant -v
## boring warning removed
Vagrant version 1.1.3.dev
```

This version of Vagrant seems to throw the following bug, at least when using with precise64:

```
alex@sage:~/code/vagrant-plugins-env$ bin/vagrant up

Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Fixed port collision for 22 => 2222. Now on port 2200.
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2200 (adapter 0)
The adapter to attach a forwarded port to was not found. Please
verify that the given adapter is setup on the machine as a NAT
interface.

Host port: 2200
Guest port: 22
Adapter: 0
```

This bug seems to be specific to Vagrant 1.3, and is resolved by upgrading. See https://github.com/mitchellh/vagrant/issues/1502

For me, the following was required to change the submodule reference:

```
cd vagrant
git fetch
git checkout v1.2.2
cd ..

git submodule status # looks good, see below
# +7e400d00a3c5a0fdf2809c8b5001a035415a607b vagrant (v0.9.7-1191-g7e400d0)
# 99f351feb05b39b9fde307bb44d41d46e5e04a4e vagrant-vbguest (v0.7.0.pre2)

bin/vagrant -v
#Vagrant version 1.2.2
```

Testing it, I realized I needed to update vagrant-vbguest too:

```
bin/vagrant up
# fails with an error message related to https://github.com/dotless-de/vagrant-vbguest/issues/59
```

To do this:

```
cd vagrant-vbguest
git checkout v0.8.0
cd ..
git ci vagrant-vbguest -m "Updated to vbguest 0.8..."
```

To test:

```
cd ..
bin/vagrant up # succeeds
```