# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "sqlserver2014"
config.vm.network "private_network", ip: "192.168.56.200"
config.vm.network :public_network, :bridge => 'en1: Wi-Fi (AirPort)'
config.vm.communicator = "winrm"
config.winrm.host = "192.168.56.200"
config.winrm.username = "Administrator"
config.winrm.password = "password"
config.vm.provider "virtualbox" do |vb|
vb.gui = true
end
end
On Fri, Aug 28, 2015 at 10:57 AM, Randy Stafford
<randy.s...@oracle.com> wrote:
0a. Ensure you are on the current Vagrant
0b. Confirm the base box have the minimum requirements ie:
Set-Item WSMan:\localhost\Service\AllowUnencrypted -Value True
Set-Item WSMan:\localhost\Service\Auth\Basic -Value True
1. Comment out those to config.vm.network to make the Vagrantifile as
simple as possible:
# config.vm.network "private_network", ip: "192.168.56.200"
# config.vm.network :public_network, :bridge => 'en1: Wi-Fi (AirPort)'
2. Then try in this way:
vagrant destroy (this will delete the VM)
vagrant up --no-provision (this will start the VM and nothing else)
rpstaffo-mac:~ rpstaffo$ vagrant up --no-provision
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'sqlserver2014'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: rpstaffo_default_1440726484115_11028
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 5985 => 55985 (adapter 1)
default: 5986 => 55986 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: WinRM address: 127.0.0.1:55985
default: WinRM username: Administrator
default: WinRM transport: plaintext
An error occurred executing a remote WinRM command.
Shell: powershell
Command: hostname
if ($?) { exit 0 } else { if($LASTEXITCODE) { exit $LASTEXITCODE } else { exit 1 } }
Message: Protocol wrong type for socket
Then, if all fine
vagrant provision
This should help to identify where the problem is.
If fails on the provision.. can you share the box?
thanks
Alvaro.
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/iliBGKrXRKg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ezb79KztARgMfyxGg0aCQg9_XcB-GVuzBjWj9B5AMiLcg%40mail.gmail.com.