Hello there.

Are you missing the datastore?
Where are you telling the plugin you want to use template vs machine?


What I have found is template and VM should be on the same datastore.

Alvaro.


On Tue, Oct 20, 2015 at 7:13 PM, Stefaans Mostert
<[email protected]> wrote:
>
> Morning all
> I use vagrant-vsphere to provision vmware boxen to my environment.
> https://github.com/nsidc/vagrant-vsphere
>
> Now........
> 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/79
> No 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
>
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/ef93a658-ce08-45dc-80b7-f45be5924873%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0eynPmVcfiMbJG62uoGL6LaCRZ%2Bt%2B91fRj-7G2yJ7xDVHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to