11

I have downloaded and launched an instance of this image in OpenStack

http://cloud-images.ubuntu.com/releases/13.10/release-20140226/ubuntu-13.10-server-cloudimg-amd64-disk1.img

But I don't know the password of this. Can anyone tell me?

Umair Ayub
  • 1,070

4 Answers4

16

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
rashok
  • 389
1

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)

1

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

1

Even though upvoted answers would work, the modern way to setup cloud-images is to use 'cloud-init'.

Consider following tutorial (which actually sets the password for default ubuntu user):

https://cloudinit.readthedocs.io/en/latest/tutorial/qemu.html

Cloud Init will execute your script at the first boot of your image. You can utilize Cloud init also for additional installation steps (if for example you'd like to get your k8s node up and running or something like that).

Igor I
  • 11
  • 2