M BUZZ CRAZE NEWS
// news

Default username/password for Ubuntu Cloud image?

By Gabriel Cooper

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?

3 Answers

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

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:

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)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy