What is the default username/password of LXC instances (Ubuntu) deployed by Juju via MAAS?

Jeff McLamb mclamb at gmail.com
Sat Sep 19 16:16:44 UTC 2015


Hi all -

I am currently in a situation where my juju deployment host and MAAS host
(thus DHCP/DNS) are down and I won’t be able to power them back on for a
few days.

I have manually added entries to /etc/hosts on all of my bare metal
machines (so that OpenStack services can resolve names absent the DNS
server) but I cannot login to my LXC instances in order to modify
/etc/hosts.

For whatever reason the keys aren’t in place to directly ssh into each LXC
instance from my bare-metal machines. The only option I have is to
lxc-console directly into each instance, where I am presented with a login
prompt.

Is there a default user/pass for these Ubuntu LXC instances deployed by
juju (via MAAS?) or some way to inject a file (e.g. replace/mod /etc/hosts)
into the container?

It appears as though I could just modify
/var/lib/lxc/<container>/rootfs/etc/hosts directly, but that seems like it
might cause consistency issues? Or maybe doing that followed by an
`lxc-stop —name <container> -r` will reboot the container and it will Just
Work?

Thanks,

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20150919/ee4f15e5/attachment.html>


More information about the Juju mailing list