josenk / esxi-vm-create

ESXi create VM utility using python and ssh.
62 stars 39 forks source link

The creation fails if there is an Annotation on the VM #2

Open k4cy opened 6 years ago

k4cy commented 6 years ago

I've got VMs and one with this annotation :

mkdir -p /vmfs/volumes/LUN-DM2/DOMEDIA01 vmkfstools -i \

/vmfs/volumes/LUN-TPL1/TPL-CENTOS6-x86_64/TPL-CENTOS6-x86_64.vmdk \

/vmfs/volumes/LUN-DM2/DOMEDIA01/DOMEDIA01.vmdk -d thin

rm DOMEDIA01-flat.vmdk DOMEDIA01.vmdk vmware.log DOMEDIA01.nvram DOMEDIA01.vmsd DOMEDIA01.vmxf

The script was failing with this message :

[root@master01 esxi-vm-create]# ./esxi-vm-create -n testvm01 The Error is <type 'exceptions.IndexError'>

I've been able to create the VM removing the annotation

My ESXI version :

VMware ESXi 6.0.0 build-3029758 VMware ESXi 6.0.0 Update 1

josenk commented 6 years ago

How did you add the annotation? Can you send me a copy of your config file... (remember to remove your password!) $ cat ~/.esxi-vm.yml

k4cy commented 6 years ago

I've added the annotation using the vSphere Client (sorry for the delay for the answer)