Stay organized with collections
Save and categorize content based on your preferences.
NAME
gdcloud compute images import - Import a virtual machine image.
SYNOPSIS
gdcloud compute images import IMAGE_NAME [flags]
EXAMPLES
To import an Ubuntu 20.04 image, run:
gdcloud compute images import byo-ubuntu-2004 \
--project example-project \
--source-file=./ubuntu-image.img \
--os=ubuntu-2004
OPTIONAL FLAGS
--os string The OS of the disk image being imported. OS must be one of: "ubuntu-2004", "ubuntu-2204", "ubuntu-2404", "rhel-8", "windows-2019", "windows-10", "garden-linux", "suse-chost-15".
--source-file string A local disk image file to import.
--timeout string Maximum time an import can last before it fails as timeout. Default value is "1h". Max value is "24h". (default "1h")
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["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-03-05 UTC."],[[["This command imports a virtual machine image into the system using the `gdcloud compute images import` command."],["The command requires the image name and allows specifying the source file and the operating system of the image being imported with the `--source-file` and `--os` flags."],["Supported operating systems include Ubuntu, RHEL, Windows, Garden Linux, and SUSE."],["The maximum allowed timeout for an import is 24 hours, and it defaults to 1 hour using the `--timeout` flag."],["Global flags, like `--project`, `--format`, and `--help`, are available for use with this command."]]],[]]