Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina descrive come creare un ripristino per i carichi di lavoro delle macchine virtuali (VM) in Google Distributed Cloud (GDC) air-gapped.
Puoi creare un ripristino per un backup creato manualmente o automaticamente da un piano di backup. La VM ripristinata e i relativi dischi contengono nomi diversi in base al valore specificato nel campo restoredResourceName. Vengono ripristinate tutte le risorse VM menzionate nell'ambito della risorsa VirtualMachineBackupPlan. Tutte le risorse ripristinate hanno il nome preceduto dal valore del campo restoredResourceName.
Quando viene ripristinato un backup, viene ripristinata l'intera VM. Dopo la creazione delle risorse, il ripristino della funzionalità dell'applicazione è soggetto al sistema operativo o all'immagine della VM.
Prima di iniziare
Per creare un ripristino, devi disporre di quanto segue:
Un backup esistente. Crea backup in base a una pianificazione utilizzando i piani di backup oppure crea backup manualmente. Per saperne di più, vedi Creare un piano di backup con ambito.
VM_BACKUP_NAME: il nome della risorsa VirtualMachineBackup da cui eseguire il ripristino.
PROJECT_NAME: il nome del progetto GDC.
RESTORE_REQUEST_NAME: il nome da assegnare alla richiesta di ripristino che viene avviata.
RESTORE_NAME: il nome da assegnare al ripristino che viene avviato.
RESTORE_PREFIX: il prefisso assegnato alle risorse VM appena create. I nomi della VM e del disco VM ripristinati sono preceduti dal valore restoredResourceName nella richiesta di ripristino.
RESTORED_RESOURCE_DESCRIPTION: una descrizione del ripristino in corso.
[[["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 guide details the process of restoring virtual machine (VM) workloads in Google Distributed Cloud (GDC) air-gapped environments.\u003c/p\u003e\n"],["\u003cp\u003eRestoration can be performed from backups created either manually or through scheduled backup plans.\u003c/p\u003e\n"],["\u003cp\u003eWhen restoring, the entire VM is restored, and all resources associated with the \u003ccode\u003eVirtualMachineBackupPlan\u003c/code\u003e will receive a new name prefixed by the \u003ccode\u003erestoredResourceName\u003c/code\u003e field value.\u003c/p\u003e\n"],["\u003cp\u003eCreating a restore requires an existing backup and the necessary identity and access role permissions.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eVirtualMachineRestoreRequest\u003c/code\u003e resource is used to initiate the restore, with configurations for the source backup name, project name, restore name, resource name prefix, and a description.\u003c/p\u003e\n"]]],[],null,["# Create a restore\n\nThis page describes how to create a restore for virtual machine (VM) workloads in Google Distributed Cloud (GDC) air-gapped.\n\nYou can create a restore for a backup that was created manually or automatically by a backup plan. The restored VM and its associated disks contain different names based on the value you specify in the `restoredResourceName` field. All of the VM resources mentioned in the scope of `VirtualMachineBackupPlan` resource are restored. All the resources that are restored get their name prefixed with the value of the `restoredResourceName` field.\n\nWhen a backup is restored, the entire VM is restored. After the resources are created, the restoration of application capability is subject to the VM operating system or image.\n\nBefore you begin\n----------------\n\nTo create a restore, you must have the following:\n\n- An existing backup. Create backups on a schedule using backup plans, or create backups manually. For more information, see [Create a scoped backup plan](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/vm-backup/scope-schedule/create-scoped-backup-plan).\n- The necessary identity and access role. For more information, see [Prepare roles and permissions](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/vm-backup/scope-schedule/vm-scope-overview#prepare-roles-permissions).\n\nCreate a manual VM backup\n-------------------------\n\nCreate the `VirtualMachineRestoreRequest` resource using the API: \n\n apiVersion: virtualmachine.gdc.goog/v1\n kind: VirtualMachineRestoreRequest\n metadata:\n name: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eRESTORE_REQUEST_NAME\u003c/span\u003e\u003c/var\u003e\n namespace: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003ePROJECT_NAME\u003c/span\u003e\u003c/var\u003e\n spec:\n virtualMachineBackup: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eVM_BACKUP_NAME\u003c/span\u003e\u003c/var\u003e\n restoreName: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eRESTORE_NAME\u003c/span\u003e\u003c/var\u003e\n restoredResourceName: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eRESTORE_PREFIX\u003c/span\u003e\u003c/var\u003e\n restoredResourceDescription: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eRESTORED_RESOURCE_DESCRIPTION\u003c/span\u003e\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eVM_BACKUP_NAME\u003c/var\u003e: the name of the `VirtualMachineBackup` resource to restore from.\n- \u003cvar translate=\"no\"\u003ePROJECT_NAME\u003c/var\u003e: the name of the GDC project.\n- \u003cvar translate=\"no\"\u003eRESTORE_REQUEST_NAME\u003c/var\u003e: the name to give the restore request that is being initiated.\n- \u003cvar translate=\"no\"\u003eRESTORE_NAME\u003c/var\u003e: the name to give the restore that is being initiated.\n- \u003cvar translate=\"no\"\u003eRESTORE_PREFIX\u003c/var\u003e: the prefix given to newly created VM resources. The restored VM and VM disk names are prefixed with `restoredResourceName` value in the restore request.\n- \u003cvar translate=\"no\"\u003eRESTORED_RESOURCE_DESCRIPTION\u003c/var\u003e: a description of the restore being performed.\n\nWhat's next\n-----------\n\n- [Clean up labels after restoring VM-attached disks](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/vm-backup/clean-up-labels-after-restore)"]]