An Error Occurred Executing A Remote Winrm Command
Support Search GitHub This repository Watch 16 Star 62 Fork 33 frapposelli/vagrant-vcloud Code Issues 31 Pull requests 3 Projects 0 Wiki Pulse Graphs New issue Vagrant provision with winrm fails on slow start #65 Closed StefanScherer opened this Issue May 20, 2014 · 12 comments Projects None yet Labels bug enhancement Milestone v0.5.0 Assignees No one assigned 3 participants StefanScherer commented May 20, 2014 Similar to #56, vagrant up may fail while provisioning with winrm communicator a windows guest. I'm inside my vOrg and so the edge gateway is not configured which also may result in a faster startup as the bridged mode. $ vagrant up --provider=vcloud Bringing machine 'tst' up with 'vcloud' provider... Bringing machine 'tst2' up with 'vcloud' provider... ==> tst: Building vApp... ==> tst: vApp vcloud-win-vagrant-basebox-slave-4a5a5713 successfully created. ==> tst: Setting VM hardware... ==> tst: Powering on VM... ==> tst: Fixed port collision for 22 => 2222. Now on port 2277. ==> tst: Fixed port collision for 3389 => 3389. Now on port 2278. ==> tst: Fixed port collision for 5985 => 55985. Now on port 2279. ==> tst: Forwarding Ports: VM port 22 -> vShield Edge port 2277 ==> tst: Forwarding Ports: VM port 3389 -> vShield Edge port 2278 ==> tst: Forwarding Ports: VM port 5985 -> vShield Edge port 2279 ==> tst: Waiting for SSH Access on 10.115.4.4:2277 ... ==> tst: Warning! Folder sync disabled because the rsync binary is missing. ==> tst: Make sure rsync is installed and the binary can be found in the PATH. ==> tst: Running provisioner: shell... An error occurred executing a remote WinRM command. Shell: powershell Command: $p = "$Env:SystemRoot" if ((Test-Path $p) -and (get-item $p).PSIsContainer) { exit 0 } exit 1 if ($LASTEXITCODE) { exit $LASTEXITCODE } else { exit 0 } Message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) (http://10.115.4.4:2279) First the SSH port of the w
Support Search GitHub This repository Watch 741 Star 13,180 Fork 2,800 mitchellh/vagrant Code Issues 402 Pull requests 47 Projects 0 Wiki Pulse Graphs New issue HTTPClient::KeepAliveDisconnected: An existing connection was forcibly closed by the remote host #6430 Open mskutin opened this Issue Oct 23, 2015 · 16 comments Projects None https://github.com/frapposelli/vagrant-vcloud/issues/65 yet Labels bug guest/windows host/windows Milestone No milestone Assignees No one assigned 9 participants mskutin commented Oct 23, 2015 Host OS OS X, Windows 10 Enterprise Guest OS Windows 10 Enterprise Vagrant 1.7.4 VirtualBox 5.0.4 Provider virtualbox Vagrantfile: Vagrant.configure(2) do |config| config.vm.box = "custom" https://github.com/mitchellh/vagrant/issues/6430 config.vm.guest = :windows config.vm.communicator = "winrm" config.winrm.username = "vagrant" config.winrm.password = "vagrant" config.winrm.max_tries = 20 config.vm.network :forwarded_port, guest: 3389, host: 3389 config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true config.vm.provider "virtualbox" do |vb| vb.name = "custom" vb.gui = true vb.customize ["modifyvm", :id, "--memory", "2048"] vb.customize ["modifyvm", :id, "--vram", "256"] end config.vm.provision :shell, path: "./ps/Install-Chocolatey.ps1" config.vm.provision :shell, path: "./ps/InstallApps.ps1" end Preparation: Firewall is turned off on host and guest machines, anyway ports were opened manually: netsh advfirewall firewall add rule name="5985" dir=in action=allow protocol=TCP localport=5985 netsh advfirewall firewall add rule name="3389" dir=in action=allow protocol=TCP localport=3389 Enabled private networking : Set-NetConnectionProfile -InterfaceAlias Ethernet -NetworkCategory Private WinRM service and client configured next way: winrm quickconfig -q winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="512"}' winrm set winrm/config '@{MaxTimeoutms="1800000"}' winrm set winrm/config/service '@{AllowUnencrypted="true"}' winrm set winrm/config/service/au
from GoogleSign inHidden fieldsSearch for groups or messages
Interactively logging into a server and working on it seems rather non-repeatable, and a source of potential errors. I'm not very far along the journey, but I am moving forward slowly. Prompted by Matt Callanan's presentationof Expedia's "primer" platform, and Hashicorp's recent release of otto, I wanted to make some more progress. Reading about Microsoft's NanoServer(also this and this) was the trigger. On my Windows 7 home PC, I've already played with vagrant before using virtualbox, so it was easy to find Matt Wrock'sbox to try. I thought I'd jot down a few of the obstacles I came across, in case it helps someone (perhaps me) in the future. As a preface, I recommend installing chocolatey and then patheditor. Install Vagrant and Virtualbox Download and install theVagrantmsi package. I have version 1.7.4. Add the bin directory to your path. For me, it was C:\HashiCorp\Vagrant\bin Download and install the Virtualbox installer. I have version 5.0.6. Add the directory containing VBoxManage.exe to your path. For me it was C:\ProgramFiles\Oracle\VirtualBox Clear Virtualbox Network Adapters If you have already been using Virtualbox, it may be best to remove any network adapters that have been created. It took me several steps to get this right. There must be a nice command line way to do this, but I have resorted to the GUI. Start Virtualbox, and in File > Preferences, choose the Network entry in the list on the left. In the Host-only Networks tab (perhaps the NAT networks tab too), select any network, and click on the "-" button on the right. If it seems that nothing is happening, check the task bar to see if there's a UAC shield requesting permission for Virtualbox to modify the system. That will happen for each network adapter you need to delete, and also again when the VM first starts. Set up directory Make yourself a fresh directory somewhere to do this test, and then open a cmd prompt to that directory. To set up the Vagrantfile, type vagrant init mwrock/WindowsNano And then start downloading the box