What is the default user and password when using `lxc launch --console`?

Created a container with

lxc launch --ephemeral --console ubuntu:lts ubuntu

and I’m currently stuck at ubuntu login:. Can’t even exit the prompt (CTRL+C and CTRL+D are not working).

I can kill the shell, call the command again without --console, and just use --exec after container creation, but at this point I’m curious what I’m doing wrong.

This is dependent on whether the image you have used has user password set. The LXD provided images do not, but you can set one manually or use cloud-init.

The images from ubuntu: remote may have a default password but I’m not sure.

1 Like