LXD Debian VM - how to set username/password

I’m spinning up a test debian 10 VM in LXD and trying to set the passed as per cloud init in the config file but I can’t login still.

Is there a default password for the debian 10 image or should it be set with cloud image?


We never set default credentials in our images.

That said, all images we publish on images: support the LXD agent, so you should be able to just lxc exec NAME bash and get a root shell inside the VM.

1 Like

Wow that was a fast reply. :smiley:

Ah right I was trying to access through the console like a dummy.

I’ve tried the normal exec bash command and I’m straight in.