Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Linux
Windows
Ce document explique comment créer une instance de machine virtuelle (VM) dont les propriétés sont semblables à celles d'une VM existante à l'aide de la console Google Cloud .
Si vous disposez d'une VM avec des propriétés que vous souhaitez réutiliser, vous pouvez créer une VM basée dessus. Vous pouvez créer la VM en utilisant les mêmes propriétés que la VM de référence ou en les modifiant. Cela est utile lorsque vous devez créer rapidement une VM, par exemple dans les scénarios suivants :
Déploiement rapide
Scaling
Tests
Reprise après sinistre
Créer une VM semblable à une VM existante
Pour créer une VM avec des propriétés semblables à celles d'une VM existante, procédez comme suit :
Dans la console Google Cloud , accédez à la page Instances de VM.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eThis document guides users on creating a new virtual machine (VM) instance in Google Cloud that mirrors the properties of an existing VM.\u003c/p\u003e\n"],["\u003cp\u003eCreating a similar VM is useful for rapid deployment, scaling, testing, and disaster recovery scenarios.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves navigating to the VM instances page, selecting a reference VM, clicking "Create similar," and then customizing the new VM's properties as needed.\u003c/p\u003e\n"],["\u003cp\u003eWhile the new VM inherits the properties of the reference VM, it does not copy any data from the original VM or its attached persistent disk volumes.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Cloud console provides the option to view the equivalent code in the Google Cloud CLI, Compute Engine API, or Terraform to create the VM.\u003c/p\u003e\n"]]],[],null,["Linux Windows\n\n*** ** * ** ***\n\nThis document explains how to create a virtual machine (VM) instance that has\nproperties similar to an existing VM using the Google Cloud console.\n\nIf you have a VM with properties that you want to reuse, then you can create a\nVM based on it. You can create the VM by using the same properties as the\nreference VM or by modifying them. This is useful when you need to quickly\ncreate a VM, such as in the following scenarios:\n\n- Rapid deployment\n\n- Scaling\n\n- Testing\n\n- Disaster recovery\n\n| **Important:** When creating the VM, the Google Cloud console uses the reference VM's properties. However, the Google Cloud console doesn't copy any data from the reference VM or from any Persistent Disk volumes attached to it.\n\nCreate a VM similar to an existing VM\n\nTo create a VM with similar properties to an existing VM, do the following:\n\n1. In the Google Cloud console, go to the **VM instances** page.\n\n [Go to VM instances](https://console.cloud.google.com/compute/instances)\n2. In the **Name** column, click the name of an existing VM which you want to\n use to create your VM.\n\n The **VM instance details** page opens.\n3. Click **Create similar**.\n\n The **Create an instance** page opens. By default, the Google Cloud console\n specifies the same properties as the reference VM.\n4. Customize the properties of the VM.\n\n | **Note:** To view the equivalent Google Cloud CLI, Compute Engine API, or Terraform code to create the VM, click **Equivalent code**.\n5. Click **Create**.\n\nTroubleshoot\n\nIf you encounter issues when creating VMs, then see\n[Troubleshoot creating, updating and deleting VMs](/compute/docs/troubleshooting/troubleshooting-vm-creation).\n\nWhat's next\n\n- [Add persistent disks to the new VM](/compute/docs/disks/add-persistent-disk)\n- [Transfer files to the new VM](/compute/docs/instances/transfer-files)\n- [Create a VM from an image](/compute/docs/instances/create-start-instance#startinginstancewithimage)\n- [Create a VM from an instance template](/compute/docs/instances/create-vm-from-instance-template)\n- [Connect to the VM](/compute/docs/instances/connecting-to-instance)"]]