Skip to content

Instantly share code, notes, and snippets.

@hamiltont
Created April 26, 2015 02:30
Show Gist options
  • Save hamiltont/75430f8a9b5d73b0900d to your computer and use it in GitHub Desktop.
Save hamiltont/75430f8a9b5d73b0900d to your computer and use it in GitHub Desktop.
Vagrant windows guest failure
echo 'Ensuring basic commands will run'
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "atomia/windows-2012R2"
config.vm.box_check_update = false
config.vm.communicator = "winrm"
# NOTE: If you have to login manually, your username should include the
# 'VAGRANT' domain (e.g. 'VAGRANT/vagrant')
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
config.vm.guest = :windows
config.vm.network "forwarded_port", guest: 3389, host: 3389
config.vm.provider "virtualbox" do |vb|
vb.cpus = 4
vb.memory = 2048
end
# This fails to run. Full error log at http://sprunge.us/VaHO
config.vm.provision :shell, :path => "test.cmd"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment