WinRM::WinRMAuthorizationError with a Windows 2012 R2 guest

1,570 views
Skip to first unread message

Rui Lopes

unread,
Oct 8, 2016, 1:28:48 PM10/8/16
to Vagrant
I'm trying to launch the https://github.com/rgl/windows-domain-controller-vagrant environment. It worked before, but for some reason it has started to fail with WinRM::WinRMAuthorizationError errors. Its odd because I can login without problems. Maybe a recent windows update changed anything?

I've pasted the relevant log bellow. Any help would be appreciated!

I'm on a recent Arch Linux host with VirtualBox 5.1.6 and Vagrant 1.8.6.

Megan also reported [0] this error happening with a Windows 10 guest. Maybe this is related.

-- RGL


 INFO global: Vagrant version: 1.8.6
 INFO global: Ruby version: 2.2.5
 INFO global: RubyGems version: 2.4.5.1
 INFO global: VAGRANT_OLD_ENV_GTK_MODULES="canberra-gtk-module"
 INFO global: VAGRANT_OLD_ENV_SHLVL="2"
 INFO global: VAGRANT_OLD_ENV_XDG_VTNR="7"
 INFO global: VAGRANT_OLD_ENV_XDG_SESSION_ID="c2"
 INFO global: VAGRANT_OLD_ENV_PAGER="less"
 INFO global: VAGRANT_OLD_ENV_LANG="en_US.utf8"
 INFO global: VAGRANT_OLD_ENV_DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"
 INFO global: VAGRANT_OLD_ENV_XAUTHORITY="/home/rgl/.Xauthority"
 INFO global: VAGRANT_OLD_ENV_MAIL="/var/spool/mail/rgl"
 INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
 INFO global: VAGRANT_OLD_ENV_GLADE_MODULE_PATH=":"
 INFO global: VAGRANT_OLD_ENV_HG="/usr/bin/hg"
 INFO global: VAGRANT_OLD_ENV_LOGNAME="rgl"
 INFO global: VAGRANT_OLD_ENV_XDG_CURRENT_DESKTOP="XFCE"
 INFO global: VAGRANT_INSTALLER_VERSION="2"
 INFO global: VAGRANT_OLD_ENV_OLDPWD="/home/rgl"
 INFO global: VAGRANT_OLD_ENV_PWD="/home/rgl/Projects/windows-domain-controller-vagrant"
 INFO global: VAGRANT_OLD_ENV_SHELL="/bin/bash"
 INFO global: VAGRANT_OLD_ENV_GLADE_CATALOG_PATH=":"
 INFO global: VAGRANT_OLD_ENV_XDG_RUNTIME_DIR="/run/user/1000"
 INFO global: VAGRANT_INSTALLER_ENV="1"
 INFO global: VAGRANT_OLD_ENV_WINDOWID="37761619"
 INFO global: VAGRANT_OLD_ENV_XDG_CONFIG_DIRS="/etc/xdg"
 INFO global: VAGRANT_OLD_ENV_XDG_SEAT="seat0"
 INFO global: VAGRANT_OLD_ENV_LC_TIME="pt_PT.UTF-8"
 INFO global: VAGRANT_OLD_ENV_GLADE_PIXMAP_PATH=":"
 INFO global: VAGRANT_OLD_ENV_DESKTOP_SESSION="xfce"
 INFO global: VAGRANT_OLD_ENV_USER="rgl"
 INFO global: VAGRANT_OLD_ENV_EDITOR="vim"
 INFO global: VAGRANT_OLD_ENV_GDMSESSION="xfce"
 INFO global: VAGRANT_OLD_ENV_XDG_DATA_DIRS="/usr/local/share:/usr/share"
 INFO global: VAGRANT_OLD_ENV_SSH_AGENT_PID="5804"
 INFO global: VAGRANT_OLD_ENV_ANT_HOME="/usr/share/apache-ant"
 INFO global: VAGRANT_OLD_ENV_XDG_SESSION_DESKTOP="xfce"
 INFO global: VAGRANT_OLD_ENV_DISPLAY=":0.0"
 INFO global: VAGRANT_OLD_ENV_SESSION_MANAGER="local/go:@/tmp/.ICE-unix/5790,unix/go:/tmp/.ICE-unix/5790"
 INFO global: VAGRANT_OLD_ENV_HOME="/home/rgl"
 INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/bin/vagrant"
 INFO global: VAGRANT_OLD_ENV_XDG_GREETER_DATA_DIR="/var/lib/lightdm-data/rgl"
 INFO global: VAGRANT_OLD_ENV_TERM="xterm"
 INFO global: VAGRANT_OLD_ENV_XDG_MENU_PREFIX="xfce-"
 INFO global: VAGRANT_OLD_ENV_XDG_SEAT_PATH="/org/freedesktop/DisplayManager/Seat0"
 INFO global: VAGRANT_OLD_ENV_MOZ_PLUGIN_PATH="/usr/lib/mozilla/plugins"
 INFO global: VAGRANT_OLD_ENV_PATH="/home/rgl/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-rc1-final/bin:/home/rgl/.dnx/bin:/usr/lib/hardening-wrapper/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/android-sdk/platform-tools:/home/rgl/.go/bin:/home/rgl/Apps/bin:/home/rgl/.gem/ruby/2.2.0/bin"
 INFO global: VAGRANT_OLD_ENV_COLORTERM="xfce4-terminal"
 INFO global: VAGRANT_OLD_ENV__="/usr/bin/vagrant"
 INFO global: VAGRANT_OLD_ENV_ANDROID_HOME="/opt/android-sdk"
 INFO global: VAGRANT_OLD_ENV_XDG_SESSION_PATH="/org/freedesktop/DisplayManager/Session0"
 INFO global: VAGRANT_OLD_ENV_SSH_AUTH_SOCK="/tmp/ssh-AqolcssUJfnv/agent.5803"
 INFO global: VAGRANT_OLD_ENV_XDG_SESSION_TYPE="x11"
 INFO global: VAGRANT_OLD_ENV_GOPATH="/home/rgl/.go"
 INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
 INFO global: VAGRANT_LOG="debug"
 INFO global: Plugins:
 INFO global:   - bundler = 1.12.5
 INFO global:   - vagrant-reload = 0.0.1
 INFO global:   - vagrant-triggers = 0.5.3
...
=> dc: AD Forest installed. You need to reboot this machine.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::HandleForwardedPortCollisions:0x00000001a7fe08>
 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.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x000000027b5528>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x000000028949d0>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x000000019e8c88>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000001a3c860>
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<VagrantPlugins::ProviderVirtualBox::Action::Import:0x000000027ee508>
 INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "5b5dfa99-e835-4313-8df4-7f2606fe1ab9", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: name="windows-domain-controller-vagrant_dc_1475944272147_43502"
groups="/"
ostype="Windows 2012 (64-bit)"
UUID="5b5dfa99-e835-4313-8df4-7f2606fe1ab9"
CfgFile="/home/rgl/VirtualBox VMs/windows-domain-controller-vagrant_dc_1475944272147_43502/windows-domain-controller-vagrant_dc_1475944272147_43502.vbox"
SnapFldr="/home/rgl/VirtualBox VMs/windows-domain-controller-vagrant_dc_1475944272147_43502/Snapshots"
LogFldr="/home/rgl/VirtualBox VMs/windows-domain-controller-vagrant_dc_1475944272147_43502/Logs"
hardwareuuid="5b5dfa99-e835-4313-8df4-7f2606fe1ab9"
memory=2048
pagefusion="off"
vram=64
cpuexecutioncap=100
hpet="off"
chipset="piix3"
firmware="BIOS"
cpus=2
pae="on"
longmode="on"
triplefaultreset="off"
apic="on"
x2apic="off"
cpuid-portability-level=0
bootmenu="messageandmenu"
boot1="disk"
boot2="dvd"
boot3="none"
boot4="none"
acpi="on"
ioapic="on"
biosapic="apic"
biossystemtimeoffset=0
rtcuseutc="on"
hwvirtex="on"
nestedpaging="on"
largepages="off"
vtxvpid="on"
vtxux="on"
paravirtprovider="default"
effparavirtprovider="hyperv"
VMState="running"
VMStateChangeTime="2016-10-08T16:31:59.896000000"
monitorcount=1
accelerate3d="off"
accelerate2dvideo="off"
teleporterenabled="off"
teleporterport=0
teleporteraddress=""
teleporterpassword=""
tracing-enabled="off"
tracing-allow-vm-access="off"
tracing-config=""
autostart-enabled="off"
autostart-delay=0
defaultfrontend=""
storagecontrollername0="IDE Controller"
storagecontrollertype0="PIIX4"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="2"
storagecontrollerportcount0="2"
storagecontrollerbootable0="on"
"IDE Controller-0-0"="/home/rgl/VirtualBox VMs/windows-domain-controller-vagrant_dc_1475944272147_43502/Snapshots/{b88fb81e-b10f-43aa-a65f-fc0338f8f845}.vmdk"
"IDE Controller-ImageUUID-0-0"="b88fb81e-b10f-43aa-a65f-fc0338f8f845"
"IDE Controller-0-1"="none"
"IDE Controller-1-0"="emptydrive"
"IDE Controller-IsEjected"="off"
"IDE Controller-1-1"="none"
natnet1="nat"
macaddress1="080027DE4A11"
cableconnected1="on"
nic1="nat"
nictype1="82540EM"
nicspeed1="0"
mtu="0"
sockSnd="64"
sockRcv="64"
tcpWndSnd="64"
tcpWndRcv="64"
Forwarding(0)="rdp,tcp,,3389,,3389"
Forwarding(1)="ssh,tcp,,2222,,22"
Forwarding(2)="winrm,tcp,127.0.0.1,55985,,5985"
Forwarding(3)="winrm-ssl,tcp,127.0.0.1,55986,,5986"
hostonlyadapter2="vboxnet2"
macaddress2="080027E8F7DB"
cableconnected2="on"
nic2="hostonly"
nictype2="82540EM"
nicspeed2="0"
nic3="none"
nic4="none"
nic5="none"
nic6="none"
nic7="none"
nic8="none"
hidpointing="ps2mouse"
hidkeyboard="ps2kbd"
uart1="off"
uart2="off"
uart3="off"
uart4="off"
lpt1="off"
lpt2="off"
audio="alsa"
clipboard="bidirectional"
draganddrop="disabled"
SessionName="headless"
VideoMode="1024,768,32"@0,0 1
vrde="on"
vrdeport=5900
vrdeports="5900"
vrdeaddress="127.0.0.1"
vrdeauthtype="null"
vrdemulticon="off"
vrdereusecon="off"
vrdevideochannel="off"
vrdeproperty[TCP/Ports]="5900"
vrdeproperty[TCP/Address]="127.0.0.1"
vrdeproperty[VideoChannel/Enabled]=<not set>
vrdeproperty[VideoChannel/Quality]=<not set>
vrdeproperty[VideoChannel/DownscaleProtection]=<not set>
vrdeproperty[Client/DisableDisplay]=<not set>
vrdeproperty[Client/DisableInput]=<not set>
vrdeproperty[Client/DisableAudio]=<not set>
vrdeproperty[Client/DisableUSB]=<not set>
vrdeproperty[Client/DisableClipboard]=<not set>
vrdeproperty[Client/DisableUpstreamAudio]=<not set>
vrdeproperty[Client/DisableRDPDR]=<not set>
vrdeproperty[H3DRedirect/Enabled]=<not set>
vrdeproperty[Security/Method]=<not set>
vrdeproperty[Security/ServerCertificate]=<not set>
vrdeproperty[Security/ServerPrivateKey]=<not set>
vrdeproperty[Security/CACertificate]=<not set>
vrdeproperty[Audio/RateCorrectionMode]=<not set>
vrdeproperty[Audio/LogPath]=<not set>
usb="off"
ehci="off"
xhci="off"
SharedFolderNameMachineMapping1="vagrant"
SharedFolderPathMachineMapping1="/home/rgl/Projects/windows-domain-controller-vagrant"
VRDEActiveConnection="off"
VRDEClients=0
vcpenabled="off"
vcpscreens=0
vcpfile="/home/rgl/VirtualBox VMs/windows-domain-controller-vagrant_dc_1475944272147_43502/windows-domain-controller-vagrant_dc_1475944272147_43502.webm"
vcpwidth=
DEBUG subprocess: stdout: 1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0
GuestOSType="Windows81_64"
GuestAdditionsRunLevel=2
GuestAdditionsVersion="5.1.6 r110634"
GuestAdditionsFacility_VirtualBox Base Driver=50,1475944323643
GuestAdditionsFacility_VirtualBox System Service=50,1475944325221
GuestAdditionsFacility_Seamless Mode=0,1475944323642
GuestAdditionsFacility_Graphics Mode=0,1475944323642
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO warden: Recovery complete.
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000001a3cb08>
 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.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 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 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.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 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.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 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 warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Released process lock: machine-action-4d1b771fe673b9eb6739cad79dc92669
 INFO environment: Running hook: environment_unload
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 2 hooks defined.
 INFO runner: Running action: environment_unload #<Vagrant::Action::Builder:0x00000002863bf0>
 INFO warden: Calling IN action: #<VagrantPlugins::Triggers::Action::Trigger:0x0000000285cfa8>
 INFO warden: Calling IN action: #<VagrantPlugins::Triggers::Action::Trigger:0x0000000282eb08>
 INFO warden: Calling IN action: #<VagrantPlugins::Triggers::Action::Trigger:0x000000028048f8>
 INFO warden: Calling OUT action: #<VagrantPlugins::Triggers::Action::Trigger:0x000000028048f8>
 INFO warden: Calling OUT action: #<VagrantPlugins::Triggers::Action::Trigger:0x0000000282eb08>
 INFO warden: Calling OUT action: #<VagrantPlugins::Triggers::Action::Trigger:0x0000000285cfa8>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<VagrantPlugins::CommunicatorWinRM::Errors::AuthenticationFailed: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError>
ERROR vagrant: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
ERROR vagrant: /opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/communicators/winrm/shell.rb:120:in `raise_winrm_exception'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/communicators/winrm/shell.rb:89:in `rescue in execute_with_rescue'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/communicators/winrm/shell.rb:87:in `execute_with_rescue'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/communicators/winrm/shell.rb:59:in `powershell'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/communicators/winrm/communicator.rb:148:in `execute'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/provisioners/shell/provisioner.rb:155:in `block (2 levels) in provision_winrm'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/provisioners/shell/provisioner.rb:105:in `tap'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/provisioners/shell/provisioner.rb:105:in `block in provision_winrm'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/provisioners/shell/provisioner.rb:220:in `with_script_file'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/provisioners/shell/provisioner.rb:104:in `provision_winrm'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/provisioners/shell/provisioner.rb:22:in `provision'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/provision.rb:133:in `run_provisioner'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:95:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/environment.rb:479:in `hook'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/provision.rb:121:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/provision.rb:121:in `block in call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/provision.rb:103:in `each'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/provision.rb:103:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:15:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/set_name.rb:50:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/call.rb:53:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/call.rb:53:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/call.rb:53:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/box_check_outdated.rb:36:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/match_mac_address.rb:19:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/discard_state.rb:15:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/import.rb:44:in `clone'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/import.rb:11:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/prepare_clone_snapshot.rb:32:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/prepare_clone.rb:15:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/import_master.rb:36:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/customize.rb:40:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/call.rb:53:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/handle_box.rb:56:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builtin/call.rb:53:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/home/rgl/.vagrant.d/gems/gems/vagrant-triggers-0.5.3/lib/vagrant-triggers/action/trigger.rb:17:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/home/rgl/.vagrant.d/gems/gems/vagrant-triggers-0.5.3/lib/vagrant-triggers/action/trigger.rb:17:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/home/rgl/.vagrant.d/gems/gems/vagrant-triggers-0.5.3/lib/vagrant-triggers/action/trigger.rb:17:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/action/runner.rb:66:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/machine.rb:225:in `action_raw'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/machine.rb:200:in `block in action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/environment.rb:567:in `lock'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/machine.rb:186:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/machine.rb:186:in `action'
/opt/vagrant/embedded/gems/gems/vagrant-1.8.6/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
/opt/vagrant/embedded/gems/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `call'
/opt/vagrant/embedded/gems/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `block in create_with_logging_context'
 INFO interface: error: An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
An authorization error occurred while connecting to WinRM.

User: vagrant
Message: WinRM::WinRMAuthorizationError
 INFO interface: Machine: error-exit ["VagrantPlugins::CommunicatorWinRM::Errors::AuthenticationFailed", "An authorization error occurred while connecting to WinRM.\n\nUser: vagrant\nEndpoint: http://127.0.0.1:55985/wsman\nMessage: WinRM::WinRMAuthorizationError"]
DEBUG winrmshell: [WinRM] closing remote shell BCB2A091-0900-4F3E-BEEE-3F2C2125268A on http://127.0.0.1:55985/wsman
DEBUG winrmshell: [WinRM] closing remote shell 70D96BFD-CFFC-4EAC-811C-15F1CEF42F8E on http://127.0.0.1:55985/wsman
DEBUG winrmshell: [WinRM] closing remote shell 2E9CD10A-2EFE-4180-9CAE-46FB74029C01 on http://127.0.0.1:55985/wsman
DEBUG winrmshell: [WinRM] closing remote shell C120966E-9268-45A0-BDEE-52FE0D4FAD34 on http://127.0.0.1:55985/wsman
DEBUG winrmshell: [WinRM] closing remote shell 3026508F-8636-47C5-81F7-77FC2BF615BD on http://127.0.0.1:55985/wsman
DEBUG winrmshell: [WinRM] closing remote shell 940AD27D-95EE-4812-AC14-A43018134C64 on http://127.0.0.1:55985/wsman
DEBUG winrmshell: [WinRM] closing remote shell 2902C939-CA29-4EA4-835E-F06346067843 on http://127.0.0.1:55985/wsman

Alvaro Miranda Aguilera

unread,
Oct 9, 2016, 2:28:48 PM10/9/16
to vagra...@googlegroups.com
Hello,

Better use a link to a gist, rather than the log.

I haven't checked the log, but I would like to ask what changed?

If you did update OS and Vagrant/Virtualbox, any chance you can test with what used to work?
And any chance to test in a different computer?
and finally, with a different box?

Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/e0f5d992-ddbf-4396-9415-4b31f62869cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Rui Lopes

unread,
Oct 11, 2016, 1:26:38 AM10/11/16
to Vagrant
Hi Alvaro,

At least the base image changed to a newer version of windows (that is, it was fresh installed again, with latest windows updates; but I no longer have the older base box). Not sure if the vagrant or the VB versions have changed, but probably they were... because I update my Arch Linux regularly (and I don't keep track of which versions I've used before).

It somewhat odd, this happens after the Windows Domain Controller has been installed with Install-ADDSForest (at the end of the provision/domain-controller.ps1 provision file). Maybe the vagrant account is temporally disabled and that makes it drop the existing WinRM connections? Please note, that this error didn't happen before, because I could vagrant up the entire thing without any problems.

After the WinRM::WinRMAuthorizationError shows up, using a second shell, I can successfully connect with WinRM with something like: winrm -hostname localhost -port 2202 -username vagrant -password vagrant 'ipconfig /all' (the winrm binary comes from https://github.com/masterzen/winrm; which is the same project that is used by packer)

I have no clue on how to troubleshoot this further :-/

-- RGL

To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



--
Alvaro

Rui Lopes

unread,
Oct 11, 2016, 2:46:45 AM10/11/16
to Vagrant
Hi again!

Adding:

    config.winrm.transport = :plaintext
    config.winrm.basic_auth_only = true

makes things work again! :-)

maybe with the negotiate transport, after installing the domain controller stuff, vagrant needs to re-connect to establish a new authentication session?

-- RGL

Alvaro Miranda Aguilera

unread,
Oct 11, 2016, 1:54:51 PM10/11/16
to vagra...@googlegroups.com

On Tue, Oct 11, 2016 at 8:46 AM, Rui Lopes <rui.godi...@gmail.com> wrote:
    config.winrm.transport = :plaintext
    config.winrm.basic_auth_only = true

Hello,

If the connection doesn't get drop, the script shouldn't fail.

If the connection gets drop, then Vagrant may report back that connection failed.

Not sure how those parameters may help, thats new too me, I move more in linux for VMs, but thanks for sharing those back.

Alvaro.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages