Hi,

Firstly, excellent work vagrant team, the product is awesome, keep it up!

I'm trying to provision a Windows VM on Vsphere, and running into this 
issue when provisioning:

/opt/vagrant/embedded/gems/gems/logging-1.8.2/lib/logging/diagnostic_context
.rb:323:in `block in create_with_logging_context'
 INFO interface: error: An error occurred executing a remote WinRM command.

Shell: powershell
Command: $ProgressPreference='SilentlyContinue';
hostname
if ($?) { exit 0 } else { if($LASTEXITCODE) { exit $LASTEXITCODE } else { 
exit 1 } }
Message: bad URI(is not URI?): http://fe80::394b:3641:3f48:f3f:5985/wsman
An error occurred executing a remote WinRM command.

Shell: powershell
Command: $ProgressPreference='SilentlyContinue';
hostname
if ($?) { exit 0 } else { if($LASTEXITCODE) { exit $LASTEXITCODE } else { 
exit 1 } }
Message: bad URI(is not URI?): http://fe80::394b:3641:3f48:f3f:5985/wsman
 INFO interface: Machine: error-exit 
["VagrantPlugins::VSphere::Errors::VSphereError", "An error occurred 
executing a remote WinRM command.\n\nShell: powershell\nCommand: 
$ProgressPreference='SilentlyContinue';\r\nhostname\r\nif ($?) { exit 0 } 
else { if($LASTEXITCODE) { exit $LASTEXITCODE } else { exit 1 } }\nMessage: 
bad URI(is not URI?): http://fe80::394b:3641:3f48:f3f:5985/wsman";]


WinRM is enable and listening. I am deploying a customization template 
which does require a reboot of the host. My Vagrantfile is as follows:

acwdcslo01= { :name => "wintest01", :ip => "10.10.10.10", :memory_mb => 
"4096", :cpu_count => "2" }
boxes = [ wintest01, ]

Vagrant.configure(2) do |config|
  config.vm.box = "base"
  config.vm.guest = :windows
  config.vm.communicator = "winrm"
  config.winrm.username = "vagrant"
  config.winrm.passsword = "vagrant"

  # global config
  config.vm.box = 'dummy'
  config.vm.box_url = 'dummy/dummy.box'

  boxes.each do |opts|
    name = opts['name']
    memory_mb = opts['memory']
    cpu_count = opts['cpu_count']
      config.vm.define opts[:name] do |config|
        config.vm.network "private_network", ip: opts[:ip]
        config.vm.provider :vsphere do |vsphere|
          vsphere.host = 'vc01.testlab.com'
          vsphere.data_center_name = 'TEST'
          vsphere.compute_resource_name = 'tlab_cluster_1'
          vsphere.resource_pool_name = 'TestLab Test Servers'
          vsphere.template_name = 'TestLab Test Servers/vagrant/2012r2-base'
          vsphere.customization_spec_name = 'vagrant-w2012r2-staticip-cust'
          vsphere.name = opts[:name]
          vsphere.memory_mb = opts[:memory_mb]
          vsphere.cpu_count = opts[:cpu_count]
          vsphere.user = '[email protected]'
          vsphere.password = 'password'
          vsphere.insecure = true

      end
    end
  end
end


Not sure why it's trying to communicate on the ipv6 interface, ipv4 is up 
and listening on port 5985. Help appreciated.

Thanks in advance.





-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/61451be6-a08f-48af-9ba4-5423dad09b17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to