Morning all
I use vagrant-vsphere to provision vmware boxen to my environment.
https://github.com/nsidc/vagrant-vsphereNow........
It constantly gives me "tempate not found" error
I have admin rights on the vsphere.compute_resource_name and on vsphere.host
I specify the path correctly, to my knowledge and my metadata.json file is done correctly.
When I log into vsphere via the interface I can see the file where I put it.
I have used this to trouble shoot
https://github.com/nsidc/vagrant-vsphere/issues/79No luck.
I include my Vagrantfile and metadata.json with this.
Vagrantfile:
--------------------------------------
agrant.configure("2") do |config|
config.vm.box = 'Baseubuntu14.04.box'
#config.vm.box_url = 'ubuntu/trusty64 '
config.vm.provider :vsphere do |vsphere|
# The host we're going to connect to
vsphere.host = '10.1.202.246'
# The host for the new VM
vsphere.compute_resource_name = '10.1.202.246'
vsphere.resource_pool_name = ''
# The template we're going to clone
vsphere.template_name = 'Baseubuntu14.04'
# Top level where to create
#vsphere.data_center_name = '10.1.202.10'
# Where to create machine
vsphere.vm_base_path = 'Dev Ops'
# The name of the new machine
vsphere.name = 'Vagrant'
# vSphere login
vsphere.user = 'bigcorp\myuser'
# vSphere password
vsphere.password = 'mypass'
# If you don't have SSL configured correctly, set this to 'true'
vsphere.insecure = true
end
end
metadat.json:
--------------------------------------------
{
"name": "Baseubuntu14.04",
"description": "This box contains Ubuntu 14.04 LTS 64-bit.",
"versions": [{
"version": "0.2.0",
"providers": [{
"name": "vsphere",
}]
}]
}
Tree of my files, excluding Ansible:
--------------------------------------------------------
├── Baseubuntu14.04
│ ├── Baseubuntu14.04.box
│ ├── Baseubuntu14.04-disk1.vmdk
│ ├── Baseubuntu14.04.mf
│ ├── Baseubuntu14.04.ovf
│ └── metadata.json
├── Baseubuntu14.04.box
├── metadata.json
└── Vagrantfile