Vmpooler doesn't seem to correctly find VMware VMs:
[2017-04-21 20:52:10] [*] [centos-7] starting worker thread
[2017-04-21 20:52:12] [!] [centos-7] 'vmp_r14lejs7ljrsee2' not found in inventory, removed from 'completed' queue
[2017-04-21 20:52:15] [ ] [VMP_CentOS7_3] 'vmp_s306w9dbnqrnil6' is being cloned from 'VMP_CentOS7_3'
[2017-04-21 20:52:39] [+] [VMP_CentOS7_3] 'vmp_s306w9dbnqrnil6' cloned from 'VMP_CentOS7_3' in 23.59 seconds
[2017-04-21 20:52:39] [?] [centos-7] 'vmp_s306w9dbnqrnil6' added to 'discovered' queue
[2017-04-21 20:52:41] [ ] [VMP_CentOS7_3] 'vmp_tm3m2ew577l397j' is being cloned from 'VMP_CentOS7_3'
[2017-04-21 20:53:03] [+] [VMP_CentOS7_3] 'vmp_tm3m2ew577l397j' cloned from 'VMP_CentOS7_3' in 22.87 seconds
[2017-04-21 20:53:04] [?] [centos-7] 'vmp_tm3m2ew577l397j' added to 'discovered' queue
[2017-04-21 20:53:04] [ ] [centos-7] 'vmp_s306w9dbnqrnil6' is being shut down
[2017-04-21 20:53:04] [-] [centos-7] 'vmp_s306w9dbnqrnil6' destroyed in 0.50 seconds
As far as I can tell, it doesn't even attempt to verify if a VM was successfully cloned and is accessible
on the net.
The docs don't go into detail on how the template VM should be set up and what should be provided to make this work.
What I gathered:
- it needs a VM, not a VM template, so that's quite misleading when VMware offers VM templates.
- the VMs need IPs assigned by DHCP.
- VMware Tools or Open VM Tools need to be installed(?).
- vmpooler needs to have SSH access to the VMs.
Here's the (redacted) config I used:
vmpooler.yaml
---
:vsphere:
server: vcsa.local
username: vmpooler@vsphere.local
password: secret
:auth:
provider: dummy
:redis:
server: localhost
:config:
logfile: "/tmp/vmpooler.log"
prefix: vmp_
timeout: 120
:pools:
- name: centos-7
template: TEMPLATES/VMP_CentOS7_3
folder: "Pooled VMs/CentOS7_3"
pool: vmpooler
datastore: VMW/A_DATASTORE
clone_target: A_CLUSTER
size: 1
Vmpooler doesn't seem to correctly find VMware VMs:
As far as I can tell, it doesn't even attempt to verify if a VM was successfully cloned and is accessible
on the net.
The docs don't go into detail on how the template VM should be set up and what should be provided to make this work.
What I gathered:
Here's the (redacted) config I used:
vmpooler.yaml