Well this is somewhat strange. When I use the above configuration (add a disc and a iso image) I cannot boot the vm.
It is just powered off and this is useless.
But I tried it with pxe booting.
I created a template with coreos_pxe image and I referenced this and disk template in terraform. Then the vm is able to come up after it has been cloned.
{{{
disk {
datastore = "${var.datastore}"
template = "coreos_ipxe"
}
}}}
but without template and a disk with size and name property and a cdrom image attached it does not work :(
After I managed to get it up and running with that, terraform stuck on continuously trying to wait for the vm to come up
{{{
vsphere_virtual_machine.torservice0: Still creating... (10s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (20s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (30s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (40s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (50s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (1m0s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (1m10s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (1m20s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (1m30s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (1m40s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (1m50s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (2m0s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (2m10s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (2m20s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (2m30s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (2m40s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (2m50s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (3m0s elapsed)
vsphere_virtual_machine.torservice0: Still creating... (3m10s elapsed)
}}}
I get past it with launching the open-vm-tools docker image as a enabled service.
After starting this image terraform completes successfully having the right ip address etc. yaaay
But I have no issues creating the folder :(
Do you get an error or is it not visible at all without getting an error?
I am using
{{{
Version 6.5.0 Build 5318154
}}}
and
{{{
Terraform v0.9.5
}}}
Regards
Chris