{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/23270","labels_url":"https://api.github.com/repos/saltstack/salt/issues/23270/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/23270/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/23270/events","html_url":"https://github.com/saltstack/salt/issues/23270","id":72485283,"number":23270,"title":"Creating a VM from template does not connect NIC (modified or new) - salt-cloud vmware provider","user":{"login":"indispeq","id":7377424,"avatar_url":"https://avatars.githubusercontent.com/u/7377424?v=3","gravatar_id":"","url":"https://api.github.com/users/indispeq","html_url":"https://github.com/indispeq","followers_url":"https://api.github.com/users/indispeq/followers","following_url":"https://api.github.com/users/indispeq/following{/other_user}","gists_url":"https://api.github.com/users/indispeq/gists{/gist_id}","starred_url":"https://api.github.com/users/indispeq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indispeq/subscriptions","organizations_url":"https://api.github.com/users/indispeq/orgs","repos_url":"https://api.github.com/users/indispeq/repos","events_url":"https://api.github.com/users/indispeq/events{/privacy}","received_events_url":"https://api.github.com/users/indispeq/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Fixed%20Pending%20Verification","name":"Fixed Pending Verification","color":"d4c5f9"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P4","name":"P4","color":"031a39"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-Cloud","name":"Salt-Cloud","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2175,"closed_issues":1944,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-05-06T11:02:08Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-05-01T18:02:57Z","updated_at":"2015-05-06T14:49:41Z","closed_at":null,"body":"Hi! Thank you for the great work on this cloud provider.\r\n\r\nI am running esxi5.5 standard, but I am getting an issue after creating my VM, both with static, or a dhcp IP:\r\n\r\ntemplate: basic ubuntu 14.04 LTS install converted into template\r\nvmtools: tried with vmware-tools as well as the recommended open-vm-tools\r\n\r\n- the VM is created and I can add or modify the template's existing NICs (tried with template with one nic or none).\r\n- when the vm is cloned, looking in settings I see that 'connected' and 'connect at poweron' are not checked. \r\n- salt-cloud gets stuck on 'Waiting to get IP information , which it never gets unless I manually connect the NIC in the vsphere client and do an ifup on the command line from the console, but this still doesn't help with the /etc/network/interfaces configuration , which never makes it into the template.\r\n- I have to ctrl+c out of it in the end.\r\n\r\nI noticed that:\r\n```\r\n               connectable = (vim.vm.device.VirtualDevice.ConnectInfo) {\r\n                  dynamicType = <unset>,\r\n                  dynamicProperty = (vmodl.DynamicProperty) [],\r\n                  startConnected = true,\r\n                  allowGuestControl = true,\r\n                  connected = false,\r\n                  status = <unset>\r\n```\r\nhas *connected = false* , this I could change in the vmware.py file but even setting it to true and having the output show it did not actually check the connected box on the VM cloned from the template.\r\n\r\nMy cloud.profiles config:\r\n```\r\nvmware-ubuntu-14.04-public:\r\n  provider: my-vsphere\r\n  clonefrom: ubuntu2\r\n\r\n  cluster: cluster1.\r\n\r\n  datastore: Datastore1\r\n\r\n  datacenter: Home\r\n\r\n  power_on: True\r\n\r\n  devices:\r\n    network:\r\n      Network adapter 1:\r\n        name: INTERNET\r\n        ip: 1.2.3.30\r\n        gateway: [ 1.2.3.17 ]\r\n        subnet_mask: 255.255.255.240\r\n        domain: cloud.com\r\n        type: vmxnet3\r\n\r\n  dns_servers:\r\n    - 8.8.8.8\r\n    - 8.8.4.4\r\n  domain: cloud.com\r\n\r\n  deploy: True\r\n  ssh_username: ubuntu\r\n  private_key: /root/.ssh/id_rsa\r\n```\r\nPlease let me know what else you'd need to troubleshoot this. Thanks!"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/99498207","html_url":"https://github.com/saltstack/salt/issues/23270#issuecomment-99498207","issue_url":"https://api.github.com/repos/saltstack/salt/issues/23270","id":99498207,"user":{"login":"syphernl","id":639906,"avatar_url":"https://avatars.githubusercontent.com/u/639906?v=3","gravatar_id":"","url":"https://api.github.com/users/syphernl","html_url":"https://github.com/syphernl","followers_url":"https://api.github.com/users/syphernl/followers","following_url":"https://api.github.com/users/syphernl/following{/other_user}","gists_url":"https://api.github.com/users/syphernl/gists{/gist_id}","starred_url":"https://api.github.com/users/syphernl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syphernl/subscriptions","organizations_url":"https://api.github.com/users/syphernl/orgs","repos_url":"https://api.github.com/users/syphernl/repos","events_url":"https://api.github.com/users/syphernl/events{/privacy}","received_events_url":"https://api.github.com/users/syphernl/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T14:49:41Z","updated_at":"2015-05-06T14:49:41Z","body":"@nmadhok A NIC + `vmware-tools`  in the template results in the same problem: a NIC but not connected. The only way to get this to work is if the template has no NIC at all."}}