johnny_bravo | hey guys, how can i set the hostname with cloud-init on ubuntu 16.04 so that it sends it’s new name to the dhcp server | 11:07 |
---|---|---|
johnny_bravo | this ‘send host-name = gethostname();’ in dhclient.conf gets the old name | 11:07 |
johnny_bravo | once i reboot the VM the hostname is sent correctly | 11:07 |
johnny_bravo | is there a way to do this? | 11:08 |
johnny_bravo | im using qemu-kvm and the user-data is on a cdrom iso image | 11:08 |
=== shardy is now known as shardy_lunch | ||
=== shardy_lunch is now known as shardy | ||
=== rangerpbzzzz is now known as rangerpb | ||
rharper | powersj: you poked on cloud-init snappy and package install, I noticed that if you ssh in , the config-final modules aren't done yet; so initially snap list didn't show those py-numpy and such, but after the module completes they are present | 18:01 |
powersj | rharper: interesting I'll give it another round this afternoon | 18:12 |
powersj | maybe I didn't wait long enough :( | 18:12 |
powersj | I usually wait for /var/lib/cloud/instance/boot-finished to show up | 18:13 |
rharper | powersj: ok | 19:12 |
rharper | powersj: http://paste.ubuntu.com/23512996/ ; the 'ready' state of the last snap installed corresponds pretty much to the timestamp on boot-finished ; snap install doesn't appear to be async; but I suppose it's possible that a snap install has completed, but it doesn't appear in snap list until it's ready and that may be async from cloud-init finish | 19:20 |
powersj | rharper: I'm starting to wonder if all my issues are with the fact that I'm using LXD as a backend | 21:13 |
powersj | is that what you are using? or VMs? | 21:13 |
rharper | powersj: vms | 21:19 |
rharper | it's possible there's an issue with snappy under lxd, you may need to update your host (lxd updates) | 21:19 |
rharper | and/or ensure we launch with a profile that supports snappy under lxd (nested security support is needed) | 21:19 |
rharper | that may be kernel (4.8 or updates to 4.4) etc | 21:20 |
rharper | I suggest asking in #lxd for the right levels/config options needed | 21:20 |
=== rangerpb is now known as rangerpbzzzz |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!