VVV: vagrant up fails for Windows 10 Hyper-V

Expected Behavior

vagrant up should fully provision with vvv

Current Behavior

I did a vagrant up and on the first run with Windows 10 and Hyper-V and it exited. In the logs a lot of packages were unable to be installed

Steps to Reproduce (for bugs)

  1. Install vagrant
  2. Download vvv from git
  3. vagrant up
$ vagrant provision
__ __ __ __
\ V\ V\ V / Varying Vagrant Vagrants
 \_/\_/\_/  v2.2.1-git::master

Docs:       https://varyingvagrantvagrants.org/
Contribute: https://github.com/varying-vagrant-vagrants/vvv
Dashboard:  http://vvv.test

==> default: Running provisioner: fix-no-tty (shell)...
    default: Running: inline script
==> default: Running provisioner: default (shell)...
    default: Running: C:/Users/tanner/AppData/Local/Temp/vagrant-shell20180823-17024-10lrjvn.sh
    default: Network connection detected...
    default: Bash profile setup and directories.
    default: cp:
    default: cannot stat ‘/srv/config/bash_profile’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/bash_aliases’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/vimrc’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/subversion-servers’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/subversion-config’
    default: : No such file or directory
    default:  * Copied /srv/config/bash_profile                      to /home/vagrant/.bash_profile
    default:  * Copied /srv/config/bash_aliases                      to /home/vagrant/.bash_aliases
    default:  * Copied /srv/config/vimrc                             to /home/vagrant/.vimrc
    default:  * Copied /srv/config/subversion-servers                to /home/vagrant/.subversion/servers
    default:  * Copied /srv/config/subversion-config                 to /home/vagrant/.subversion/config
    default: Network connection detected...
    default:
    default: Main packages check and install.
    default: Adding ppa:git-core/ppa repository
    default:  * php7.2-fpm                                          7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-cli                                          7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-common                                       7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-dev                                          7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php-pear                                            1:1.10.5+submodules+notgz-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php-imagick                                         3.4.3-3+ubuntu14.04.1+deb.sury.org+1
    default:  * php-memcache                                        3.0.9~20160311.4991c2f-7+ubuntu14.04.1+deb.sury.org+1
    default:  * php-memcached                                       3.0.4+2.2.0-3+ubuntu14.04.1+deb.sury.org+1
    default:  * php-ssh2                                            1.1.2+0.13-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php-xdebug                                          2.6.0+2.5.5-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-bcmath                                       7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-curl                                         7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-gd                                           7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-mbstring                                     7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-mysql                                        7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-imap                                         7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-json                                         7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-soap                                         7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-xml                                          7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * php7.2-zip                                          7.2.9-1+ubuntu14.04.1+deb.sury.org+1
    default:  * nginx                                               1.4.6-1ubuntu3.8
    default:  * memcached                                           1.4.14-0ubuntu9.3
    default:  * mariadb-server                                      5.5.59-1ubuntu0.14.04.1
    default:  * imagemagick                                         8:6.7.7.10-6ubuntu3.12
    default:  * subversion                                          1.8.8-1ubuntu3.3
    default:  * git                                                 1:1.9.1-1ubuntu0.3
    default:  * zip                                                 3.0-8
    default:  * unzip                                               6.0-9ubuntu1.5
    default:  * ngrep                                               1.45.ds2-12
    default:  * curl                                                7.35.0-1ubuntu2.8
    default:  * make                                                3.81-8.2ubuntu3
    default:  * vim                                                 2:7.4.052-1ubuntu3
    default:  * colordiff                                           1.0.13-1
    default:  * postfix                                             2.11.0-1ubuntu1.2
    default:  * python-pip                                          1.5.4-1ubuntu4
    default:  * ntp                                                 1:4.2.6.p5+dfsg-3ubuntu2.14.04.13
    default:  * gettext                                             0.18.3.1-1ubuntu3
    default:  * graphviz                                            2.36.0-0ubuntu3.2
    default:  * dos2unix                                            6.0.4-1
    default:  * g++                                                 4:4.8.2-1ubuntu6
    default:  * nodejs                                              0.10.25~dfsg2-2ubuntu1.2
    default:  * libsqlite3-dev                                      3.8.2-1ubuntu2.1
    default: Linked custom apt sources
    default: No apt packages to install.
    default: sh: 0:
    default: Can't open /vagrant/config/homebin/xdebug_off
    default:
    default: Updating nvm...
    default: Installing/updating npm...
    default: /tmp/vagrant-shell: line 306: npm: command not found
    default: Installing/updating npm-check-updates...
    default: /tmp/vagrant-shell: line 308: npm: command not found
    default: ack-grep already installed
    default: Updating Composer...
    default: You are already using composer version 1.7.2 (stable channel).
    default: Changed current directory to /usr/local/src/composer
    default: ./composer.json has been updated
    default: Changed current directory to /usr/local/src/composer
    default: Changed current directory to /usr/local/src/composer
    default: Loading composer repositories with package information
    default: Updating dependencies (including require-dev)
    default: Nothing to install or update
    default: Generating autoload files
    default: /tmp/vagrant-shell: line 374: grunt: command not found
    default: Installing Grunt CLI
    default: /tmp/vagrant-shell: line 382: npm: command not found
    default: /tmp/vagrant-shell: line 383: npm: command not found
    default: /tmp/vagrant-shell: line 384: npm: command not found
    default: /tmp/vagrant-shell: line 385: npm: command not found
    default: chown:
    default: cannot access ‘/usr/lib/node_modules/’
    default: : No such file or directory
    default: Adding graphviz symlink for Webgrind...
    default: Installing Shyaml for bash provisioning..
    default: Requirement already satisfied (use --upgrade to upgrade): shyaml in /usr/local/lib/python2.7/dist-packages
    default: Cleaning up...
    default:
    default: Setup configuration files...
    default: cp:
    default: cannot stat ‘/srv/config/init/vvv-start.conf’
    default: : No such file or directory
    default:  * Copied /srv/config/init/vvv-start.conf               to /etc/init/vvv-start.conf
    default: cp:
    default: cannot stat ‘/srv/config/nginx-config/nginx.conf’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/nginx-config/nginx-wp-common.conf’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/nginx-config/php7.2-upstream.conf’
    default: : No such file or directory
    default: sending incremental file list
    default: rsync: change_dir "/srv/config/nginx-config/sites" failed: No such file or directory (2)
    default:
    default: sent 20 bytes  received 12 bytes  64.00 bytes/sec
    default: total size is 0  speedup is 0.00
    default: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]
    default:  * Copied /srv/config/nginx-config/nginx.conf           to /etc/nginx/nginx.conf
    default:  * Copied /srv/config/nginx-config/nginx-wp-common.conf to /etc/nginx/nginx-wp-common.conf
    default:  * Rsync'd /srv/config/nginx-config/sites/              to /etc/nginx/custom-sites
    default:  * RVM                                                 1.29.4
    default:  * Mailcatcher [not installed]
    default: Successfully installed mailcatcher-0.6.5
    default: 1 gem installed
    default: Ruby enVironment Manager 1.29.4 (latest) (c) 2009-2017 Michal Papis, Piotr Kuczynski, Wayne E. Seguin
    default: # Wrapper
    default:
    default: Show/regenerate wrappers.
    default:
    default: NOTE: This command delegates to 'gem wrapper' => <https://github.com/rvm/gem-wrappers>
    default:
    default: ## Usage
    default:
    default: Show paths and generated wrappers:
    default:
    default:     rvm wrapper show
    default:
    default:
    default: Show path to generated wrapper:
    default:
    default:     rvm wrapper show executable_name
    default:
    default: Where `executable_name` is something like `ruby` or `rake`.
    default:
    default:
    default: It is also possible to generate a wrapper for external scripts that require ruby:
    default:
    default:     rvm wrapper /full/path/to/script
    default:
    default: Where `/full/path/to/script` is full path to existing script
    default:
    default:
    default: Wrappers are generated automatically, but it is possible to rerun the process:
    default:
    default:     rvm wrapper regenerate
    default:
    default:
    default: Documentation:
    default:
    default:     rvm wrapper [help]
    default:
    default: For additional documentation please visit https://rvm.io
    default: cp:
    default: cannot stat ‘/srv/config/init/mailcatcher.conf’
    default: : No such file or directory
    default:  * Copied /srv/config/init/mailcatcher.conf    to /etc/init/mailcatcher.conf
    default: cp:
    default: cannot stat ‘/srv/config/php-config/mailcatcher.ini’
    default: : No such file or directory
    default:  * Copied /srv/config/php-config/mailcatcher.ini    to /etc/php/7.2/mods-available/mailcatcher.ini
    default: cp:
    default: cannot stat ‘/srv/config/php-config/php7.2-fpm.conf’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/php-config/php7.2-www.conf’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/php-config/php7.2-custom.ini’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/php-config/opcache.ini’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/php-config/xdebug.ini’
    default: : No such file or directory
    default:  * Copied /srv/config/php-config/php7.2-fpm.conf   to /etc/php/7.2/fpm/php-fpm.conf
    default:  * Copied /srv/config/php-config/php7.2-www.conf   to /etc/php/7.2/fpm/pool.d/www.conf
    default:  * Copied /srv/config/php-config/php7.2-custom.ini to /etc/php/7.2/fpm/conf.d/php-custom.ini
    default:  * Copied /srv/config/php-config/opcache.ini       to /etc/php/7.2/fpm/conf.d/opcache.ini
    default:  * Copied /srv/config/php-config/xdebug.ini        to /etc/php/7.2/mods-available/xdebug.ini
    default: cp:
    default: cannot stat ‘/srv/config/memcached-config/memcached.conf’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/memcached-config/memcached.conf’
    default: : No such file or directory
    default:  * Copied /srv/config/memcached-config/memcached.conf to /etc/memcached.conf and /etc/memcached_default.conf
    default:
    default: Restart services...
    default:  * Restarting nginx nginx
    default:    ...done.
    default: Restarting memcached:
    default: memcached.
    default: mailcatcher: unrecognized service
    default: WARNING: Module mailcatcher ini file doesn't exist under /etc/php/7.2/mods-available
    default: WARNING: Module mailcatcher ini file doesn't exist under /etc/php/7.2/mods-available
    default: php7.2-fpm stop/waiting
    default: php7.2-fpm start/running, process 67082
    default:
    default: Setup MySQL configuration file links...
    default: cp:
    default: cannot stat ‘/srv/config/mysql-config/my.cnf’
    default: : No such file or directory
    default: cp:
    default: cannot stat ‘/srv/config/mysql-config/root-my.cnf’
    default: : No such file or directory
    default:  * Copied /srv/config/mysql-config/my.cnf               to /etc/mysql/my.cnf
    default:  * Copied /srv/config/mysql-config/root-my.cnf          to /home/vagrant/.my.cnf
    default: service mysql restart
    default: mysql stop/waiting
    default: mysql start/running, process 67123
    default:
    default: No custom MySQL scripting found in database/init-custom.sql, skipping...
    default: /tmp/vagrant-shell: line 508: /srv/database/init.sql: No such file or directory
    default: Initial MySQL prep...
    default: /tmp/vagrant-shell: line 513: /srv/database/import-sql.sh: No such file or directory
    default: Network connection detected...
    default:
    default: Installing/updating wp-cli and debugging tools
    default:
    default: Updating wp-cli...
    default: Downloading from https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar...
    default: md5 hash verified: 07b2ebef5d8b944e50e71896593f94a4
    default: New version works. Proceeding to replace.
    default: Success: Updated WP-CLI to the latest nightly release.
    default:
    default: Install/Update PHP_CodeSniffer (phpcs), see https://github.com/squizlabs/PHP_CodeSniffer
    default:
    default: Install/Update WordPress-Coding-Standards, sniffs for PHP_CodeSniffer, see https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
    default: /tmp/vagrant-shell: line 621: cd: /vagrant/provision/phpcs: No such file or directory
    default: Composer could not find a composer.json file in /srv/config/nvm
    default: To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
    default: /tmp/vagrant-shell: line 629: phpcs: command not found
    default: /tmp/vagrant-shell: line 630: phpcs: command not found
    default: /tmp/vagrant-shell: line 631: phpcs: command not found
    default: Network connection detected...
    default:
    default:
    default: Cleaning the virtual machine's /etc/hosts file...
    default: -----------------------------
    default: Provisioning complete in 33 seconds
    default: For further setup instructions, visit http://vvv.test
==> default: Running provisioner: dashboard (shell)...
    default: Running: C:/Users/tanner/AppData/Local/Temp/vagrant-shell20180823-17024-m2ige6.sh
    default: Updating dashboard...
    default: Already up-to-date.
==> default: Running provisioner: utility-source-core (shell)...
    default: Running: C:/Users/tanner/AppData/Local/Temp/vagrant-shell20180823-17024-6r1l9v.sh
    default: Downloading core resources, see https://github.com/Varying-Vagrant-Vagrants/vvv-utilities.git
    default: fatal: could not create leading directories of '/vagrant/provision/resources/core': Permission denied
    default: /tmp/vagrant-shell: line 17: cd: /vagrant/provision/resources/core: No such file or directory
    default: fatal: Not a git repository (or any of the parent directories): .git
==> default: Running provisioner: utility-core-memcached-admin (shell)...
    default: Running: C:/Users/tanner/AppData/Local/Temp/vagrant-shell20180823-17024-14kf85z.sh
==> default: Running provisioner: utility-core-opcache-status (shell)...
    default: Running: C:/Users/tanner/AppData/Local/Temp/vagrant-shell20180823-17024-ewq3x9.sh
==> default: Running provisioner: utility-core-phpmyadmin (shell)...
    default: Running: C:/Users/tanner/AppData/Local/Temp/vagrant-shell20180823-17024-ya3gp4.sh
==> default: Running provisioner: utility-core-webgrind (shell)...
    default: Running: C:/Users/tanner/AppData/Local/Temp/vagrant-shell20180823-17024-iv5eql.sh
==> default: Running provisioner: utility-core-trusted-hosts (shell)...
    default: Running: C:/Users/tanner/AppData/Local/Temp/vagrant-shell20180823-17024-1pif29y.sh
==> default: Running provisioner: utility-core-tls-ca (shell)...
    default: Running: C:/Users/tanner/AppData/Local/Temp/vagrant-shell20180823-17024-1nucexb.sh
==> default: Running provisioner: site-wordpress-default (shell)...
    default: Running: C:/Users/tanner/AppData/Local/Temp/vagrant-shell20180823-17024-roteg1.sh
    default:
    default: Downloading wordpress-default, see https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git
    default: fatal: could not create work tree dir '/srv/www/wordpress-default'.: Permission denied
    default: find:
    default: `/srv/www/wordpress-default'
    default: : No such file or directory
    default:  * Restarting nginx nginx
    default:    ...done.
==> default: Running provisioner: site-wordpress-develop (shell)...
    default: Running: C:/Users/tanner/AppData/Local/Temp/vagrant-shell20180823-17024-14k1ca8.sh
    default:
    default: Downloading wordpress-develop, see https://github.com/Varying-Vagrant-Vagrants/custom-site-template-develop.git
    default: fatal: could not create work tree dir '/srv/www/wordpress-develop'.: Permission denied
    default: find:
    default: `/srv/www/wordpress-develop'
    default: : No such file or directory
    default:  * Restarting nginx nginx
    default:    ...done.
==> default: Running provisioner: shell...
    default: Running: inline script
    default: mysql stop/waiting
    default: mysql start/running, process 70824
==> default: Running provisioner: shell...
    default: Running: inline script
    default:  * Restarting nginx nginx
    default:    ...done.

Context

This is a provision after doing a vagrant up and then vagrant ssh to install all the packages manually because it had failed.

Your Environment

  • VVV version:
  • VVV Git Branch: master
  • Vagrant version: 2.1.2
  • VM Provider name: Hyper-V
  • VM Provider version:
  • Operating System and version: Windows 10

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 32 (10 by maintainers)

Most upvoted comments

FYI: For those interested, it looks like a vagrant-related issue rather than this. Details are in the referenced issue/comments above.

Temp fix is to update C:\HashiCorp\Vagrant\embedded\gems\2.2.4\gems\vagrant-2.2.4\lib\vagrant\util\platform.rb or equivalent locally and run vagrant again.

edit: Ignore me, I was conflating different issues together. 🙄