vagrant-vsphere icon indicating copy to clipboard operation
vagrant-vsphere copied to clipboard

Template not found

Open Kuberboef opened this issue 10 years ago • 1 comments

Morning all

Ihave sorted most of my little issues with Vagrant and Vsphere, only one remains... Template not found. I have tried everything, I can see the template where it is supposed to be and I have admin rights on the server. I have used this to troublleshoot,,, yet no go. https://github.com/nsidc/vagrant-vsphere/issues/79

Here is my Vagrant file Vagrant.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 = 'i10.1.202.246'            
vsphere.resource_pool_name = ''

#clone from vm
#vsphere.clone_from_vm = true

# 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 = 'bigcomp\myname'                                    

# vSphere password
vsphere.password = 'mypass'                         

# If you don't have SSL configured correctly, set this to 'true'
vsphere.insecure = true                                    

end end

Kuberboef avatar Oct 20 '15 05:10 Kuberboef

This plugin requires the full path of the template including the folder names. I was wondering if it was possible to just pass the template name rather than the full full path to the template. If I am not wrong this example here doesn't require passing full path of the template: https://github.com/vmware/rbvmomi/blob/master/examples/clone_vm.rb

SlackingVeteran avatar Dec 01 '16 20:12 SlackingVeteran