Error provisioning Windows VM

289 views
Skip to first unread message

crutchles...@gmail.com

unread,
Feb 11, 2016, 8:19:27 AM2/11/16
to Vagrant
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 = 'admini...@testlab.com'
          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.





crutchles...@gmail.com

unread,
Feb 11, 2016, 8:33:49 AM2/11/16
to Vagrant
To add, vagrant version is 1.8.1 running on Centos 7.2.1511.

Damien Buckley

unread,
Sep 28, 2016, 10:40:46 AM9/28/16
to Vagrant, crutchles...@gmail.com
Hi, did you find a resolution to this issue? 

I am getting the same error on Vagrant 1.8.5 running on windows 7 enterprise. 

Alvaro Miranda Aguilera

unread,
Sep 28, 2016, 2:34:15 PM9/28/16
to Vagrant, crutchles...@gmail.com
for the original poster the error was showing some ipv6..

can you paste your Vagrant file and error?

please be sure to replace passwords
Reply all
Reply to author
Forward
0 new messages