I was able to import Rocky linux 9 image on AWS and Azure successfully with Rocky-9-GenericCloud-Base.latest.x86_64.qcow2 format .
But using same qcow2 format it failed on GCP
As per the below link, there are qcows supported on AWS,Azure OCP. But don’t see the qcow support on GCP, any reasons for this?
Where can find the qcow2 format for GCP cloud
Can anyone help me on this Please
@neil Do you know if we have a cloud image that works on GCP?
So we don’t currently ship any images which are explicitely for GCP, as we work directly with Google Cloud to have them build and release our images directly into GCP. We have thought and talked about building our own images as well at some point, but at the current moment it’s not on the roadmap.
That being said, the genericcloud image should generally work, I’ve used it in the past on GCP.
Can you share what problems you’re having with it?
The imported image worked when I used the username rocky. But when I give username other than rocky I am unable to login .
GCP will not work on default cloud-init username right? It should support any username actually.
AM i missing as packges or gcp specific packages ??
If you want to use a username other than rocky, then you need to create a user for it.
It’s the same with OpenStack, all images are prepared with a default user, just like in this case “rocky”, for CentOS it was “centos”, for Ubuntu it’s “ubuntu”, for Debian it’s “debian”. You get the picture, the default login is usually the distro name.
Cloud init allows for things like SSH keys to be injected into the image, I’ve never seen it inject to create a username of your choice though. Usually the default login is used that the image was prepared with. Then if you want your own user, you create it yourself and then remove the default user if you don’t want it.
Thanks for the reply. In GCP and Azure we use different usernames on Centos-7 . Its works all perfect .
We don’t create any users . I guess its from cloud(GCP and Azure)side its been taken care. I was checking how can I achieve this from rocky linux
Yes , cloud sdks will take care of user creation. Below is the output on Centos 7 OS.
cat /var/log/messages | grep rocky
Jun 13 09:40:28 ctqa-node-07f826-0 google_guest_agent: Creating user rocky.
Jun 13 09:40:28 ctqa-node-07f826-0 google_guest_agent: Updating keys for user rocky.
Jun 13 09:41:53 ctqa-test-dnsme-replace systemd: Created slice User Slice of rocky.
Jun 13 09:41:53 ctqa-test-dnsme-replace systemd: Started Session 1 of user rocky.
Jun 13 09:41:53 ctqa-test-dnsme-replace systemd-logind: New session 1 of user rocky.
Jun 13 09:49:23 ctqa-test-dnsme-replace su: (to root) rocky on pts/1
If I install azure and gcp specific sdks it should resolve my problem