gcloud alpha compute images translate

gcloud alpha compute images translate - translate an imported image to make a bootable image
gcloud alpha compute images translate --destination-image=DESTINATION_IMAGE --source-image=SOURCE_IMAGE (--custom-workflow=CUSTOM_WORKFLOW     | --os=OS) [--async] [--log-location=LOG_LOCATION] [--timeout=TIMEOUT; default="2h"] [GCLOUD_WIDE_FLAG …]
(ALPHA) gcloud alpha compute images translate converts an imported image to one that is bootable on Google Compute Engine. It uses the --os flag to choose the appropriate translation.

Importing images involves 3 steps:

  • Upload the virtual disk file to Google Cloud Storage.
  • Import the image to Google Compute Engine.
  • Translate the image to make a bootable image (this command).
The name of the translated image to create.
The name of the imported image to translate.
Exactly one of these must be specified:
Specifies a custom workflow to use for the image translate. Workflow should be relative to the image_import directory here: https://github.com/GoogleCloudPlatform/compute-image-tools/tree/master/daisy_workflows/image_import. For example: debian/translate_debian_8.wf.json
Specifies the OS of the image being translated. OS must be one of: centos-6, centos-7, debian-8, debian-9, rhel-6, rhel-6-byol, rhel-7, rhel-7-byol, ubuntu-1404, ubuntu-1604, windows-2008r2, windows-2012r2, windows-2016.
Display information about the operation in progress, without waiting for the operation to complete.
Directory in Google Cloud Storage to hold build logs. If not set, gs://<project num>.cloudbuild-logs.googleusercontent.com/ will be created and used.
--timeout=TIMEOUT; default="2h"
Maximum time a build can last before it is failed as "TIMEOUT". For example, specifying 2h will fail the process after 2 hours. See $ gcloud topic datetimes for information on duration formats.
These flags are available to all commands: --account, --configuration, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
This command is currently in ALPHA and may change without notice. Usually, users of ALPHA commands and flags need to apply for access, agree to applicable terms, and have their projects whitelisted. Contact Google or sign up on a product's page for ALPHA access. Product pages can be found at https://cloud.google.com/products/.
Was this page helpful? Let us know how we did:

Send feedback about...