Hi everybody,
FYI - I documented my complete example (from building the basebox to
running vagrant up) here:
https://gist.github.com/tknerr/7fc4a4191903e3611c45
It's still not working, but I guess it's related to a WinRM issue, i.e.
when I run `vagrant provision --debug` I see that it's stalling here:
....
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
DEBUG virtualbox_4_3: - [1, "rdp", 3389, 3389]
DEBUG virtualbox_4_3: - [1, "ssh", 2222, 22]
DEBUG virtualbox_4_3: - [1, "winrm", 5985, 5985]
DEBUG winrmshell: initializing WinRMShell
DEBUG winrmshell: powershell executing:
hostname
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: 5985
INFO winrmshell: - Username: vagrant
Any ideas or WinRM troubleshooting tips?
Cheers,
Torben
On Tue, May 5, 2015 at 5:17 PM, Torben Knerr <[email protected]> wrote:
> Hi everybody,
>
> I'm looking for a simple Vagrant / VirtualBox with Windows guest example.
>
> So far I built my own windows box from the boxcutter/windows
> templates, which worked fine.
>
> Now I'm using the simplest possible Vagrantfile, like this:
>
>
> Vagrant.configure(2) do |config|
>
> config.vm.box = "boxcutter/eval-win7x86-enterprise-nocm"
>
> config.vm.communicator = "winrm"
> config.ssh.insert_key = false
> config.vm.guest = :windows
> config.vm.synced_folder ".", "/vagrant", disabled: true
>
> config.vm.provision "shell", inline: "echo hello!"
> end
>
>
> However, what I get is:
>
> * `vagrant up` keeps always hanging after the VM is up (it is still up,
> though)
> * `vagrant ssh` works. yay! :-)
> * `vagrant ssh -c "echo foo"` does not work as expected, ie. simply
> drops me into the shell without executing the command
> * `vagrant provision` keeps hanging without ever doing anything
> * vboxsf synced folders never worked either (always hangs) :-/
>
>
> Are my expectations set too high or am I just doing something plainly
> wrong?
>
> Any examples showing that the above work would be super highly
> appreciated!!!
>
> Thought it would be easier... ;-)
>
> Cheers,
> Torben
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.