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

Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated." #11271

Closed tzilber-sq-zz closed 4 years ago

tzilber-sq-zz commented 4 years ago

Vagrant version

Vagrant 2.2.6

Host operating system

Windows 10

Debug output

 INFO manager: Registered plugin: BSD host
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/hosts/darwin/plugin.rb
 INFO manager: Registered plugin: Mac OS X host
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/hosts/freebsd/plugin.rb
 INFO manager: Registered plugin: FreeBSD host
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/hosts/gentoo/plugin.rb
 INFO manager: Registered plugin: Gentoo host
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/hosts/linux/plugin.rb
 INFO manager: Registered plugin: Linux host
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/hosts/null/plugin.rb
 INFO manager: Registered plugin: null host
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/hosts/redhat/plugin.rb
 INFO manager: Registered plugin: Red Hat Enterprise Linux host
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/hosts/slackware/plugin.rb
 INFO manager: Registered plugin: Slackware host
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/hosts/suse/plugin.rb
 INFO manager: Registered plugin: SUSE host
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/hosts/void/plugin.rb
 INFO manager: Registered plugin: Void host
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/hosts/windows/plugin.rb
 INFO manager: Registered plugin: Windows host
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/kernel_v1/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/kernel_v2/plugin.rb
 INFO manager: Registered plugin: kernel
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/docker/plugin.rb
 INFO manager: Registered plugin: docker-provider
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/hyperv/plugin.rb
 INFO manager: Registered plugin: Hyper-V provider
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb
 INFO manager: Registered plugin: VirtualBox provider
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/provisioners/ansible/plugin.rb
 INFO manager: Registered plugin: ansible
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/provisioners/cfengine/plugin.rb
 INFO manager: Registered plugin: CFEngine Provisioner
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/provisioners/chef/plugin.rb
 INFO manager: Registered plugin: chef
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/provisioners/docker/plugin.rb
 INFO manager: Registered plugin: docker
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/provisioners/file/plugin.rb
 INFO manager: Registered plugin: file
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/provisioners/puppet/plugin.rb
 INFO manager: Registered plugin: puppet
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/provisioners/salt/plugin.rb
 INFO manager: Registered plugin: salt
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/provisioners/shell/plugin.rb
 INFO manager: Registered plugin: shell
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/pushes/atlas/plugin.rb
 INFO manager: Registered plugin: atlas
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/pushes/ftp/plugin.rb
 INFO manager: Registered plugin: ftp
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/pushes/heroku/plugin.rb
 INFO manager: Registered plugin: heroku
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/pushes/local-exec/plugin.rb
 INFO manager: Registered plugin: local-exec
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/pushes/noop/plugin.rb
 INFO manager: Registered plugin: noop
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/synced_folders/nfs/plugin.rb
 INFO manager: Registered plugin: NFS synced folders
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/synced_folders/rsync/plugin.rb
 INFO manager: Registered plugin: RSync synced folders
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/synced_folders/smb/plugin.rb
 INFO manager: Registered plugin: SMB synced folders
 INFO vagrant: `vagrant` invoked: ["up", "--debug"]
DEBUG vagrant: Creating Vagrant environment
 INFO environment: Environment initialized (#<Vagrant::Environment:0x0000000004d6d6f8>)
 INFO environment:   - cwd: C:/WINDOWS/system32/Skadi/Vagrant/skadi_server/virtualbox
 INFO environment: Home path: C:/Users/Tim/.vagrant.d
DEBUG environment: Effective local data path: C:/WINDOWS/system32/Skadi/Vagrant/skadi_server/virtualbox/.vagrant
 INFO environment: Local data path: C:/WINDOWS/system32/Skadi/Vagrant/skadi_server/virtualbox/.vagrant
DEBUG environment: Creating: C:/WINDOWS/system32/Skadi/Vagrant/skadi_server/virtualbox/.vagrant
DEBUG manager: Enabling localized plugins
 INFO manager: Plugins:
DEBUG bundler: Current generated plugin dependency list: []
DEBUG bundler: Generating new builtin set instance.
DEBUG bundler: Generating new plugin set instance. Skip gems - []
DEBUG bundler: Activating solution set: []
 INFO manager: Loading plugins...
DEBUG manager: Enabling globalized plugins
 INFO manager: Plugins:
DEBUG bundler: Current generated plugin dependency list: []
DEBUG bundler: Generating new builtin set instance.
DEBUG bundler: Generating new plugin set instance. Skip gems - []
DEBUG bundler: Activating solution set: []
 INFO manager: Loading plugins...
 INFO loader: Set :root = ["#<Pathname:C:/WINDOWS/system32/Skadi/Vagrant/skadi_server/virtualbox/Vagrantfile>"]
DEBUG loader: Populating proc cache for #<Pathname:C:/WINDOWS/system32/Skadi/Vagrant/skadi_server/virtualbox/Vagrantfile>
DEBUG loader: Load procs for pathname: C:/WINDOWS/system32/Skadi/Vagrant/skadi_server/virtualbox/Vagrantfile
 INFO loader: Loading configuration in order: [:home, :root]
DEBUG loader: Loading from: root (evaluating)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 INFO subprocess: Starting process: ["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: 28
DEBUG subprocess: Exit status: 0
 INFO subprocess: Starting process: ["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: True
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31997
DEBUG subprocess: Exit status: 0
DEBUG base: Windows, checking for VBoxManage on PATH first
DEBUG base: Windows. Trying VBOX_INSTALL_PATH for VBoxManage
DEBUG base: VBOX_INSTALL_PATH value: C:\Program Files\Oracle\VirtualBox\
 INFO base: VBoxManage path: C:/Program Files/Oracle/VirtualBox/VBoxManage.exe
 INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "--version"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: 6.1.0r135406
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
DEBUG meta: Finding driver for VirtualBox version: 6.1.0
DEBUG environment: Initial usable provider list: [[4, :hyperv]]
DEBUG environment: Priority sorted usable provider list: [:hyperv]
DEBUG environment: Preferred provider list: []
DEBUG environment: Using provider `hyperv` as it is the highest priority in the usable list.
DEBUG base: Windows, checking for VBoxManage on PATH first
DEBUG base: Windows. Trying VBOX_INSTALL_PATH for VBoxManage
DEBUG base: VBOX_INSTALL_PATH value: C:\Program Files\Oracle\VirtualBox\
 INFO base: VBoxManage path: C:/Program Files/Oracle/VirtualBox/VBoxManage.exe
DEBUG meta: Finding driver for VirtualBox version: 6.1.0
DEBUG environment: Initial usable provider list: [[4, :hyperv]]
DEBUG environment: Priority sorted usable provider list: [:hyperv]
DEBUG environment: Preferred provider list: []
DEBUG environment: Using provider `hyperv` as it is the highest priority in the usable list.
 INFO loader: Set "19091400_machine_skadi_server" = []
 INFO loader: Loading configuration in order: [:home, :root, "19091400_machine_skadi_server"]
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 INFO box_collection: Box not found: skadivm/skadi_server (hyperv)
 WARN vagrantfile: Failed to locate skadivm/skadi_server with version
 WARN vagrantfile: Performing lookup with inital values skadivm/skadi_server with version
 INFO box_collection: Box not found: skadivm/skadi_server (hyperv)
 INFO box_collection: Box not found: skadivm/skadi_server (hyperv)
 INFO environment: Running hook: environment_plugins_loaded
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: environment_plugins_loaded #<Vagrant::Action::Builder:0x0000000004785e98>
 INFO environment: Running hook: environment_load
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: environment_load #<Vagrant::Action::Builder:0x0000000004573c18>
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: ["skadi_server"]
DEBUG command:  -- options: {:provider=>nil}
DEBUG command: Finding machine that match name: skadi_server
 INFO loader: Set "19091400_machine_skadi_server" = []
 INFO loader: Loading configuration in order: [:home, :root, "19091400_machine_skadi_server"]
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 WARN vagrantfile: Failed to locate skadivm/skadi_server with version
 WARN vagrantfile: Performing lookup with inital values skadivm/skadi_server with version
DEBUG base: Windows, checking for VBoxManage on PATH first
DEBUG base: Windows. Trying VBOX_INSTALL_PATH for VBoxManage
DEBUG base: VBOX_INSTALL_PATH value: C:\Program Files\Oracle\VirtualBox\
 INFO base: VBoxManage path: C:/Program Files/Oracle/VirtualBox/VBoxManage.exe
DEBUG meta: Finding driver for VirtualBox version: 6.1.0
DEBUG environment: Initial usable provider list: [[4, :hyperv]]
DEBUG environment: Priority sorted usable provider list: [:hyperv]
DEBUG environment: Preferred provider list: []
DEBUG environment: Using provider `hyperv` as it is the highest priority in the usable list.
 INFO environment: Getting machine: skadi_server (hyperv)
 INFO environment: Uncached load of machine.
 INFO loader: Set "19091400_machine_skadi_server" = []
 INFO loader: Loading configuration in order: [:home, :root, "19091400_machine_skadi_server"]
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 INFO box_collection: Box not found: skadivm/skadi_server (hyperv)
 WARN vagrantfile: Failed to locate skadivm/skadi_server with version
 WARN vagrantfile: Performing lookup with inital values skadivm/skadi_server with version
 INFO box_collection: Box not found: skadivm/skadi_server (hyperv)
 INFO box_collection: Box not found: skadivm/skadi_server (hyperv)
 INFO machine: Initializing machine: skadi_server
 INFO machine:   - Provider: VagrantPlugins::HyperV::Provider
 INFO machine:   - Box:
 INFO machine:   - Data dir: C:/WINDOWS/system32/Skadi/Vagrant/skadi_server/virtualbox/.vagrant/machines/skadi_server/hyperv
 INFO machine: New machine ID: nil
 INFO interface: Machine: metadata ["provider", :hyperv, {:target=>:skadi_server}]
 INFO command: With machine: skadi_server (#<VagrantPlugins::HyperV::Provider:0x00000000032f5528 @machine=#<Vagrant::Machine: skadi_server (VagrantPlugins::HyperV::Provider)>, @driver=#<VagrantPlugins::HyperV::Driver:0x00000000048373f0 @vm_id=nil>, @logger=#<Log4r::Logger:0x00000000032f5410 @fullname="vagrant::hyperv::provider", @outputters=[], @additive=true, @name="provider", @path="vagrant::hyperv", @parent=#<VagrantLogger:0x0000000003567450 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000000034b0b38 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x00000000034b0ac0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x0000000004edc5e8 @formatter=#<Log4r::BasicFormatter:0x0000000003477a68 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000000035671f8 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @cap_logger=#<Log4r::Logger:0x00000000048ebb98 @fullname="vagrant::capability_host::vagrantplugins::hyperv::provider", @outputters=[], @additive=true, @name="provider", @path="vagrant::capability_host::vagrantplugins::hyperv", @parent=#<VagrantLogger:0x0000000003567450 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000000034b0b38 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x00000000034b0ac0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x0000000004edc5e8 @formatter=#<Log4r::BasicFormatter:0x0000000003477a68 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000000035671f8 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @cap_host_chain=[[:hyperv, #<#<Class:0x00000000048f0440>:0x000000000484de70>]], @cap_args=[#<Vagrant::Machine: skadi_server (VagrantPlugins::HyperV::Provider)>], @cap_caps={:docker=>#<Vagrant::Registry:0x00000000048f0260 @items={:public_address=>#<Proc:0x0000000004d8f780@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/docker/plugin.rb:60>, :proxy_machine=>#<Proc:0x0000000004d8f5f0@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/docker/plugin.rb:65>}, @results_cache={}>, :hyperv=>#<Vagrant::Registry:0x00000000048f00f8 @items={:public_address=>#<Proc:0x0000000002479148@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/hyperv/plugin.rb:25>, :snapshot_list=>#<Proc:0x0000000002478c48@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/hyperv/plugin.rb:30>}, @results_cache={}>, :virtualbox=>#<Vagrant::Registry:0x00000000048ebf80 @items={:forwarded_ports=>#<Proc:0x0000000004d74ea8@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb:27>, :nic_mac_addresses=>#<Proc:0x0000000004d74e08@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb:32>, :public_address=>#<Proc:0x0000000004d74de0@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb:37>, :snapshot_list=>#<Proc:0x0000000004d74db8@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb:42>}, @results_cache={}>}>)
DEBUG command: Getting target VMs for command. Arguments:
DEBUG command:  -- names: ["skadi_server"]
DEBUG command:  -- options: {:provider=>nil}
DEBUG command: Finding machine that match name: skadi_server
 INFO loader: Set "19091400_machine_skadi_server" = []
 INFO loader: Loading configuration in order: [:home, :root, "19091400_machine_skadi_server"]
DEBUG loader: Loading from: root (cache)
DEBUG loader: Configuration loaded successfully, finalizing and returning
DEBUG push: finalizing
 WARN vagrantfile: Failed to locate skadivm/skadi_server with version
 WARN vagrantfile: Performing lookup with inital values skadivm/skadi_server with version
DEBUG base: Windows, checking for VBoxManage on PATH first
DEBUG base: Windows. Trying VBOX_INSTALL_PATH for VBoxManage
DEBUG base: VBOX_INSTALL_PATH value: C:\Program Files\Oracle\VirtualBox\
 INFO base: VBoxManage path: C:/Program Files/Oracle/VirtualBox/VBoxManage.exe
DEBUG meta: Finding driver for VirtualBox version: 6.1.0
DEBUG environment: Initial usable provider list: [[4, :hyperv]]
DEBUG environment: Priority sorted usable provider list: [:hyperv]
DEBUG environment: Preferred provider list: []
DEBUG environment: Using provider `hyperv` as it is the highest priority in the usable list.
 INFO environment: Getting machine: skadi_server (hyperv)
 INFO environment: Returning cached machine: skadi_server (hyperv)
 INFO command: With machine: skadi_server (#<VagrantPlugins::HyperV::Provider:0x00000000032f5528 @machine=#<Vagrant::Machine: skadi_server (VagrantPlugins::HyperV::Provider)>, @driver=#<VagrantPlugins::HyperV::Driver:0x00000000048373f0 @vm_id=nil>, @logger=#<Log4r::Logger:0x00000000032f5410 @fullname="vagrant::hyperv::provider", @outputters=[], @additive=true, @name="provider", @path="vagrant::hyperv", @parent=#<VagrantLogger:0x0000000003567450 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000000034b0b38 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x00000000034b0ac0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x0000000004edc5e8 @formatter=#<Log4r::BasicFormatter:0x0000000003477a68 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000000035671f8 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @cap_logger=#<Log4r::Logger:0x00000000048ebb98 @fullname="vagrant::capability_host::vagrantplugins::hyperv::provider", @outputters=[], @additive=true, @name="provider", @path="vagrant::capability_host::vagrantplugins::hyperv", @parent=#<VagrantLogger:0x0000000003567450 @fullname="vagrant", @outputters=[#<Log4r::StderrOutputter:0x00000000034b0b38 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x00000000034b0ac0>, @name="stderr", @level=0, @formatter=#<Vagrant::Util::LoggingFormatter:0x0000000004edc5e8 @formatter=#<Log4r::BasicFormatter:0x0000000003477a68 @depth=7>>, @out=#<IO:<STDERR>>>], @additive=true, @name="vagrant", @path="", @parent=#<Log4r::RootLogger:0x00000000035671f8 @level=0, @outputters=[]>, @level=1, @trace=false>, @level=1, @trace=false>, @cap_host_chain=[[:hyperv, #<#<Class:0x00000000048f0440>:0x000000000484de70>]], @cap_args=[#<Vagrant::Machine: skadi_server (VagrantPlugins::HyperV::Provider)>], @cap_caps={:docker=>#<Vagrant::Registry:0x00000000048f0260 @items={:public_address=>#<Proc:0x0000000004d8f780@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/docker/plugin.rb:60>, :proxy_machine=>#<Proc:0x0000000004d8f5f0@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/docker/plugin.rb:65>}, @results_cache={}>, :hyperv=>#<Vagrant::Registry:0x00000000048f00f8 @items={:public_address=>#<Proc:0x0000000002479148@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/hyperv/plugin.rb:25>, :snapshot_list=>#<Proc:0x0000000002478c48@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/hyperv/plugin.rb:30>}, @results_cache={}>, :virtualbox=>#<Vagrant::Registry:0x00000000048ebf80 @items={:forwarded_ports=>#<Proc:0x0000000004d74ea8@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb:27>, :nic_mac_addresses=>#<Proc:0x0000000004d74e08@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb:32>, :public_address=>#<Proc:0x0000000004d74de0@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb:37>, :snapshot_list=>#<Proc:0x0000000004d74db8@C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb:42>}, @results_cache={}>}>)
 INFO interface: info: Bringing machine 'skadi_server' up with 'hyperv' provider...
Bringing machine 'skadi_server' 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: #<Vagrant::Machine:0x0000000004b342d8> 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-01cae5cc094d372f1a6cd992dd8d14b0
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-01cae5cc094d372f1a6cd992dd8d14b0
 INFO interface: Machine: action ["up", "start", {:target=>:skadi_server}]
 INFO host: Autodetecting host type for [#<Vagrant::Environment: C:/WINDOWS/system32/Skadi/Vagrant/skadi_server/virtualbox>]
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
DEBUG host: Trying: null
DEBUG host: Trying: windows
 INFO host: Detected: windows!
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 2 hooks defined.
 INFO runner: Running action: machine_action_up #<Vagrant::Action::Builder:0x0000000004b1ccf0>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::BeforeTriggerAction:0x00000000032e6c80>
 INFO warden: Calling IN action: #<VagrantPlugins::HyperV::Action::CheckEnabled:0x00000000032e6c58>
 INFO interface: output: Verifying Hyper-V is enabled...
 INFO interface: output: ==> skadi_server: Verifying Hyper-V is enabled...
==> skadi_server: Verifying Hyper-V is enabled...
 INFO subprocess: Starting process: ["C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\/powershell.EXE", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "$env:PSModulePath=$env:PSModulePath+';C:\\HashiCorp\\Vagrant\\embedded\\gems\\2.2.6\\gems\\vagrant-2.2.6\\plugins\\providers\\hyperv\\scripts\\utils'; &('C:\\HashiCorp\\Vagrant\\embedded\\gems\\2.2.6\\gems\\vagrant-2.2.6\\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===
{
    "result":  true
}
===End-Output===
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31997
DEBUG subprocess: Exit status: 0
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::AfterTriggerAction:0x00000000032e6c30>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::BeforeTriggerAction:0x00000000032e6b90>
 INFO warden: Calling IN action: #<VagrantPlugins::HyperV::Action::CheckAccess:0x00000000032e6b40>
 INFO interface: output: Verifying Hyper-V is accessible...
 INFO interface: output: ==> skadi_server: Verifying Hyper-V is accessible...
==> skadi_server: Verifying Hyper-V is accessible...
 INFO subprocess: Starting process: ["C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\/powershell.EXE", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "$env:PSModulePath=$env:PSModulePath+';C:\\HashiCorp\\Vagrant\\embedded\\gems\\2.2.6\\gems\\vagrant-2.2.6\\plugins\\providers\\hyperv\\scripts\\utils'; &('C:\\HashiCorp\\Vagrant\\embedded\\gems\\2.2.6\\gems\\vagrant-2.2.6\\plugins\\providers\\hyperv\\scripts\\check_hyperv_access.ps1')", "-Path", "'C:\\WINDOWS\\system32\\Skadi\\Vagrant\\skadi_server\\virtualbox\\.vagrant\\machines\\skadi_server\\hyperv'", "-ErrorAction", "Stop"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: WARNING: The names of some imported commands from the module 'VagrantVM' include unapproved verbs that might make them
less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose
parameter. For a list of approved verbs, type Get-Verb.
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31997
DEBUG subprocess: Exit status: 1
DEBUG subprocess: stderr: where : Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At C:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\hyperv\scripts\utils\VagrantVM\Vagrant
VM.psm1:724 char:32
+     $systemACL = $acl.Access | where {
+                                ~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Where-Object], MethodInvocationException
    + FullyQualifiedErrorId : IdentityNotMappedException,Microsoft.PowerShell.Commands.WhereObjectCommand

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:

where : Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At C:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\hyperv\scripts\utils\VagrantVM\Vagrant
VM.psm1:724 char:32
+     $systemACL = $acl.Access | where {
+                                ~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Where-Object], MethodInvocationException
    + FullyQualifiedErrorId : IdentityNotMappedException,Microsoft.PowerShell.Commands.WhereObjectCommand

 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 warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Released process lock: machine-action-01cae5cc094d372f1a6cd992dd8d14b0
 INFO environment: Running hook: environment_unload
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: environment_unload #<Vagrant::Action::Builder:0x0000000004872d60>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<VagrantPlugins::HyperV::Errors::PowerShellError: 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:

where : Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At C:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\hyperv\scripts\utils\VagrantVM\Vagrant
VM.psm1:724 char:32
+     $systemACL = $acl.Access | where {
+                                ~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Where-Object], MethodInvocationException
    + FullyQualifiedErrorId : IdentityNotMappedException,Microsoft.PowerShell.Commands.WhereObjectCommand

>
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:

where : Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At C:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\hyperv\scripts\utils\VagrantVM\Vagrant
VM.psm1:724 char:32
+     $systemACL = $acl.Access | where {
+                                ~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Where-Object], MethodInvocationException
    + FullyQualifiedErrorId : IdentityNotMappedException,Microsoft.PowerShell.Commands.WhereObjectCommand

ERROR vagrant: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/hyperv/driver.rb:66:in `execute'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/hyperv/action/check_access.rb:11:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/action/warden.rb:50:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/action/builtin/before_trigger.rb:23:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/action/warden.rb:50:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/action/builtin/after_trigger.rb:26:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/action/warden.rb:50:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/hyperv/action/check_enabled.rb:18:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/action/warden.rb:50:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/action/builtin/before_trigger.rb:23:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/action/warden.rb:50:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/action/builder.rb:116:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/action/runner.rb:102:in `block in run'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/util/busy.rb:19:in `busy'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/action/runner.rb:102:in `run'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/machine.rb:238:in `action_raw'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/machine.rb:209:in `block in action'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:613:in `lock'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/machine.rb:195:in `call'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/machine.rb:195:in `action'
C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/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:

where : Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At C:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\hyperv\scripts\utils\VagrantVM\Vagrant
VM.psm1:724 char:32
+     $systemACL = $acl.Access | where {
+                                ~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Where-Object], MethodInvocationException
    + FullyQualifiedErrorId : IdentityNotMappedException,Microsoft.PowerShell.Commands.WhereObjectCommand

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:

where : Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At C:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\hyperv\scripts\utils\VagrantVM\Vagrant
VM.psm1:724 char:32
+     $systemACL = $acl.Access | where {
+                                ~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Where-Object], MethodInvocationException
    + FullyQualifiedErrorId : IdentityNotMappedException,Microsoft.PowerShell.Commands.WhereObjectCommand

 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\nwhere : Exception calling \"Translate\" with \"1\" argument(s): \"Some or all identity references could not be translated.\"\nAt C:\\HashiCorp\\Vagrant\\embedded\\gems\\2.2.6\\gems\\vagrant-2.2.6\\plugins\\providers\\hyperv\\scripts\\utils\\VagrantVM\\Vagrant\nVM.psm1:724 char:32\n+     $systemACL = $acl.Access | where {\n+                                ~~~~~~~\n    + CategoryInfo          : NotSpecified: (:) [Where-Object], MethodInvocationException\n    + FullyQualifiedErrorId : IdentityNotMappedException,Microsoft.PowerShell.Commands.WhereObjectCommand\n \n"]

Expected behavior

Vagrant opens

Actual behavior

Script: check_hyperv_access.ps1
Error:

where : Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At C:\HashiCorp\Vagrant\embedded\gems\2.2.6\gems\vagrant-2.2.6\plugins\providers\hyperv\scripts\utils\VagrantVM\Vagrant
VM.psm1:724 char:32
+     $systemACL = $acl.Access | where {
+                                ~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Where-Object], MethodInvocationException
    + FullyQualifiedErrorId : IdentityNotMappedException,Microsoft.PowerShell.Commands.WhereObjectCommand

Steps to reproduce

  1. cd .\Skadi\Vagrant\skadi_server\virtualbox\
  2. vagrant up
cbj4074 commented 4 years ago

Same issue here. No workaround? Was this introduced in Vagrant 2.2.6, and if so, is it worth trying to downgrade?

cbj4074 commented 4 years ago

Downgrading to 2.2.5 does not fix it, nor does downgrading Windows 10 from 1909 to 1903 (since I thought that may be a factor), but simply removing the body of the function in question and inserting return $true in its place allows Vagrant to proceed past this check.

Hardly a solution, but if, like most of us, your entire professional life requires Vagrant in some form or another, you can move on with life. :)

I'll add whatever I can to help identify the root-cause here as time permits. From what little debugging I've been able to do, it seems like a SID cannot be translated to an account or similar.

nwent commented 4 years ago

I'm getting the same issue. :(

OnceUponALoop commented 4 years ago

@nwent I observed this same issue when I ran vagrant from inside C:\Windows\System32 (since that's where launching an administrative powershell console defaults to).

@tzilber It's likely you have the same issue as your log indicates you're running from C:\Windows\System32

INFO environment:   - cwd: C:/WINDOWS/system32/Skadi/Vagrant/skadi_server/virtualbox

Navigate to a temporary folder and try again - it should resolve the issue. The fix (#11271) is only going to stop it from failing with an error - in which case it'll just report failed access if you're running from system32

You can validate by running the failing powershell manually

#----------------------------------
# Successfully Running in C:\Temp
#----------------------------------
PS C:\temp> $(Get-ACL -Path .).Access | where {
>>         $_.IdentityReference.Translate([System.Security.Principal.SecurityIdentifier]).Value -eq "S-1-5-18" -and
>>         $_.FileSystemRights -eq "FullControl" -and
>>         $_.AccessControlType -eq "Allow" -and
>>         $_.IsInherited -eq $true}

FileSystemRights  : FullControl
AccessControlType : Allow
IdentityReference : NT AUTHORITY\SYSTEM
IsInherited       : True
InheritanceFlags  : ContainerInherit, ObjectInherit
PropagationFlags  : None

#----------------------------------
# Failure in system32
#----------------------------------
# Navigate there
PS C:\temp> cd C:\Windows\System32\

# Verify access
PS C:\Windows\System32> $(Get-ACL -Path .).Access | where {
>>         $_.IdentityReference.Translate([System.Security.Principal.SecurityIdentifier]).Value -eq "S-1-5-18" -and
>>         $_.FileSystemRights -eq "FullControl" -and
>>         $_.AccessControlType -eq "Allow" -and
>>         $_.IsInherited -eq $true}
Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At line:2 char:9
+         $_.IdentityReference.Translate([System.Security.Principal.Sec ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : IdentityNotMappedException

Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At line:2 char:9
+         $_.IdentityReference.Translate([System.Security.Principal.Sec ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : IdentityNotMappedException

Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At line:2 char:9
+         $_.IdentityReference.Translate([System.Security.Principal.Sec ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : IdentityNotMappedException

Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At line:2 char:9
+         $_.IdentityReference.Translate([System.Security.Principal.Sec ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : IdentityNotMappedException
ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.