Allo all
I have the following.....
Vagrant.configure("2") do |config|
config.vm.box = 'vsphere_dummy'
config.vm.box_url = '/home/user/trusty64/vsphere_dummy.box'
config.vm.provider :vsphere do |vsphere|
# The vSphere host we're going to connect to
vsphere.host = '10.1.202.246'
# The ESX host for the new VM
vsphere.compute_resource_name = '10.1.212.10'
# The resource pool for the new VM
vsphere.resource_pool_name = 'Vagrant'
# The template we're going to clone
vsphere.template_name = 'Elastic_tmp'
vsphere.linked_clone = false
vsphere.data_store_name = 'datastore1 (1)'
# The name of the new machine
vsphere.name = 'dev-ops'
# vSphere login
vsphere.user = '[email protected]'
# vSphere password
vsphere.password = 'password'
# If you don't have SSL configured correctly, set this to 'true'
vsphere.insecure = true
end
end
When I run it I get the following.
user@box-nb:~/trusty64 > vagrant up --provider=vsphere
Bringing machine 'default' up with 'vsphere' provider...
Configured template/source VM could not be found
I am having huge issues here!
On Thu, Jan 14, 2016 at 11:14 AM, Alvaro Miranda Aguilera <[email protected]
> wrote:
> Hello Steff
>
> Are several vsphere plugins, which one are you using?
>
> If you are using this:
> https://github.com/nsidc/vagrant-vsphere
>
> The resource pool is on the GUI that defines the rules of the VM.
>
> You usually don’t needed. Test leaving that commented out.
>
> You can deploy from template, or cloning a VM, try both.
>
> This is how I created a multi-vm setup
>
> To clone from a Template, you need:
>
> vsphere.template_name = 'oracle6-template'
> vsphere.linked_clone = false
>
>
> ie
>
> #name of vm to current directory
> vm_prefix = "webserver"
> #number of vms
> vm_number = 1
> #ram
> vm_ram = 1024
> #cpu
> vm_cpu = 2
>
> Vagrant.configure("2") do |config|
>
> config.vm.box = 'dummy'
> config.vm.box_url = '../dummy.box'
> config.vm.synced_folder ".", "/vagrant", disabled: true
> config.vm.provision "shell", run: "always", inline: "[ -f
> /etc/udev/rules.d/70-persistent-net.rules ] && rm -fr
> /etc/udev/rules.d/70-persistent-net.rules"
>
> config.ssh.username = 'root'
> config.ssh.password = 'root'
> config.ssh.forward_x11 = true
>
> (1..vm_number).each do |i|
> config.vm.define vm_name = "#{vm_prefix}%01d" % i do |config|
> config.vm.hostname = vm_name
> config.vm.provider :vsphere do |vsphere|
> vsphere.vm_base_path = 'vagrant-vsphere'
> vsphere.name = vm_name
> vsphere.template_name = 'oracle6-template'
> vsphere.linked_clone = false
> vsphere.data_store_name = 'datastore1'
> vsphere.memory_mb = vm_ram
> vsphere.cpu_count = vm_cpu
> vsphere.host = '192.168.1.28'
> vsphere.insecure = true
> vsphere.compute_resource_name = '192.168.1.30'
> vsphere.user = '[email protected]'
> vsphere.password = '<password>'
> end
> end
> end
> end
>
>
>
>
> On 14/01/2016, at 9:46 PM, Stefaans Mostert <[email protected]>
> wrote:
>
>
> Allo all
>
> Trying to use the vagrant-vsphere plugin.
> Who can tell me how to find out what the resource pool for an environment
> is?
> Yes, I have a useless VMware admin.
>
> Steff
>
>
>
> --
> 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/826a4507-2b3c-43b6-a780-9a415ec64c41%40googlegroups.com
> <https://groups.google.com/d/msgid/vagrant-up/826a4507-2b3c-43b6-a780-9a415ec64c41%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/FFAF5F3A-60CF-470D-8B93-3062279A3188%40gmail.com
> <https://groups.google.com/d/msgid/vagrant-up/FFAF5F3A-60CF-470D-8B93-3062279A3188%40gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
J Stefaans Mostert
Mobile: 0844634590
Fax: 0867300603
skype: mozzi_za (kuberboef)
Linux is simple. It just takes a genius to understand its simplicity.
--
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/CANNCwOUxo%3DGPEfZ_%3DM9kOpAPwkiieS5tJD1YeRdNwcUNALciBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.