Hi all
I'm trying to make a Windows2012 server using vagrant.
It seems like vagrant supports Windows (without plugin) since version 1.6. This [
post][1] was talking about the only one line to add :
config.vm.communicator = "winrm"
In addition into WinRM specific options [
documentation][2] I check this Windows options (cf. complete list into [
base config][3]):
Set-Item WSMan:\localhost\Service\AllowUnencrypted -Value True
Set-Item WSMan:\localhost\Service\Auth\Basic -Value True
* I update the timeout from 300 to 600 sec
line to change:
config.vm.boot_timeout = 600
* I check WinRM access by hand with success
Check WinRM :
start / powershell + ENTER
winrs -r:localhost:55985 -u:vagrant dir
* I add VirtualBox Guest Additions
* I start vagrant in verbose mode
vagrant up --debug
This tell me that Vagrant make an infinite loop on this command:
C:\\Programmes\\VirtualBox\\VBoxManage.exe showvminfo my-vm-name --machinereadable
and WinRM each try ends with 504 error code:
if ($?) { exit 0 } else { if($LASTEXITCODE) { exit $LASTEXITCODE } else { exit 1 } }
INFO winrmshell: Attempting to connect to WinRM...
INFO winrmshell: - Host: 127.0.0.1
INFO winrmshell: - Port: 55985
INFO winrmshell: - Username: vagrant
INFO retryable: Retryable exception raised: #<WinRM::WinRMHTTPTransportError: Bad HTTP response returned from server (504).>
could you help me to understand/fix 504 error on winRM connection ?
thanks
$ vagrant version
Installed Version: 1.7.2
VirtualBox 4.3.20 r96997