I have downloaded and launched an instance of this image in OpenStack
But I don't know the password of this. Can anyone tell me?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityI have downloaded and launched an instance of this image in OpenStack
But I don't know the password of this. Can anyone tell me?
There is no default username/password for the ubuntu cloud image. Need to configure it using below cmd, before creating instance from the image.
virt-customize -a bionic-server-cloudimg-amd64.img --root-password password:<pass>
Need to install below pkg to get virt-customize
cmd.
sudo apt install libguestfs-tools
guestfs-tools
From OpenStack import or create a key pair and when you launch the instance select the keypair to add. You will be able to "ssh -i your-priv-key ubuntu@your_machine_ip"
PS don't forget to set a security group for the instance to allow ssh connections
Reference: https://docs.openstack.org/horizon/latest/user/configure-access-and-security-for-instances.html
I believe there is no default password, here is how you can set it: How to set a password for Ubuntu Cloud Images (ie. NOT use ssh)