drush vagrant-build --project-name=vm1 --git-repo="http://git.drupal.org/sandbox/franskuipers/1801378.git" --up --alias --hosts
You are about to:
  * Create a new project called "vm1" at "/Users/clemens/vagrant/projects/vm1".
  * Add entries for the FQDNs of the VMs to /etc/hosts. (You will be prompted for your sudo password.)
  * Generate Drush aliases for the project and VMs.
  * Launch the project VMs immediately.
  * Build the project from the Git repository at: http://git.drupal.org/sandbox/franskuipers/1801378.git
Do you want to proceed with initializing the project? (y/n): y
Initialized empty Git repository in /Users/clemens/vagrant/projects/vm1/.git/
remote: Counting objects: 103, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 103 (delta 40), reused 103 (delta 40)
Receiving objects: 100% (103/103), 41.24 KiB, done.
Resolving deltas: 100% (40/40), done.
Cloned the git repo at http://git.drupal.org/sandbox/franskuipers/1801378.git to /Users/clemens/vagrant/projects/vm1. [ok]
Created symlink to .gitignore. [ok]
Created the ".config" directory in /Users/clemens/vagrant/projects/vm1. [ok]
Successfully wrote config.rb [ok]
Copied your .bashrc into the project [ok]
Copied your .bash_aliases into the project [ok]
Copied your .vimrc into the project    [ok]
There was a problem with the configuration of Vagrant. The error message(s)
are printed below:

vm:
* The provisioner 'ansible' doesn't exist.


The following errors occurred when attempting to retrieve the FQDN for the drupal71 VM. [error]
The following errors occurred when running "vagrant ssh-config". Are you in the directory with the Vagrantfile? [error]
VM must be created before running this command. Run `vagrant up` first.
Drush command terminated abnormally due to an unrecoverable error. [error]
Drush command terminated abnormally due to an unrecoverable error. [error]
The drush command '@vm1.drupal81 hosts' could not be found.  Run `drush cache-clear drush` to clear the commandfile cache if you have      [error]
installed new extensions.
A Drupal installation directory could not be found [error]
The drush command '@vm1.drupal71 hosts' could not be found.  Run `drush cache-clear drush` to clear the commandfile cache if you have      [error]
installed new extensions.
A Drupal installation directory could not be found [error]
The drush command '@vm1.drupal71 hosts' could not be found.  Run `drush cache-clear drush` to clear the commandfile cache if you have      [error]
installed new extensions.
A Drupal installation directory could not be found [error]
Your project was successfully initialized.
The root for your project is "/Users/clemens/vagrant/projects/vm1"
The subnet for your project has been set to 192.168.12.0, and an initial entry in your /etc/hosts file written.
You can now: * Alter the behaviour of your project by editing /Users/clemens/vagrant/projects/vm1/settings.rb.
             * Redefine the VM(s) by editing the Puppet manifest(s) in /Users/clemens/vagrant/projects/vm1/manifests.
             * Add additional Puppet modules by copying them to /Users/clemens/vagrant/projects/vm1/modules.

Comments

clemens.tolboom’s picture

This is caused by not having installed ansible extensions to vagrant but the last report should never hit the prompt

Your project was successfully initialized.
The root for your project is "/Users/clemens/vagrant/projects/vm1"
The subnet for your project has been set to 192.168.12.0, and an initial entry in your /etc/hosts file written.
You can now: * Alter the behaviour of your project by editing /Users/clemens/vagrant/projects/vm1/settings.rb.
             * Redefine the VM(s) by editing the Puppet manifest(s) in /Users/clemens/vagrant/projects/vm1/manifests.
             * Add additional Puppet modules by copying them to /Users/clemens/vagrant/projects/vm1/modules.
ergonlogic’s picture

Title: Vragrant errors not processed correctly (failed to provision) » Vagrant errors not processed correctly (failed to provision)

We should probably consider moving to drush_vagrant_exec_and_log() in build.vagrant.inc:

  // Launch the VMs
  if ($up !== FALSE) {
    drush_vagrant_shell_cd_and_exec_interactive($project_path, "vagrant up");
  }

  // Generate aliases for the new project
  if ($aliases !== FALSE) {
    drush_vagrant_shell_cd_and_exec_interactive($project_path, "drush vagrant-aliases", $project_path);
  }

  // Add domain to hosts file
  if ($hosts !== FALSE) {
    _drush_vagrant_add_hosts_entries_for_vm($project_path);
  }
ergonlogic’s picture

Status: Active » Needs review

This should be fixed in: http://drupalcode.org/project/drush-vagrant.git/commitdiff/6a46f0cf9c890...

Please test under similar conditions, if possible.

clemens.tolboom’s picture

Status: Needs review » Needs work

Nice :)

[drupal71] Mounting NFS shared folders...
Mounting NFS shared folders failed. This is most often caused by the NFS
client software not being installed on the guest machine. Please verify
that the NFS client software is properly installed, and consult any resources
specific to the linux distro you're using for more information on how to
do this.
:~ clemens$ 

One thing remaining is a drush error as the command failed. Something like

command x failed with error code y      [error]