hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.32k stars 4.43k forks source link

Cannot use vagrant with hyperv inside WSL1 #11701

Open bendem opened 4 years ago

bendem commented 4 years ago

Vagrant version

Vagrant 2.2.9

Host operating system

Windows 10 / WSL1 Ubuntu 20.04

Guest operating system

centos/7, but we never get to that.

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

NODES=2
NODES_HOSTNAME="sso"
NODES_DOMAIN="yoh.intra"
NODES_NETWORK="192.168.10.0"
NODES_MEMORY=2048

OPENLDAP_VIP=NODES_NETWORK.sub('.0', ".199")
OPENLDAP_HOST="ldap.yoh.intra"

LEMONLDAP_VIP=NODES_NETWORK.sub('.0', ".199")
LEMONLDAP_HOST="sso-test.yoh.intra"

Vagrant.configure("2") do |config|
  config.vm.box = "centos/7"
  config.vm.box_version = "2004.01"
  config.vm.synced_folder '.', '/vagrant', disabled: true
  config.vm.synced_folder "~/.ssh", "/ssh-keys", type: "rsync"
  config.vm.provision "shell", inline: <<-SHELL
      sudo mkdir -p /root/.ssh
      sudo cp /ssh-keys/* /root/.ssh/
      sudo cat /ssh-keys/id_rsa.pub >> /root/.ssh/authorized_keys
      sudo chown -R root:root /root/.ssh/
      sudo chmod 600 /root/.ssh/*
      sudo bash -c "echo '127.0.0.1 $(hostname) $(hostname -s)' > /etc/hosts"
      sudo bash -c "echo 'localhost $(hostname) $(hostname -s)' >> /etc/hosts"
      sudo bash -c "echo '::1 $(hostname) $(hostname -s)' >> /etc/hosts"
      sudo bash -c "echo '#{OPENLDAP_VIP} #{OPENLDAP_HOST}' >> /etc/hosts"
      sudo bash -c "echo '#{LEMONLDAP_VIP} #{LEMONLDAP_HOST}' >> /etc/hosts"
      sudo bash -c "echo '127.0.0.1 auth.yoh.intra manager.yoh.intra reload.yoh.intra' >> /etc/hosts"
      i=1
      while [ $i -le #{NODES} ]
      do
        ip_id=$(( i + 1 ))
        ip=$(echo "#{NODES_NETWORK}" | sed -r "s/^([0-9\\.]+)\\.0$/\\1.${ip_id}/")
        echo "${ip} #{NODES_HOSTNAME}${i}.#{NODES_DOMAIN} #{NODES_HOSTNAME}${i}" >> /etc/hosts
        i=$(( i + 1 ))
      done
    SHELL
  config.vm.provider "virtualbox" do |vb|
    vb.memory = NODES_MEMORY
  end

  # that doesn't work with hyperv, we'll deal
  (1..NODES).each do |i|
    config.vm.define "#{NODES_HOSTNAME}#{i}" do |node|
      ip_id=1+i
      ip=NODES_NETWORK.sub('.0', ".#{ip_id}")
      node.vm.network "private_network", ip: "#{ip}"
      node.vm.hostname = "#{NODES_HOSTNAME}#{i}.#{NODES_DOMAIN}"
    end
  end
end

Debug output

click to expand ``` INFO global: Vagrant version: 2.2.9 INFO global: Ruby version: 2.6.6 INFO global: RubyGems version: 3.0.3 INFO global: VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH="/mnt/c/Users/demarteaub/.vagrant-tmp" INFO global: VAGRANT_WSL_WINDOWS_ACCESS_USER="demarteaub" INFO global: VAGRANT_DEFAULT_PROVIDER="hyperv" INFO global: VAGRANT_WSL_DISABLE_VAGRANT_HOME="1" INFO global: VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1" INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded" INFO global: VAGRANT_INSTALLER_VERSION="2" INFO global: VAGRANT_INSTALLER_ENV="1" INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/bin/vagrant" INFO global: VAGRANT_LOG="debug" WARN global: resolv replacement has not been enabled! DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/box/plugin.rb INFO manager: Registered plugin: box command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/cap/plugin.rb INFO manager: Registered plugin: cap command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/cloud/plugin.rb INFO manager: Registered plugin: vagrant-cloud DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/destroy/plugin.rb INFO manager: Registered plugin: destroy command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/global-status/plugin.rb INFO manager: Registered plugin: global-status command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/halt/plugin.rb INFO manager: Registered plugin: halt command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/help/plugin.rb INFO manager: Registered plugin: help command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/init/plugin.rb INFO manager: Registered plugin: init command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/list-commands/plugin.rb INFO manager: Registered plugin: list-commands command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/login/plugin.rb INFO manager: Registered plugin: vagrant-login DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/package/plugin.rb INFO manager: Registered plugin: package command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/plugin/plugin.rb INFO manager: Registered plugin: plugin command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/port/plugin.rb INFO manager: Registered plugin: port command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/powershell/plugin.rb INFO manager: Registered plugin: powershell command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/provider/plugin.rb INFO manager: Registered plugin: provider command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/provision/plugin.rb INFO manager: Registered plugin: provision command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/push/plugin.rb INFO manager: Registered plugin: push command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/rdp/plugin.rb INFO manager: Registered plugin: rdp command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/reload/plugin.rb INFO manager: Registered plugin: reload command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/resume/plugin.rb INFO manager: Registered plugin: resume command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/snapshot/plugin.rb INFO manager: Registered plugin: snapshot command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/ssh/plugin.rb INFO manager: Registered plugin: ssh command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/ssh_config/plugin.rb INFO manager: Registered plugin: ssh-config command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/status/plugin.rb INFO manager: Registered plugin: status command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/suspend/plugin.rb INFO manager: Registered plugin: suspend command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/up/plugin.rb INFO manager: Registered plugin: up command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/upload/plugin.rb INFO manager: Registered plugin: upload command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/validate/plugin.rb INFO manager: Registered plugin: validate command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/version/plugin.rb INFO manager: Registered plugin: version command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/winrm/plugin.rb INFO manager: Registered plugin: winrm command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/commands/winrm_config/plugin.rb INFO manager: Registered plugin: winrm-config command DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/communicators/ssh/plugin.rb INFO manager: Registered plugin: ssh communicator DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/communicators/winrm/plugin.rb INFO manager: Registered plugin: winrm communicator DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/communicators/winssh/plugin.rb INFO manager: Registered plugin: windows ssh communicator DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/alpine/plugin.rb INFO manager: Registered plugin: Alpine guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/alt/plugin.rb INFO manager: Registered plugin: ALT Platform guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/amazon/plugin.rb INFO manager: Registered plugin: Amazon Linux guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/arch/plugin.rb INFO manager: Registered plugin: Arch guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/atomic/plugin.rb INFO manager: Registered plugin: Atomic Host guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/bsd/plugin.rb INFO manager: Registered plugin: BSD-based guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/centos/plugin.rb INFO manager: Registered plugin: CentOS guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/coreos/plugin.rb INFO manager: Registered plugin: CoreOS guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/darwin/plugin.rb INFO manager: Registered plugin: Darwin guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/debian/plugin.rb INFO manager: Registered plugin: Debian guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/dragonflybsd/plugin.rb INFO manager: Registered plugin: DragonFly BSD guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/elementary/plugin.rb INFO manager: Registered plugin: Elementary guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/esxi/plugin.rb INFO manager: Registered plugin: ESXi guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/fedora/plugin.rb INFO manager: Registered plugin: Fedora guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/freebsd/plugin.rb INFO manager: Registered plugin: FreeBSD guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/funtoo/plugin.rb INFO manager: Registered plugin: Funtoo guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/gentoo/plugin.rb INFO manager: Registered plugin: Gentoo guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/haiku/plugin.rb INFO manager: Registered plugin: Haiku guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/kali/plugin.rb INFO manager: Registered plugin: Kali guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/linux/plugin.rb INFO manager: Registered plugin: Linux guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/mint/plugin.rb INFO manager: Registered plugin: Mint guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/netbsd/plugin.rb INFO manager: Registered plugin: NetBSD guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/nixos/plugin.rb INFO manager: Registered plugin: NixOS guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/omnios/plugin.rb INFO manager: Registered plugin: OmniOS guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/openbsd/plugin.rb INFO manager: Registered plugin: OpenBSD guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/photon/plugin.rb INFO manager: Registered plugin: VMware Photon guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/pld/plugin.rb INFO manager: Registered plugin: PLD Linux guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/redhat/plugin.rb INFO manager: Registered plugin: Red Hat Enterprise Linux guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/slackware/plugin.rb INFO manager: Registered plugin: Slackware guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/smartos/plugin.rb INFO manager: Registered plugin: SmartOS guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/solaris/plugin.rb INFO manager: Registered plugin: Solaris guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/solaris11/plugin.rb INFO manager: Registered plugin: Solaris 11 guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/suse/plugin.rb INFO manager: Registered plugin: SUSE guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/tinycore/plugin.rb INFO manager: Registered plugin: TinyCore Linux guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/trisquel/plugin.rb INFO manager: Registered plugin: Trisquel guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/ubuntu/plugin.rb INFO manager: Registered plugin: Ubuntu guest DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/guests/windows/plugin.rb INFO manager: Registered plugin: Windows guest. DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/alt/plugin.rb INFO manager: Registered plugin: ALT Platform host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/arch/plugin.rb INFO manager: Registered plugin: Arch host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/bsd/plugin.rb INFO manager: Registered plugin: BSD host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/darwin/plugin.rb INFO manager: Registered plugin: Mac OS X host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/freebsd/plugin.rb INFO manager: Registered plugin: FreeBSD host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/gentoo/plugin.rb INFO manager: Registered plugin: Gentoo host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/linux/plugin.rb INFO manager: Registered plugin: Linux host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/null/plugin.rb INFO manager: Registered plugin: null host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/redhat/plugin.rb INFO manager: Registered plugin: Red Hat Enterprise Linux host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/slackware/plugin.rb INFO manager: Registered plugin: Slackware host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/suse/plugin.rb INFO manager: Registered plugin: SUSE host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/void/plugin.rb INFO manager: Registered plugin: Void host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/hosts/windows/plugin.rb INFO manager: Registered plugin: Windows host DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/kernel_v1/plugin.rb INFO manager: Registered plugin: kernel DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/kernel_v2/plugin.rb INFO manager: Registered plugin: kernel DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/docker/plugin.rb INFO manager: Registered plugin: docker-provider DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/plugin.rb INFO manager: Registered plugin: Hyper-V provider DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/virtualbox/plugin.rb INFO manager: Registered plugin: VirtualBox provider DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/provisioners/ansible/plugin.rb INFO manager: Registered plugin: ansible DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/provisioners/cfengine/plugin.rb INFO manager: Registered plugin: CFEngine Provisioner DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/provisioners/chef/plugin.rb INFO manager: Registered plugin: chef DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/provisioners/container/plugin.rb INFO manager: Registered plugin: container DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/provisioners/docker/plugin.rb INFO manager: Registered plugin: docker DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/provisioners/file/plugin.rb INFO manager: Registered plugin: file DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/provisioners/podman/plugin.rb INFO manager: Registered plugin: podman DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/provisioners/puppet/plugin.rb INFO manager: Registered plugin: puppet DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/provisioners/salt/plugin.rb INFO manager: Registered plugin: salt DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/provisioners/shell/plugin.rb INFO manager: Registered plugin: shell DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/pushes/atlas/plugin.rb INFO manager: Registered plugin: atlas DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/pushes/ftp/plugin.rb INFO manager: Registered plugin: ftp DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/pushes/heroku/plugin.rb INFO manager: Registered plugin: heroku DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/pushes/local-exec/plugin.rb INFO manager: Registered plugin: local-exec DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/pushes/noop/plugin.rb INFO manager: Registered plugin: noop DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/synced_folders/nfs/plugin.rb INFO manager: Registered plugin: NFS synced folders DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/synced_folders/rsync/plugin.rb INFO manager: Registered plugin: RSync synced folders DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/synced_folders/smb/plugin.rb INFO manager: Registered plugin: SMB synced folders INFO vagrant: `vagrant` invoked: ["--debug", "up"] DEBUG vagrant: Creating Vagrant environment INFO environment: Environment initialized (#) INFO environment: - cwd: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso INFO environment: Home path: /home/bendem/.vagrant.d DEBUG environment: Effective local data path: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant INFO environment: Local data path: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant DEBUG environment: Creating: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant DEBUG manager: Enabling localized plugins INFO manager: Plugins: DEBUG signature_file: new solution file instance plugin_file=/home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/plugins.json solution_file=/home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/bundler/local.sol DEBUG signature_file: missing file so skipping loading DEBUG bundler: solution file in use for init: DEBUG bundler: Generating new builtin set instance. DEBUG bundler: Generating new plugin set instance. Skip gems - [] DEBUG bundler: generating solution set for configured plugins DEBUG bundler: Current generated plugin dependency list: [] DEBUG bundler: resolving solution from available specification set DEBUG bundler: solution set for configured plugins has been resolved DEBUG bundler: activating solution set DEBUG bundler: Activating solution set: [] DEBUG signature_file: plugin file does not exist, not storing solution DEBUG bundler: solution set stored to - INFO manager: Loading plugins... DEBUG manager: Enabling globalized plugins INFO manager: Plugins: DEBUG signature_file: new solution file instance plugin_file=/home/bendem/.vagrant.d/plugins.json solution_file=/home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/bundler/global.sol DEBUG signature_file: missing file so skipping loading DEBUG bundler: solution file in use for init: DEBUG bundler: Generating new builtin set instance. DEBUG bundler: Generating new plugin set instance. Skip gems - [] DEBUG bundler: generating solution set for configured plugins DEBUG bundler: Current generated plugin dependency list: [] DEBUG bundler: resolving solution from available specification set DEBUG bundler: solution set for configured plugins has been resolved DEBUG bundler: activating solution set DEBUG bundler: Activating solution set: [] DEBUG signature_file: plugin file does not exist, not storing solution DEBUG bundler: solution set stored to - INFO manager: Loading plugins... INFO loader: Set :root = ["#"] DEBUG loader: Populating proc cache for # DEBUG loader: Load procs for pathname: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/Vagrantfile INFO loader: Loading configuration in order: [:home, :root] DEBUG loader: Loading from: root (evaluating) DEBUG provisioner: Provisioner defined: DEBUG loader: Configuration loaded successfully, finalizing and returning DEBUG push: finalizing DEBUG environment: Default provider: `hyperv` DEBUG environment: Using forced default provider: `hyperv` DEBUG environment: Default provider: `hyperv` DEBUG environment: Using forced default provider: `hyperv` INFO loader: Set "29855680_machine_sso1" = ["[\"2\", #]"] DEBUG loader: Populating proc cache for ["2", #] INFO loader: Loading configuration in order: [:home, :root, "29855680_machine_sso1"] DEBUG loader: Loading from: root (cache) DEBUG loader: Loading from: 29855680_machine_sso1 (evaluating) DEBUG loader: Configuration loaded successfully, finalizing and returning DEBUG push: finalizing INFO box_collection: Box not found: centos/7 (hyperv) WARN vagrantfile: Failed to locate centos/7 with version 2004.01 WARN vagrantfile: Performing lookup with inital values centos/7 with version 2004.01 INFO box_collection: Box not found: centos/7 (hyperv) INFO box_collection: Box not found: centos/7 (hyperv) DEBUG environment: Default provider: `hyperv` DEBUG environment: Using forced default provider: `hyperv` INFO loader: Set "29855680_machine_sso2" = ["[\"2\", #]"] DEBUG loader: Populating proc cache for ["2", #] INFO loader: Loading configuration in order: [:home, :root, "29855680_machine_sso2"] ERROR loader: Unknown config sources: ["29855680_machine_sso1"] DEBUG loader: Loading from: root (cache) DEBUG loader: Loading from: 29855680_machine_sso2 (evaluating) DEBUG loader: Configuration loaded successfully, finalizing and returning DEBUG push: finalizing INFO box_collection: Box not found: centos/7 (hyperv) WARN vagrantfile: Failed to locate centos/7 with version 2004.01 WARN vagrantfile: Performing lookup with inital values centos/7 with version 2004.01 INFO box_collection: Box not found: centos/7 (hyperv) INFO box_collection: Box not found: centos/7 (hyperv) INFO environment: Running hook: environment_plugins_loaded INFO runner: Running action: environment_plugins_loaded # INFO environment: Running hook: environment_load INFO runner: Running action: environment_load # WARN vagrant: Windows Subsystem for Linux detected. Allowing access to user: demarteaub WARN vagrant: Vagrant will be allowed to control Vagrant managed machines within the user's home path. WARN vagrant: VAGRANT_HOME environment variable already set. Not overriding! INFO vagrant: Re-creating Vagrant environment due to WSL modifications. INFO environment: Environment initialized (#) INFO environment: - cwd: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso INFO environment: Home path: /home/bendem/.vagrant.d DEBUG environment: Effective local data path: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant INFO environment: Local data path: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant DEBUG environment: Creating: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant DEBUG manager: Enabling localized plugins INFO manager: Plugins: DEBUG signature_file: new solution file instance plugin_file=/home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/plugins.json solution_file=/home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/bundler/local.sol DEBUG signature_file: missing file so skipping loading DEBUG bundler: solution file in use for init: DEBUG bundler: Generating new builtin set instance. DEBUG bundler: Generating new plugin set instance. Skip gems - [] DEBUG bundler: generating solution set for configured plugins DEBUG bundler: Current generated plugin dependency list: [] DEBUG bundler: resolving solution from available specification set DEBUG bundler: solution set for configured plugins has been resolved DEBUG bundler: activating solution set DEBUG bundler: Activating solution set: [] DEBUG signature_file: plugin file does not exist, not storing solution DEBUG bundler: solution set stored to - INFO manager: Loading plugins... DEBUG manager: Enabling globalized plugins INFO manager: Plugins: DEBUG signature_file: new solution file instance plugin_file=/home/bendem/.vagrant.d/plugins.json solution_file=/home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/bundler/global.sol DEBUG signature_file: missing file so skipping loading DEBUG bundler: solution file in use for init: DEBUG bundler: Generating new builtin set instance. DEBUG bundler: Generating new plugin set instance. Skip gems - [] DEBUG bundler: generating solution set for configured plugins DEBUG bundler: Current generated plugin dependency list: [] DEBUG bundler: resolving solution from available specification set DEBUG bundler: solution set for configured plugins has been resolved DEBUG bundler: activating solution set DEBUG bundler: Activating solution set: [] DEBUG signature_file: plugin file does not exist, not storing solution DEBUG bundler: solution set stored to - INFO manager: Loading plugins... INFO loader: Set :root = ["#"] DEBUG loader: Populating proc cache for # DEBUG loader: Load procs for pathname: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/Vagrantfile INFO loader: Loading configuration in order: [:home, :root] DEBUG loader: Loading from: root (evaluating) DEBUG provisioner: Provisioner defined: DEBUG loader: Configuration loaded successfully, finalizing and returning DEBUG push: finalizing DEBUG environment: Default provider: `hyperv` DEBUG environment: Using forced default provider: `hyperv` DEBUG environment: Default provider: `hyperv` DEBUG environment: Using forced default provider: `hyperv` INFO loader: Set "28498420_machine_sso1" = ["[\"2\", #]"] DEBUG loader: Populating proc cache for ["2", #] INFO loader: Loading configuration in order: [:home, :root, "28498420_machine_sso1"] DEBUG loader: Loading from: root (cache) DEBUG loader: Loading from: 28498420_machine_sso1 (evaluating) DEBUG loader: Configuration loaded successfully, finalizing and returning DEBUG push: finalizing INFO box_collection: Box not found: centos/7 (hyperv) WARN vagrantfile: Failed to locate centos/7 with version 2004.01 WARN vagrantfile: Performing lookup with inital values centos/7 with version 2004.01 INFO box_collection: Box not found: centos/7 (hyperv) INFO box_collection: Box not found: centos/7 (hyperv) DEBUG environment: Default provider: `hyperv` DEBUG environment: Using forced default provider: `hyperv` INFO loader: Set "28498420_machine_sso2" = ["[\"2\", #]"] DEBUG loader: Populating proc cache for ["2", #] INFO loader: Loading configuration in order: [:home, :root, "28498420_machine_sso2"] ERROR loader: Unknown config sources: ["28498420_machine_sso1"] DEBUG loader: Loading from: root (cache) DEBUG loader: Loading from: 28498420_machine_sso2 (evaluating) DEBUG loader: Configuration loaded successfully, finalizing and returning DEBUG push: finalizing INFO box_collection: Box not found: centos/7 (hyperv) WARN vagrantfile: Failed to locate centos/7 with version 2004.01 WARN vagrantfile: Performing lookup with inital values centos/7 with version 2004.01 INFO box_collection: Box not found: centos/7 (hyperv) INFO box_collection: Box not found: centos/7 (hyperv) INFO environment: Running hook: environment_plugins_loaded INFO runner: Running action: environment_plugins_loaded # INFO environment: Running hook: environment_load INFO runner: Running action: environment_load # DEBUG checkpoint_client: starting plugin check INFO cli: CLI: [] "up" [] DEBUG checkpoint_client: plugin check complete DEBUG cli: Invoking command class: VagrantPlugins::CommandUp::Command [] DEBUG checkpoint_client: no information received from checkpoint DEBUG command: 'Up' each target VM... DEBUG command: Getting target VMs for command. Arguments: DEBUG command: -- names: ["sso1", "sso2"] DEBUG command: -- options: {:provider=>nil} DEBUG command: Finding machine that match name: sso1 DEBUG environment: Default provider: `hyperv` DEBUG environment: Using forced default provider: `hyperv` INFO environment: Getting machine: sso1 (hyperv) INFO environment: Uncached load of machine. INFO subprocess: Starting process: ["/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-Command", "Write-Output $PSVersionTable.PSVersion.Major"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: 5 DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 30 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-Command", "(new-object System.Security.Principal.WindowsPrincipal([System.Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator)"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: False DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-Command", "Write-Output ([System.Security.Principal.WindowsIdentity]::GetCurrent().Groups | Select-Object Value | ConvertTo-JSON)"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: [ { "Value": "S-1-5-21-748224823-493905928-623647154-513" }, { "Value": "S-1-1-0" }, { "Value": "S-1-5-21-3389927758-1210772398-1921068941-1008" }, { "Value": "S-1-5-32-578" }, { "Value": "S-1-5-32-545" }, { "Value": "S-1-5-4" }, { "Value": "S-1-2-1" }, { "Value": "S-1-5-11" }, { "Value": "S-1-5-15" }, { "Value": "S-1-2-0" }, { "Value": "S-1-5-21-748224823-493905928-623647154-13776" }, { "Value": "S-1-5-21-748224823-493905928-623647154-10693" }, { "Value": "S-1-5-21-748224823-493905928-623647154-1421" }, { "Value": "S-1-5-21-748224823-493905928-623647154-1179" }, { "Value": "S-1-5-21-748224823-493905928-623647154-25997" }, { "Value": "S-1-5-21-748224823-493905928-623647154-18767" }, { "Value": "S-1-5-21-748224823-493905928-623647154-25934" }, { "Value": "S-1-5-21-748224823-493905928-623647154-15316" }, { "Value": "S-1-5-21-748224823-493905928-623647154-26044" }, { "Value": "S-1-5-21-748224823-493905928-623647154-21775" }, { "Value": "S-1-5-21-748224823-493905928-623647154-18903" }, { "Value": "S-1-5-21-748224823-493905928-623647154-14822" }, { "Value": "S-1-5-21-748224823-493905928-623647154-18905" }, { "Value": "S-1-5-21-748224823-493905928-623647154-13709" }, { "Value": "S-1-5-21-748224823-493905928-623647154-24304" }, { "Value": "S-1-5-21-748224823-493905928-623647154-25933" }, { "Value": "S-1-5-21-748224823-493905928-623647154-13368" }, { "Value": "S-1-5-21-748224823-493905928-623647154-14406" }, { "Value": "S-1-5-21-748224823-493905928-623647154-12781" }, { "Value": "S-1-5-21-748224823-493905928-623647154-14184" }, { "Value": "S-1-5-21-748224823-493905928-623647154-23933" }, { "Value": "S-1-5-21-748224823-493905928-623647154-25935" }, { "Value": "S-1-5-21-748224823-493905928-623647154-10694" }, { "Value": "S-1-5-21-748224823-493905928-623647154-14408" }, { "Value": "S-1-5-21-748224823-493905928-623647154-19354" }, { "Value": "S-1-5-21-748224823-493905928-623647154-25969" }, { "Value": "S-1-5-21-748224823-493905928-623647154-10889" }, { "Value": "S-1-5-21-748224823-493905928-623647154-12851" }, { "Value": "S-1-5-21-748224823-493905928-623647154-13714" }, { "Value": "S-1-5-21-748224823-493905928-623647154-6469" }, { "Value": "S-1-5-21-748224823-493905928-623647154-25936" }, { "Value": "S-1-5-21-748224823-493905928-623647154-14212" }, { "Value": "S-1-5-21-748224823-493905928-623647154-13370" }, { "Value": "S-1-5-21-748224823-493905928-623647154-25972" }, { "Value": "S-1-5-21-748224823-493905928-623647154-13369" }, { "Value": "S-1-5-21-748224823-493905928-623647154-23800" }, { "Value": "S-1-5-21-748224823-493905928-623647154-22973" }, { "Value": "S-1-5-21-748224823-493905928-623647154-26703" }, { "Value": "S-1-5-21-748224823-493905928-623647154-2717" }, { "Value": "S-1-5-21-748224823-493905928-623647154-6273" }, { "Value": "S-1-5-21-748224823-493905928-623647154-21697" }, { "Value": "S-1-5-21-748224823-493905928-623647154-13712" }, { "Value": "S-1-5-21-748224823-493905928-623647154-26004" }, { "Value": "S-1-5-21-748224823-493905928-623647154-14842" }, { "Value": "S-1-5-21-748224823-493905928-623647154-1422" }, { "Value": "S-1-5-21-748224823-493905928-623647154-20818" }, { "Value": "S-1-5-21-748224823-493905928-623647154-25939" }, { "Value": "S-1-5-21-748224823-493905928-623647154-15259" }, { "Value": "S-1-5-21-748224823-493905928-623647154-21251" }, { "Value": "S-1-5-21-748224823-493905928-623647154-26035" }, { "Value": "S-1-5-21-748224823-493905928-623647154-10029" }, { "Value": "S-1-5-21-748224823-493905928-623647154-18194" }, { "Value": "S-1-5-21-748224823-493905928-623647154-13742" }, { "Value": "S-1-5-21-748224823-493905928-623647154-19343" }, { "Value": "S-1-5-21-748224823-493905928-623647154-18605" }, { "Value": "S-1-5-21-748224823-493905928-623647154-12995" }, { "Value": "S-1-5-21-748224823-493905928-623647154-13747" }, { "Value": "S-1-5-21-748224823-493905928-623647154-13695" }, { "Value": "S-1-5-21-748224823-493905928-623647154-13861" }, { "Value": "S-1-5-21-748224823-493905928-623647154-22810" }, { "Value": "S-1-5-21-748224823-493905928-623647154-19892" }, { "Value": "S-1-5-21-748224823-493905928-623647154-23716" }, { "Value": "S-1-18-1" } ] DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999 DEBUG subprocess: Exit status: 0 INFO loader: Set "28498420_machine_sso1" = ["[\"2\", #]"] INFO loader: Loading configuration in order: [:home, :root, "28498420_machine_sso1"] ERROR loader: Unknown config sources: ["28498420_machine_sso2"] DEBUG loader: Loading from: root (cache) DEBUG loader: Loading from: 28498420_machine_sso1 (cache) DEBUG loader: Configuration loaded successfully, finalizing and returning DEBUG push: finalizing INFO box_collection: Box not found: centos/7 (hyperv) WARN vagrantfile: Failed to locate centos/7 with version 2004.01 WARN vagrantfile: Performing lookup with inital values centos/7 with version 2004.01 INFO box_collection: Box not found: centos/7 (hyperv) INFO box_collection: Box not found: centos/7 (hyperv) INFO machine: Initializing machine: sso1 INFO machine: - Provider: VagrantPlugins::HyperV::Provider INFO machine: - Box: INFO machine: - Data dir: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/machines/sso1/hyperv INFO machine: New machine ID: nil INFO interface: Machine: metadata ["provider", :hyperv, {:target=>:sso1}] DEBUG command: Finding machine that match name: sso2 DEBUG environment: Default provider: `hyperv` DEBUG environment: Using forced default provider: `hyperv` INFO environment: Getting machine: sso2 (hyperv) INFO environment: Uncached load of machine. INFO loader: Set "28498420_machine_sso2" = ["[\"2\", #]"] INFO loader: Loading configuration in order: [:home, :root, "28498420_machine_sso2"] ERROR loader: Unknown config sources: ["28498420_machine_sso1"] DEBUG loader: Loading from: root (cache) DEBUG loader: Loading from: 28498420_machine_sso2 (cache) DEBUG loader: Configuration loaded successfully, finalizing and returning DEBUG push: finalizing INFO box_collection: Box not found: centos/7 (hyperv) WARN vagrantfile: Failed to locate centos/7 with version 2004.01 WARN vagrantfile: Performing lookup with inital values centos/7 with version 2004.01 INFO box_collection: Box not found: centos/7 (hyperv) INFO box_collection: Box not found: centos/7 (hyperv) INFO machine: Initializing machine: sso2 INFO machine: - Provider: VagrantPlugins::HyperV::Provider INFO machine: - Box: INFO machine: - Data dir: /home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/machines/sso2/hyperv INFO machine: New machine ID: nil INFO interface: Machine: metadata ["provider", :hyperv, {:target=>:sso2}] INFO command: With machine: sso1 (#, @driver=#, @logger=#, @mon_mutex_owner_object_id=24029820, @mon_owner=nil, @mon_count=0, @name="stderr", @level=0, @formatter=#>, @out=#>>], @additive=true, @name="vagrant", @path="", @parent=#, @level=1, @trace=false>, @level=1, @trace=false>, @cap_logger=#, @mon_mutex_owner_object_id=24029820, @mon_owner=nil, @mon_count=0, @name="stderr", @level=0, @formatter=#>, @out=#>>], @additive=true, @name="vagrant", @path="", @parent=#, @level=1, @trace=false>, @level=1, @trace=false>, @cap_host_chain=[[:hyperv, #<#:0x000000000372e720>]], @cap_args=[#], @cap_caps={:docker=>##, :proxy_machine=>#}, @results_cache={}>, :hyperv=>##, :snapshot_list=>#}, @results_cache={}>, :virtualbox=>##, :nic_mac_addresses=>#, :public_address=>#, :configure_disks=>#, :cleanup_disks=>#, :validate_disk_ext=>#, :get_default_disk_ext=>#, :snapshot_list=>#}, @results_cache={}>}>) INFO command: With machine: sso2 (#, @driver=#, @logger=#, @mon_mutex_owner_object_id=24029820, @mon_owner=nil, @mon_count=0, @name="stderr", @level=0, @formatter=#>, @out=#>>], @additive=true, @name="vagrant", @path="", @parent=#, @level=1, @trace=false>, @level=1, @trace=false>, @cap_logger=#, @mon_mutex_owner_object_id=24029820, @mon_owner=nil, @mon_count=0, @name="stderr", @level=0, @formatter=#>, @out=#>>], @additive=true, @name="vagrant", @path="", @parent=#, @level=1, @trace=false>, @level=1, @trace=false>, @cap_host_chain=[[:hyperv, #<#:0x000000000350f160>]], @cap_args=[#], @cap_caps={:docker=>##, :proxy_machine=>#}, @results_cache={}>, :hyperv=>##, :snapshot_list=>#}, @results_cache={}>, :virtualbox=>##, :nic_mac_addresses=>#, :public_address=>#, :configure_disks=>#, :cleanup_disks=>#, :validate_disk_ext=>#, :get_default_disk_ext=>#, :snapshot_list=>#}, @results_cache={}>}>) DEBUG command: Getting target VMs for command. Arguments: DEBUG command: -- names: ["sso1", "sso2"] DEBUG command: -- options: {:provider=>nil} DEBUG command: Finding machine that match name: sso1 DEBUG environment: Default provider: `hyperv` DEBUG environment: Using forced default provider: `hyperv` INFO environment: Getting machine: sso1 (hyperv) INFO environment: Returning cached machine: sso1 (hyperv) DEBUG command: Finding machine that match name: sso2 DEBUG environment: Default provider: `hyperv` DEBUG environment: Using forced default provider: `hyperv` INFO environment: Getting machine: sso2 (hyperv) INFO environment: Returning cached machine: sso2 (hyperv) INFO command: With machine: sso1 (#, @driver=#, @logger=#, @mon_mutex_owner_object_id=24029820, @mon_owner=nil, @mon_count=0, @name="stderr", @level=0, @formatter=#>, @out=#>>], @additive=true, @name="vagrant", @path="", @parent=#, @level=1, @trace=false>, @level=1, @trace=false>, @cap_logger=#, @mon_mutex_owner_object_id=24029820, @mon_owner=nil, @mon_count=0, @name="stderr", @level=0, @formatter=#>, @out=#>>], @additive=true, @name="vagrant", @path="", @parent=#, @level=1, @trace=false>, @level=1, @trace=false>, @cap_host_chain=[[:hyperv, #<#:0x000000000372e720>]], @cap_args=[#], @cap_caps={:docker=>##, :proxy_machine=>#}, @results_cache={}>, :hyperv=>##, :snapshot_list=>#}, @results_cache={}>, :virtualbox=>##, :nic_mac_addresses=>#, :public_address=>#, :configure_disks=>#, :cleanup_disks=>#, :validate_disk_ext=>#, :get_default_disk_ext=>#, :snapshot_list=>#}, @results_cache={}>}>) INFO interface: info: Bringing machine 'sso1' up with 'hyperv' provider... Bringing machine 'sso1' up with 'hyperv' provider... INFO command: With machine: sso2 (#, @driver=#, @logger=#, @mon_mutex_owner_object_id=24029820, @mon_owner=nil, @mon_count=0, @name="stderr", @level=0, @formatter=#>, @out=#>>], @additive=true, @name="vagrant", @path="", @parent=#, @level=1, @trace=false>, @level=1, @trace=false>, @cap_logger=#, @mon_mutex_owner_object_id=24029820, @mon_owner=nil, @mon_count=0, @name="stderr", @level=0, @formatter=#>, @out=#>>], @additive=true, @name="vagrant", @path="", @parent=#, @level=1, @trace=false>, @level=1, @trace=false>, @cap_host_chain=[[:hyperv, #<#:0x000000000350f160>]], @cap_args=[#], @cap_caps={:docker=>##, :proxy_machine=>#}, @results_cache={}>, :hyperv=>##, :snapshot_list=>#}, @results_cache={}>, :virtualbox=>##, :nic_mac_addresses=>#, :public_address=>#, :configure_disks=>#, :cleanup_disks=>#, :validate_disk_ext=>#, :get_default_disk_ext=>#, :snapshot_list=>#}, @results_cache={}>}>) INFO interface: info: Bringing machine 'sso2' up with 'hyperv' provider... Bringing machine 'sso2' up with 'hyperv' provider... INFO batch_action: Enabling parallelization by default. INFO batch_action: Disabling parallelization because provider doesn't support it: hyperv INFO batch_action: Batch action will parallelize: false INFO batch_action: Starting action: # up {:destroy_on_error=>true, :install_provider=>false, :parallel=>true, :provision_ignore_sentinel=>false, :provision_types=>nil} INFO machine: Calling action: up on provider Hyper-V (new) DEBUG environment: Attempting to acquire process-lock: machine-action-74db7566ad2df4e6bdf4d42e3491dc46 DEBUG environment: Attempting to acquire process-lock: dotlock INFO environment: Acquired process lock: dotlock INFO environment: Released process lock: dotlock INFO environment: Acquired process lock: machine-action-74db7566ad2df4e6bdf4d42e3491dc46 INFO interface: Machine: action ["up", "start", {:target=>:sso1}] INFO host: Autodetecting host type for [#] DEBUG host: Trying: alt DEBUG host: Trying: arch DEBUG host: Trying: darwin DEBUG host: Trying: freebsd DEBUG host: Trying: gentoo DEBUG host: Trying: redhat DEBUG host: Trying: slackware DEBUG host: Trying: suse DEBUG host: Trying: void DEBUG host: Trying: bsd DEBUG host: Trying: linux INFO host: Detected: linux! INFO runner: Running action: machine_action_up # INFO warden: Calling IN action: # INFO interface: output: Verifying Hyper-V is enabled... INFO interface: output: ==> sso1: Verifying Hyper-V is enabled... ==> sso1: Verifying Hyper-V is enabled... INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/scripts/utils"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/scripts/check_hyperv.ps1"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\check_hyperv.ps1 DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "$env:PSModulePath=$env:PSModulePath+';\\\\wsl$\\Ubuntu-20.04\\opt\\vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\plugins\\providers\\hyperv\\scripts\\utils'; &('\\\\wsl$\\Ubuntu-20.04\\opt\\vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\plugins\\providers\\hyperv\\scripts\\check_hyperv.ps1')", "-ErrorAction", "Stop"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: ===Begin-Output=== DEBUG subprocess: stdout: DEBUG subprocess: stdout: { "result": true } DEBUG subprocess: stdout: DEBUG subprocess: stdout: ===End-Output=== DEBUG subprocess: stdout: DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999 DEBUG subprocess: Exit status: 0 INFO warden: Calling IN action: # INFO interface: output: Verifying Hyper-V is accessible... INFO interface: output: ==> sso1: Verifying Hyper-V is accessible... ==> sso1: Verifying Hyper-V is accessible... INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/machines/sso1/hyperv"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\home\bendem\projects\architecture.vdl\ansible-10-486.git\projects\sso\.vagrant\machines\sso1\hyperv DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/scripts/utils"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/scripts/check_hyperv_access.ps1"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\check_hyperv_access.ps1 DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "$env:PSModulePath=$env:PSModulePath+';\\\\wsl$\\Ubuntu-20.04\\opt\\vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\plugins\\providers\\hyperv\\scripts\\utils'; &('\\\\wsl$\\Ubuntu-20.04\\opt\\vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\plugins\\providers\\hyperv\\scripts\\check_hyperv_access.ps1')", "-Path", "'\\\\wsl$\\Ubuntu-20.04\\home\\bendem\\projects\\architecture.vdl\\ansible-10-486.git\\projects\\sso\\.vagrant\\machines\\sso1\\hyperv'", "-ErrorAction", "Stop"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: AVERTISSEMENT : Les noms de certaines commandes importées du module « VagrantVM » contiennent des verbes non approuvés qui peuvent les rendre moins détectables. Pour trouver les commandes comportant des verbes non approuvés, réexécutez la commande Import-Module avec le paramètre Verbose. Pour obtenir la liste des verbes approuvés, tapez Get-Verb. DEBUG subprocess: stderr: Get-ACL : La méthode a échoué avec le code d'erreur inattendu 1. Au caractère \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils\VagrantVM\VagrantVM.psm1:723 : 12 DEBUG subprocess: stderr: + $acl = Get-ACL -Path $Path + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-Acl], InvalidOperationException + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetAclCommand DEBUG subprocess: stderr: DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999 DEBUG subprocess: Exit status: 1 ERROR warden: Error occurred: An error occurred while executing a PowerShell script. This error is shown below. Please read the error message and see if this is a configuration error with your system. If it is not, then please report a bug. Script: check_hyperv_access.ps1 Error: Get-ACL : La méthode a échoué avec le code d'erreur inattendu 1. Au caractère \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils\VagrantVM\VagrantVM.psm1:723 : 12 + $acl = Get-ACL -Path $Path + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-Acl], InvalidOperationException + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetAclCommand INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO environment: Released process lock: machine-action-74db7566ad2df4e6bdf4d42e3491dc46 INFO environment: Running hook: environment_unload INFO runner: Running action: environment_unload # ERROR vagrant: Vagrant experienced an error! Details: ERROR vagrant: # ERROR vagrant: An error occurred while executing a PowerShell script. This error is shown below. Please read the error message and see if this is a configuration error with your system. If it is not, then please report a bug. Script: check_hyperv_access.ps1 Error: Get-ACL : La méthode a échoué avec le code d'erreur inattendu 1. Au caractère \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils\VagrantVM\VagrantVM.psm1:723 : 12 + $acl = Get-ACL -Path $Path + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-Acl], InvalidOperationException + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetAclCommand ERROR vagrant: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/driver.rb:67:in `execute' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/action/check_access.rb:11:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/action/check_enabled.rb:18:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builder.rb:116:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in `block in run' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/util/busy.rb:19:in `busy' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in `run' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:240:in `action_raw' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:212:in `block in action' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/environment.rb:613:in `lock' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in `action' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/batch_action.rb:86:in `block (2 levels) in run' INFO interface: error: An error occurred while executing a PowerShell script. This error is shown below. Please read the error message and see if this is a configuration error with your system. If it is not, then please report a bug. Script: check_hyperv_access.ps1 Error: Get-ACL : La méthode a échoué avec le code d'erreur inattendu 1. Au caractère \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils\VagrantVM\VagrantVM.psm1:723 : 12 + $acl = Get-ACL -Path $Path + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-Acl], InvalidOperationException + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetAclCommand An error occurred while executing a PowerShell script. This error is shown below. Please read the error message and see if this is a configuration error with your system. If it is not, then please report a bug. Script: check_hyperv_access.ps1 Error: Get-ACL : La méthode a échoué avec le code d'erreur inattendu 1. Au caractère \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils\VagrantVM\VagrantVM.psm1:723 : 12 + $acl = Get-ACL -Path $Path + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-Acl], InvalidOperationException + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetAclCommand INFO interface: Machine: error-exit ["VagrantPlugins::HyperV::Errors::PowerShellError", "An error occurred while executing a PowerShell script. This error\nis shown below. Please read the error message and see if this is\na configuration error with your system. If it is not, then please\nreport a bug.\n\nScript: check_hyperv_access.ps1\nError:\n\nGet-ACL : La m\xC3\xA9thode a \xC3\xA9chou\xC3\xA9 avec le code d'erreur inattendu 1.\nAu caract\xC3\xA8re \\\\wsl$\\Ubuntu-20.04\\opt\\vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\plugins\\providers\\hyperv\\scripts\\utils\\VagrantVM\\VagrantVM.psm1:723 : 12\n+ $acl = Get-ACL -Path $Path\n+ ~~~~~~~~~~~~~~~~~~~\n + CategoryInfo : NotSpecified: (:) [Get-Acl], InvalidOperationException\n + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetAclCommand\n \n"] ```

Expected behavior

Two VMs should have started

Actual behavior

(ansible) ➜  sso git:(master) ✗ vagrant up
Bringing machine 'sso1' up with 'hyperv' provider...
Bringing machine 'sso2' up with 'hyperv' provider...
==> sso1: Verifying Hyper-V is enabled...
==> sso1: Verifying Hyper-V is accessible...
An error occurred while executing a PowerShell script. This error
is shown below. Please read the error message and see if this is
a configuration error with your system. If it is not, then please
report a bug.

Script: check_hyperv_access.ps1
Error:

Get-ACL : La méthode a échoué avec le code d'erreur inattendu 1.
Au caractère \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils\VagrantVM\VagrantVM.psm1:723 : 12
+     $acl = Get-ACL -Path $Path
+            ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-Acl], InvalidOperationException
    + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetAclCommand

Steps to reproduce

  1. vagrant up

References

This is kinda linked to #11085 since they seem to have a related problem:

Now i just get ACL errors as PowerShell can't find the WSL2 directory so I get the impression this is a bit of a non-starter. ;-)

bendem commented 4 years ago

I have made the vagrant function always return $true, stuff breaks further:

``` ==> sso1: Verifying Hyper-V is accessible... INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/machines/sso1/hyperv"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\home\bendem\projects\architecture.vdl\ansible-10-486.git\projects\sso\.vagrant\machines\sso1\hyperv DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/scripts/utils"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/scripts/check_hyperv_access.ps1"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\check_hyperv_access.ps1 DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "$env:PSModulePath=$env:PSModulePath+';\\\\wsl$\\Ubuntu-20.04\\opt\\vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\plugins\\providers\\hyperv\\scripts\\utils'; &('\\\\wsl$\\Ubuntu-20.04\\opt\\vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\plugins\\providers\\hyperv\\scripts\\check_hyperv_access.ps1')", "-Path", "'\\\\wsl$\\Ubuntu-20.04\\home\\bendem\\projects\\architecture.vdl\\ansible-10-486.git\\projects\\sso\\.vagrant\\machines\\sso1\\hyperv'", "-ErrorAction", "Stop"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: AVERTISSEMENT : Les noms de certaines commandes importées du module « VagrantVM » contiennent des verbes non approuvés qui peuvent les rendre moins détectables. Pour trouver les commandes comportant des verbes non approuvés, réexécutez la commande Import-Module avec le paramètre Verbose. Pour obtenir la liste des verbes approuvés, tapez Get-Verb. DEBUG subprocess: stdout: ===Begin-Output=== DEBUG subprocess: stdout: DEBUG subprocess: stdout: { "root_dir": "\\", "result": true } DEBUG subprocess: stdout: DEBUG subprocess: stdout: ===End-Output=== DEBUG subprocess: stdout: DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999 DEBUG subprocess: Exit status: 0 INFO warden: Calling IN action: # INFO handle_box: Machine already has box. HandleBox will not run. INFO warden: Calling IN action: # INFO subprocess: Starting process: ["/bin/mount"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: rootfs on / type lxfs (rw,noatime) none on /dev type tmpfs (rw,noatime,mode=755) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime) proc on /proc type proc (rw,nosuid,nodev,noexec,noatime) devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,gid=5,mode=620) none on /run type tmpfs (rw,nosuid,noexec,noatime,mode=755) none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,noatime) none on /run/shm type tmpfs (rw,nosuid,nodev,noatime) none on /run/user type tmpfs (rw,nosuid,nodev,noexec,noatime,mode=755) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime) cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,mode=755) cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices) C:\ on /mnt/c type drvfs (rw,noatime,uid=1000,gid=1000,umask=22,fmask=11,metadata,case=off) DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO warden: Calling IN action: # INFO runner: Running action: machine_action_up # INFO warden: Calling IN action: # DEBUG is_state: Checking if machine state is 'not_created' DEBUG is_state: -- Machine state: not_created INFO warden: Calling OUT action: # INFO runner: Running action: machine_action_up # INFO warden: Calling IN action: # INFO warden: Calling IN action: # INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/scripts/utils"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/scripts/has_vmcx_support.ps1"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\has_vmcx_support.ps1 DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "$env:PSModulePath=$env:PSModulePath+';\\\\wsl$\\Ubuntu-20.04\\opt\\vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\plugins\\providers\\hyperv\\scripts\\utils'; &('\\\\wsl$\\Ubuntu-20.04\\opt\\vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\plugins\\providers\\hyperv\\scripts\\has_vmcx_support.ps1')", "-ErrorAction", "Stop"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: ===Begin-Output=== DEBUG subprocess: stdout: DEBUG subprocess: stdout: { "result": true } DEBUG subprocess: stdout: DEBUG subprocess: stdout: ===End-Output=== DEBUG subprocess: stdout: DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999 DEBUG subprocess: Exit status: 0 INFO import: Found box configuration path: /home/bendem/.vagrant.d/boxes/centos-VAGRANTSLASH-7/2004.01/hyperv/Virtual Machines/vm.XML INFO import: Found box image path: /home/bendem/.vagrant.d/boxes/centos-VAGRANTSLASH-7/2004.01/hyperv/Virtual Hard Disks/disk.vhd INFO interface: output: Importing a Hyper-V instance INFO interface: output: ==> sso1: Importing a Hyper-V instance ==> sso1: Importing a Hyper-V instance INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/home/bendem/.vagrant.d/boxes/centos-VAGRANTSLASH-7/2004.01/hyperv/Virtual Machines/vm.XML"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\home\bendem\.vagrant.d\boxes\centos-VAGRANTSLASH-7\2004.01\hyperv\Virtual Machines\vm.XML DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/machines/sso1/hyperv/Virtual Hard Disks/disk.vhd"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\home\bendem\projects\architecture.vdl\ansible-10-486.git\projects\sso\.vagrant\machines\sso1\hyperv\Virtual Hard Disks\disk.vhd DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/home/bendem/projects/architecture.vdl/ansible-10-486.git/projects/sso/.vagrant/machines/sso1/hyperv"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\home\bendem\projects\architecture.vdl\ansible-10-486.git\projects\sso\.vagrant\machines\sso1\hyperv DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/home/bendem/.vagrant.d/boxes/centos-VAGRANTSLASH-7/2004.01/hyperv/Virtual Hard Disks/disk.vhd"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\home\bendem\.vagrant.d\boxes\centos-VAGRANTSLASH-7\2004.01\hyperv\Virtual Hard Disks\disk.vhd DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO interface: detail: Creating and registering the VM... INFO interface: detail: sso1: Creating and registering the VM... sso1: Creating and registering the VM... INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/scripts/utils"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/bin/wslpath", "-w", "-a", "/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/scripts/import_vm.ps1"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\import_vm.ps1 DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "$env:PSModulePath=$env:PSModulePath+';\\\\wsl$\\Ubuntu-20.04\\opt\\vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\plugins\\providers\\hyperv\\scripts\\utils'; &('\\\\wsl$\\Ubuntu-20.04\\opt\\vagrant\\embedded\\gems\\2.2.9\\gems\\vagrant-2.2.9\\plugins\\providers\\hyperv\\scripts\\import_vm.ps1')", "-VMConfigFile", "'\\\\wsl$\\Ubuntu-20.04\\home\\bendem\\.vagrant.d\\boxes\\centos-VAGRANTSLASH-7\\2004.01\\hyperv\\Virtual Machines\\vm.XML'", "-DestinationPath", "'\\\\wsl$\\Ubuntu-20.04\\home\\bendem\\projects\\architecture.vdl\\ansible-10-486.git\\projects\\sso\\.vagrant\\machines\\sso1\\hyperv\\Virtual Hard Disks\\disk.vhd'", "-DataPath", "'\\\\wsl$\\Ubuntu-20.04\\home\\bendem\\projects\\architecture.vdl\\ansible-10-486.git\\projects\\sso\\.vagrant\\machines\\sso1\\hyperv'", "-SourcePath", "'\\\\wsl$\\Ubuntu-20.04\\home\\bendem\\.vagrant.d\\boxes\\centos-VAGRANTSLASH-7\\2004.01\\hyperv\\Virtual Hard Disks\\disk.vhd'", "-VMName", "''", "-ErrorAction", "Stop"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: AVERTISSEMENT : Les noms de certaines commandes importées du module « VagrantVM » contiennent des verbes non approuvés qui peuvent les rendre moins détectables. Pour trouver les commandes comportant des verbes non approuvés, réexécutez la commande Import-Module avec le paramètre Verbose. Pour obtenir la liste des verbes approuvés, tapez Get-Verb. DEBUG subprocess: stdout: ===Begin-Error=== DEBUG subprocess: stdout: { "error": "\u0027centos-7-1-1.x86_64\u0027 n’a pas pu ajouter les ressources à \u0027centos-7-1-1.x86_64\u0027.\n\nUne erreur inattendue s’est produite : Nom de réseau introuvable. (0x80070043).\r\n\r\n\u0027centos-7-1-1.x86_64\u0027 n’a pas pu ajouter les ressources. (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA)\n\n« centos-7-1-1.x86_64 » a rencontré une erreur inattendue : Nom de réseau introuvable. (0x80070043). (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA)" } DEBUG subprocess: stdout: DEBUG subprocess: stdout: ===End-Error=== DEBUG subprocess: stdout: DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31973 DEBUG subprocess: Exit status: 1 ERROR warden: Error occurred: An error occurred while executing a PowerShell script. This error is shown below. Please read the error message and see if this is a configuration error with your system. If it is not, then please report a bug. Script: import_vm.ps1 Error: 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources à 'centos-7-1-1.x86_64'. Une erreur inattendue s’est produite : Nom de réseau introuvable. (0x80070043). 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources. (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) « centos-7-1-1.x86_64 » a rencontré une erreur inattendue : Nom de réseau introuvable. (0x80070043). (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: An error occurred while executing a PowerShell script. This error is shown below. Please read the error message and see if this is a configuration error with your system. If it is not, then please report a bug. Script: import_vm.ps1 Error: 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources à 'centos-7-1-1.x86_64'. Une erreur inattendue s’est produite : Nom de réseau introuvable. (0x80070043). 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources. (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) « centos-7-1-1.x86_64 » a rencontré une erreur inattendue : Nom de réseau introuvable. (0x80070043). (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: An error occurred while executing a PowerShell script. This error is shown below. Please read the error message and see if this is a configuration error with your system. If it is not, then please report a bug. Script: import_vm.ps1 Error: 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources à 'centos-7-1-1.x86_64'. Une erreur inattendue s’est produite : Nom de réseau introuvable. (0x80070043). 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources. (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) « centos-7-1-1.x86_64 » a rencontré une erreur inattendue : Nom de réseau introuvable. (0x80070043). (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) INFO warden: Beginning recovery process... INFO warden: Calling recover: # INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO environment: Released process lock: machine-action-74db7566ad2df4e6bdf4d42e3491dc46 INFO environment: Running hook: environment_unload INFO runner: Running action: environment_unload # ERROR vagrant: Vagrant experienced an error! Details: ERROR vagrant: # ERROR vagrant: An error occurred while executing a PowerShell script. This error is shown below. Please read the error message and see if this is a configuration error with your system. If it is not, then please report a bug. Script: import_vm.ps1 Error: 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources à 'centos-7-1-1.x86_64'. Une erreur inattendue s’est produite : Nom de réseau introuvable. (0x80070043). 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources. (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) « centos-7-1-1.x86_64 » a rencontré une erreur inattendue : Nom de réseau introuvable. (0x80070043). (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) ERROR vagrant: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/driver.rb:61:in `execute' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/driver.rb:146:in `import' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/action/import.rb:74:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:107:in `block in finalize_action' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builder.rb:116:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in `block in run' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/util/busy.rb:19:in `busy' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in `run' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builtin/call.rb:53:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builtin/config_validate.rb:25:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builtin/handle_box.rb:56:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/action/check_access.rb:19:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/providers/hyperv/action/check_enabled.rb:18:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builder.rb:116:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in `block in run' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/util/busy.rb:19:in `busy' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in `run' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:240:in `action_raw' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:212:in `block in action' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/environment.rb:613:in `lock' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in `call' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in `action' /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/batch_action.rb:86:in `block (2 levels) in run' INFO interface: error: An error occurred while executing a PowerShell script. This error is shown below. Please read the error message and see if this is a configuration error with your system. If it is not, then please report a bug. Script: import_vm.ps1 Error: 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources à 'centos-7-1-1.x86_64'. Une erreur inattendue s’est produite : Nom de réseau introuvable. (0x80070043). 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources. (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) « centos-7-1-1.x86_64 » a rencontré une erreur inattendue : Nom de réseau introuvable. (0x80070043). (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) An error occurred while executing a PowerShell script. This error is shown below. Please read the error message and see if this is a configuration error with your system. If it is not, then please report a bug. Script: import_vm.ps1 Error: 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources à 'centos-7-1-1.x86_64'. Une erreur inattendue s’est produite : Nom de réseau introuvable. (0x80070043). 'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources. (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) « centos-7-1-1.x86_64 » a rencontré une erreur inattendue : Nom de réseau introuvable. (0x80070043). (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA) INFO interface: Machine: error-exit ["VagrantPlugins::HyperV::Errors::PowerShellError", "An error occurred while executing a PowerShell script. This error\nis shown below. Please read the error message and see if this is\na configuration error with your system. If it is not, then please\nreport a bug.\n\nScript: import_vm.ps1\nError:\n\n'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources à 'centos-7-1-1.x86_64'.\n\nUne erreur inattendue s’est produite : Nom de réseau introuvable. (0x80070043).\r\n\r\n'centos-7-1-1.x86_64' n’a pas pu ajouter les ressources. (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA)\n\n« centos-7-1-1.x86_64 » a rencontré une erreur inattendue : Nom de réseau introuvable. (0x80070043). (ID d’ordinateur virtuel 61ED1DCE-E32B-48A6-BC22-2F8CFCD4FEAA)"] ```
bendem commented 4 years ago

The error seems to be coming from this line in import_vm because the path where vagrant stores the disk in inside the WSL filesystem.

https://github.com/hashicorp/vagrant/blob/34747cafd681f3a3a8636e8d5d426e2f2241b474/plugins/providers/hyperv/scripts/utils/VagrantVM/VagrantVM.psm1#L276

DEBUG subprocess: stdout:
DEBUG subprocess: stdout: hello ====================================
DEBUG subprocess: stdout:
DEBUG subprocess: stdout: \\wsl$\Ubuntu-20.04\home\bendem\projects\VMs\vdl-centos8\.vagrant\machines\default\hyperv\Virtual Hard Disks\packer-hyperv-iso.vhdx
DEBUG subprocess: stdout:
DEBUG subprocess: stdout: ===Begin-Error===
DEBUG subprocess: stdout:
DEBUG subprocess: stdout: {
    "error":  "\u0027packer-hyperv-iso\u0027 n’a pas pu ajouter les ressources à \u0027packer-hyperv-iso\u0027.\n\nUne erreur inattendue s’est produite : Nom de réseau introuvable. (0x80070043).\r\n\r\n\u0027packer-hyperv-iso\u0027 n’a pas pu ajouter les ressources. (ID d’ordinateur virtuel 277A9E18-645C-471A-A7A7-514CD41B20AB)\n\n« packer-hyperv-iso » a rencontré une erreur inattendue : Nom de réseau introuvable. (0x80070043). (ID d’ordinateur virtuel 277A9E18-645C-471A-A7A7-514CD41B20AB)"
}
===End-Error===
DEBUG subprocess: stdout: 'packer-hyperv-iso' n’a pas pu ajouter les ressources à 'packer-hyperv-iso'.

Une erreur inattendue s’est produite : Nom de réseau introuvable. (0x80070043).

'packer-hyperv-iso' n’a pas pu ajouter les ressources. (ID d’ordinateur virtuel 277A9E18-645C-471A-A7A7-514CD41B20AB)

« packer-hyperv-iso » a rencontré une erreur inattendue : Nom de réseau introuvable. (0x80070043). (ID d’ordinateur virtuel 277A9E18-645C-471A-A7A7-514CD41B20AB)
DEBUG subprocess: stdout: à New-VagrantVMXML, \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils\VagrantVM\VagrantVM.psm1 : ligne 278
à New-VagrantVM, \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\utils\VagrantVM\VagrantVM.psm1 : ligne 22
à <ScriptBlock>, \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.9\gems\vagrant-2.2.9\plugins\providers\hyperv\scripts\import_vm.ps1 : ligne 27
à <ScriptBlock>, <Aucun fichier> : ligne 1
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31979
DEBUG subprocess: Exit status: 1
bendem commented 4 years ago

Building on that, setting VAGRANT_DOTFILE_PATH to a path under the windows filesystem fixes the problem but you have to make sure to set it to a different path otherwise VMs overwrite each other.

VAGRANT_DOTFILE_PATH="/mnt/c/vagrant-tmp/centos8-001" vagrant up

Another fix is to run vagrant from a directory inside the windows filesystem.

All that testing was done with these variables set as mentionned in https://www.vagrantup.com/docs/other/wsl.html:

VAGRANT_WSL_ENABLE_WINDOWS_ACCESS=1
VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH=/mnt/c/vagrant-tmp
VAGRANT_DEFAULT_PROVIDER=hyperv