SuperLag | I'm doing my level best to get the VMware DataSource working to spin up Ubuntu cloud images with customizations. I'm trying to do the "GuestInfo" keys bit, found here: https://canonical-cloud-init.readthedocs-hosted.com/en/latest/reference/datasources/vmware.html and AFAICT, I'm doing it correctly, but trying to use the key I specified in the userdata file it still doesn't let me connect. | 03:59 |
---|---|---|
SuperLag | https://gist.github.com/akulbe/d81e5b88367052fd721e3dd1599dab91 | 04:03 |
SuperLag | the hashes it generates on CLI match what is getting pasted into the advanced properties for the VM in vCenter | 04:06 |
holmanb | Hey SuperLag o/ | 15:03 |
holmanb | Looking at your gist now, do I understand that you pasted the contents of multiple files into that gist? | 15:04 |
holmanb | SuperLag: that makes it difficult to check syntax (where, exactly, are the start and end of the files?) | 15:05 |
holmanb | That said, at a glance it looks like you've mixed up the "user" and "users" keys. user is for configuring the default user and won't accept a list, users is what I think you want. If you run `cloud-init schema --validate -c /path/to/userdata.yml` do you see an error? | 15:21 |
SuperLag | holmanb: I did paste multiple files in there. 😬 | 17:00 |
SuperLag | https://gist.github.com/akulbe/c40ed30074a3e969c93c8e76e4d4b37e | 17:36 |
SuperLag | https://gist.github.com/akulbe/09b5acbceadaa33ea5d694d328b11cae | 17:38 |
SuperLag | holmanb: I fixed user --> users, and then I tried adding a password so I could log in and troubleshoot, but still... no dice. | 17:40 |
holmanb | SuperLag: I'll try to take a look later today. What's your govc invocation? | 19:05 |
SuperLag | holmanb: $GOPATH/bin/ | 19:06 |
SuperLag | and that's on PATH | 19:07 |
SuperLag | it's like it makes the metadata changes, since the machine comes up named "node" as I have it in the metadata.yaml file, but the userdata, I'm not sure about yet | 19:07 |
SuperLag | and I tried setting a password for the account, so that I could troubleshoot from the console... but that didn't work either | 19:08 |
holmanb | SuperLag: I meant what args do you pass to govc? | 19:50 |
SuperLag | oh derp... I read that as "location" 😆 | 19:53 |
SuperLag | govc vm.change -vm "${VM}" -e guestinfo.metadata="${METADATA}" -e guestinfo.metadata.encoding="gzip+base64" -e guestinfo.userdata="${USERDATA}" -e guestinfo.userdata.encoding="gzip+base64" | 19:54 |
SuperLag | (exactly as listed on the page) | 19:55 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!