Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
NOME
gdcloud compute images import - Importa un'immagine di macchina virtuale.
SINOSSI
gdcloud compute images import IMAGE_NAME [flags]
ESEMPI
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
FLAG FACOLTATIVI
--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
Questi flag sono disponibili per tutti i comandi: --configuration, --format, --help, --project, --quiet.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eThis command imports a virtual machine image into the system using the \u003ccode\u003egdcloud compute images import\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires the image name and allows specifying the source file and the operating system of the image being imported with the \u003ccode\u003e--source-file\u003c/code\u003e and \u003ccode\u003e--os\u003c/code\u003e flags.\u003c/p\u003e\n"],["\u003cp\u003eSupported operating systems include Ubuntu, RHEL, Windows, Garden Linux, and SUSE.\u003c/p\u003e\n"],["\u003cp\u003eThe maximum allowed timeout for an import is 24 hours, and it defaults to 1 hour using the \u003ccode\u003e--timeout\u003c/code\u003e flag.\u003c/p\u003e\n"],["\u003cp\u003eGlobal flags, like \u003ccode\u003e--project\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, and \u003ccode\u003e--help\u003c/code\u003e, are available for use with this command.\u003c/p\u003e\n"]]],[],null,["# gdcloud compute images import\n\nNAME\n----\n\ngdcloud compute images import - Import a virtual machine image.\n\nSYNOPSIS\n--------\n\n gdcloud compute images import IMAGE_NAME [flags]\n\n### EXAMPLES\n\n To import an Ubuntu 20.04 image, run:\n\n gdcloud compute images import byo-ubuntu-2004 \\\n --project example-project \\\n --source-file=./ubuntu-image.img \\\n --os=ubuntu-2004\n\n### OPTIONAL FLAGS\n\n --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\".\n --source-file string A local disk image file to import.\n --timeout string Maximum time an import can last before it fails as timeout. Default value is \"1h\". Max value is \"24h\". (default \"1h\")\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]