I don’t see anything about credentials for the remote images. How do we log in?
This is what I ran:
incus init images:oracle/9 ocp-bootstrap
incus start ocp-bootstrap --console
Oracle Linux Server 9.5
Kernel 6.8.0-51-generic on an x86_64
ocp-bootstrap login:
The images do not have a default password as that would be a big security issue.
Instead, by using incus exec, you can get a shell into the instance without a password.
You need to have access to the incus tool to be able to get such a shell. That means that you either need to be root on the host, or as a non-root user, be a member of the incus-admin group.
There’s an alias, incus shell, which can be used to get a shell into an instance.
The following two commands are equivalent.
incus exec myinstance -- su -l
incus shell myinstance
If your instance has a non-root account (such as images:debian/12/cloud, username: debian), then you can get a non-root shell account with the following command.
Also, if you do want to set a password or ssh keys automatically as part of instance creation, then you can use the cloud-init version of images (e.g. images:ubuntu/24.04/cloud) with some cloud-init config.