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?
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?
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
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)
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
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).