Hi,
I am on Windows 10, with vmware workstation 14.0 installed, using packer 1.1.1 to build my box using type vmware.iso.
My box gets created and complete with the following lines
Build 'vmware-iso' finished.
==> Builds finished. The artifacts of successful builds are:
--> vmware-iso: 'vmware' provider box: xtract-vmware-rhel-7.3.box
When I try to do the vagrant up, using vagrant 1.9.6, I am getting the ERROR:
Provider expected: vsphere
Provider of box: vmware_desktop
My vagrant file is:
HOSTNAME = "exfo." + ENV['USERNAME'] + "-" + File.basename(File.expand_path("..", Dir.pwd)).tr(" ", "").tr("_", "").tr(".", "")
BOXNAME = "xtract-vmware-rhel-7.3"
BOXURL = "
file:///c:/Test/Xtract/Packer/xtract-rhel-esxi/" + BOXNAME + ".box"
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.box = BOXNAME
config.vm.box_url = BOXURL
config.vm.network "public_network", ip: "xxx.xxx.xxx.xxx", netmask: "255.255.254.0", gateway: "xxx.xxx.xxx.xxx"
config.vm.synced_folder('.', '/Vagrant', type: 'rsync')
config.vm.provider :vsphere do |vsphere|
# The host we're going to connect to
vsphere.host = '
Vcenter01.xxx.com'
# The host for the new VM
vsphere.compute_resource_name = 'xxx.xxx.xxx.xxx'
# The resource pool for the new VM
vsphere.resource_pool_name = 'Shared'
# vSphere login
vsphere.user = 'xxxxxx'
# vSphere password
vsphere.password = 'xxxxxx'
# If you don't have SSL configured correctly, set this to 'true'
vsphere.insecure = true
end
config.vm.provision "shell", path: "scripts/xtract-start.sh", run: 'always'
end