Lullabot / trusty32-lamp

An Ubuntu 14.04 VM for PHP with built in profiling
GNU General Public License v3.0
32 stars 10 forks source link

Linux-specific config in Vagrantfile #4

Closed dsayswhat closed 10 years ago

dsayswhat commented 10 years ago

When attempting the first vagrant up on OSX, I got the following:

~/Vagrant/ge ? ? master ● ? vagrant up Bringing machine 'default' up with 'virtualbox' provider... There are errors in the configuration of this machine. Please fix the following errors and try again:

shell provisioner:

  • The following settings shouldn't exist: run

Commenting these avahi-related lines in the Vagrantfile allowed the box to come up as normal

Vagrant sets the hostname after the VM has run services. Restart Avahi to

ensure that it is broadcasting an updated hostname.

config.vm.provision "shell",

inline: "service avahi-daemon restart",

run: "always"

deviantintegral commented 10 years ago

@dsayswhat what's your vagrant version? I think run was added in 1.5 or 1.6.

deviantintegral commented 10 years ago

https://github.com/puphpet/puphpet/issues/855 seems to indicate that upgrading vagrant to 1.6+ is the solution.

dsayswhat commented 10 years ago

Yup - 1.4. I'll upgrade.