LXD Debian VM - how to set username/password

Hi,
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?

Cheers,
Jon.

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.

2 Likes

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.

Cheers!
Jon.

Hi,
I just launched the ubuntu/22.04/desktop ubuntu but i’m unable to login as it’s requesting for a password after remote viewer popsup.

You may have waited too long and the screensaver kicked in?

There’s no password for that user, so if it gets locked, you can’t unlock it.
Well, short of doing lxc exec NAME passwd ubuntu to set a password.

Sorted! Thank you