Import OVA in Cloud Build filure due to dependency error

789 Views Asked by At

I tried to import OVA (from VMware Workstation) to GCP Compute Engine Instance, but whole process failed after VMDK disk image to RAW format conversion, when executing following activities in importer VM:

Apr 22 13:50:32 inst-translator-import-ovf-translate-translate-disk-l2myq startup-script: INFO startup-script-url: commandrvf: /bin/sh -c "DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends google-cloud-sdk"

Apr 22 13:50:40 inst-translator-import-ovf-translate-translate-disk-l2myq startup-script: INFO startup-script-url: E: Unable to correct problems, you have held broken packages.

I can attach whole build log if, more information is needed.

1

There are 1 best solutions below

2
Cam On

Run the pre check tool to see if there is any compatibility issues pre/post import

Can you run the following command with the ‘--verbosity=debug’ when importing the image. Any import errors will present itself here :

gcloud compute instances import foob --source-uri gs://[BUCKET]/image.ova --os [OS-type] --zone [ZONE_NAME] --verbosity=debug

The initial error means that the given OS version isn't tested for compatibility, and note that you must configure the bootloader correctly so it is able to boot up on GCE. So remove any Spashimage, rhgb and kernel command line arguments.