Skip to content

Getting Overflow Exception "Add-Computer : Value was either too large or too small for Int32." #31

@HarshdeepSingh4084

Description

@HarshdeepSingh4084

First of all, great work creating this plugin. Thanks, it helped a lot.

Issue Description:

I am facing Add-Computer : Value was either too large or too small for Int32. error after every few tries (it's random). After getting this error, if I run the provision action again without any other change, it runs successfully the second time.

Screenshot of error:
image

Vagrantfile:

Vagrant.configure("2") do |config|
  config.vm.box = "WindowsBox"
  config.vm.box_url = ENV['VAGRANT_SERVER_URL']
  config.winrm.username = 'johndoe'
  config.winrm.password = 'foobar'

  config.vm.provider :vsphere do |vsphere|
	vsphere.user = 'john_doe'
	vsphere.password = :ask
	vsphere.template_name = '~~~Templates/LAB - Windows Server 2022 Stnd'
	vsphere.vm_base_path = 'john_doe/vagrant_vms'
	vsphere.name = 'vlab018101'
	vsphere.customization_spec_name = '_Windows 2022 - All'
	vsphere.notes = "Windows 2022 Standard with Desktop\nCreated using:\nen-us_windows_server_2022_x64_dvd_620d7eac.iso"
  end
  
  config.vm.synced_folder '.', '/vagrant', disabled: true

  config.vm.provision :windows_domain do |domain|
	domain.domain = "nsldev.com"
	domain.username = "john_doe"
	domain.password = "foo_bar"
  end
end

In case of any more details required, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions