Reset root password in LXC container
Installing container in LXC goes like this:
lxc-create -n my-ubuntu -t download -- --dist ubuntu --release jammy --arch amd64
Run and login:
lxc-start -n my-ubuntu -F
Here you may get incorrect login, so need to change password.
First, stop container, in this case the name of container is my-ubuntu:
lxc-stop -n my-ubuntu
Then check if any user has pass there in container my-ubuntu: