I have been trying to import an instance from aws to google cloud. I have been following the steps from the link
https://cloud.google.com/compute/docs/import/import-existing-image#create_image_file
When i try to import using the command as below
gcloud compute images create cp --source-uri gs://examplebucket/disk.vmdk
it gives me error like in the screenshot.
i have tried many solutions like
changed some entries in the grub file, and also I have tried generating the new intramfs file but it still doesnt help. The instance which i am trying to export is a rocky 8.9 machine. If anyone has any ideas or came to this same situation please do help me out.
This will be tricky to diagnose on a forum like this. But some thoughts.
Can you share the steps/commands you used to generate the VMDK? Have you tried mounting that VMDK on any other platform?
There is a tool you can use to check compatibility of the image that you might want to run on the source, see: https://cloud.google.com/compute/docs/import/importing-virtual-disks#precheck
Finally - you can import EC2 instances directly using Migrate to Virtual Machines tool, see: https://cloud.google.com/migrate/virtual-machines/docs/5.0/migrate/create-an-aws-source
Just some thoughts.