Stay organized with collections Save and categorize content based on your preferences.
gcloud alpha compute migration machine-image-imports create
(IMAGE_IMPORT_NAME
: --location
=LOCATION
) --source-file
=SOURCE_FILE
[--additional-licenses
=[ADDITIONAL_LICENSES
,…]] [--description
=DESCRIPTION
] [--kms-key
=KMS_KEY
] [--labels
=[KEY
=VALUE
,…]] [--machine-image-name
=MACHINE_IMAGE_NAME
] [--machine-type
=MACHINE_TYPE
] [--network-interface
=[network
=NETWORK
],[networkTier
=NETWORKTIER
],[subnetwork
=SUBNETWORK
]] [--single-region-storage
] [--tags
=[TAGS
,…]] [--target-project
=TARGET_PROJECT
] [--enable-integrity-monitoring
--enable-vtpm
--secure-boot
=SECURE_BOOT
] [--scopes
=[SCOPES
,…] --service-account
=SERVICE_ACCOUNT
] [--skip-os-adaptation
| --adaptation-modifiers
=ADAPTATION_MODIFIERS
--boot-conversion
=BOOT_CONVERSION
--generalize
--license-type
=LICENSE_TYPE
--rootfs-uuid
=ROOTFS_UUID
] [GCLOUD_WIDE_FLAG …
]
(ALPHA)
gcloud alpha compute migration machine-image-imports create Imports machine images such as OVA and OVF files, from a Google Cloud Storage file (gs://…) to Google Compute Engine, using the Migrate to Virtual Machines service API. This command creates an Image Import resource with a nested Image Import Job resource. The Image Import Job resource tracks the image import progress. To use this command, you must enable VM Migration API in your project.
gcloud alpha compute migration machine-image-imports create my-machine-image-import --source-file=gs://my-images-bucket/ub-14.04.5.ova --image-name=my-ubuntu-machine-image --location=us-central1 --target-project=projects/my-project/locations/global/targetProjects/my-target-project --project=my-project
To set the project
attribute:
image_import_name
on the command line with a fully specified name;--project
on the command line;core/project
.This must be specified.
IMAGE_IMPORT_NAME
To set the image_import_name
attribute:
image_import_name
on the command line.This positional argument must be specified if any of the other arguments in this group are specified.
--location
=LOCATION
To set the location
attribute:
image_import_name
on the command line with a fully specified name;--location
on the command line;compute/region
.--source-file
=SOURCE_FILE
--additional-licenses
=[ADDITIONAL_LICENSES
,…]
--description
=DESCRIPTION
--kms-key
=KMS_KEY
--labels
=[KEY
=VALUE
,…]
--machine-image-name
=MACHINE_IMAGE_NAME
--machine-type
=MACHINE_TYPE
--network-interface
=[network
=NETWORK
],[networkTier
=NETWORKTIER
],[subnetwork
=SUBNETWORK
]
--single-region-storage
--tags
=[TAGS
,…]
--target-project
=TARGET_PROJECT
--enable-integrity-monitoring
--enable-vtpm
--secure-boot
=SECURE_BOOT
SECURE_BOOT
must be one of: false
, secure-boot-unspecified
, true
.
--scopes
=[SCOPES
,…]
--service-account
=SERVICE_ACCOUNT
At most one of these can be specified:
--skip-os-adaptation
--adaptation-modifiers
=ADAPTATION_MODIFIERS
--boot-conversion
=BOOT_CONVERSION
BOOT_CONVERSION
must be one of: bios-to-efi
, boot-conversion-unspecified
, none
.
--generalize
--license-type
=LICENSE_TYPE
LICENSE_TYPE
must be one of: compute-engine-license-type-byol
, compute-engine-license-type-default
, compute-engine-license-type-payg
.
--rootfs-uuid
=ROOTFS_UUID
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
vmmigration/v1
API. The full documentation for this API can be found at: https://cloud.google.com/migrate/virtual-machines
gcloud compute migration machine-image-imports create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-05 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4