Hi, I’ve done a bit of testing. I tested both Fog and RbVmomi directly the template is cloned with the the interface connected or at least with the start connected attribute being retained. Cloning the template directly results in the same results.
The templates belong to my employer, and I’m not sure they will let me share them. I will say for certain that we’re not doing anything odd with them other than using HCL vs JSON, and using the vsphere-iso builder. The resulting template does have the VM NIC set to start connected.
Is there another modification to the interfaces done by foreman after the clone? I see that in the code it leverages the new_vm method, which adds a new interface to the returned object. That interface though should have the attributes as set in the passed args correct? I tried forcing adding the connectable attribute, with startConnected and connected both true, in the clone_vm method after new_vm returned the VM object, but that didn’t work either.
We’ve also updated our foreman instance toforeman 2.1.2 and ubuntu 18.04.