Questo contenuto non è disponibile nella lingua selezionata.

6.9. Snapshots


6.9.1. Creating a Snapshot of a Virtual Machine

A snapshot is a view of a virtual machine’s operating system and applications on any or all available disks at a given point in time. Take a snapshot of a virtual machine before you make a change to it that may have unintended consequences. You can use a snapshot to restore a virtual machine to a previous state.

Creating a Snapshot of a Virtual Machine

In the VM Portal:

  1. Open a virtual machine.
  2. In the Snapshots panel, click +Create Snapshot.

    A snapshot is added to the panel, including all attached disks.

In the Administration Portal:

  1. Click Compute Virtual Machines.
  2. Click a virtual machine’s name to go to the details view.
  3. Click the Snapshots tab and click Create.
  4. Enter a description for the snapshot.
  5. Select Disks to include using the check boxes.

    Note

    If no disks are selected, a partial snapshot of the virtual machine, without a disk, is created. You can preview this snapshot to view the configuration of the virtual machine. Note that committing a partial snapshot will result in a virtual machine without a disk.

  6. Select Save Memory to include a running virtual machine’s memory in the snapshot.
  7. Click OK.

The virtual machine’s operating system and applications on the selected disk(s) are stored in a snapshot that can be previewed or restored. The snapshot is created with a status of Locked, which changes to Ok. When you click the snapshot, its details are shown on the General, Disks, Network Interfaces, and Installed Applications drop-down views in the Snapshots tab.

6.9.2. Using a Snapshot to Restore a Virtual Machine

A snapshot can be used to restore a virtual machine to its previous state.

Using Snapshots to Restore Virtual Machines

In the VM Portal:

  1. Shutdown the virtual machine.
  2. In the Snapshots panel, click the Restore Snapshot icon for the snapshot you want to restore.

    The snapshot is loaded.

In the Administration Portal:

  1. Click Compute Virtual Machines and select a virtual machine.
  2. Click the name of the virtual machine to go to the details view.
  3. Shut down the virtual machine.
  4. Click the Snapshots tab to list the available snapshots.
  5. Select a snapshot to restore in the upper pane. The snapshot details display in the lower pane.
  6. Click the Preview drop-down menu button and select Custom.
  7. Use the check boxes to select the VM Configuration, Memory, and disk(s) you want to restore, then click OK. This allows you to create and restore from a customized snapshot using the configuration and disk(s) from multiple snapshots.

    The status of the snapshot changes to Preview Mode. The status of the virtual machine briefly changes to Image Locked before returning to Down.

  8. Start the virtual machine; it runs using the disk image of the snapshot.
  9. Click Commit to permanently restore the virtual machine to the condition of the snapshot. Any subsequent snapshots are erased.

    Alternatively, click the Undo button to deactivate the snapshot and return the virtual machine to its previous state.

6.9.3. Creating a Virtual Machine from a Snapshot

You can use a snapshot to create another virtual machine.

Creating a Virtual Machine from a Snapshot

  1. Click Compute Virtual Machines and select a virtual machine.
  2. Click the virtual machine’s name to go to the details view.
  3. Click the Snapshots tab to list the available snapshots.
  4. Select a snapshot in the list displayed and click Clone.
  5. Enter the Name of the virtual machine.
  6. Click OK.

After a short time, the cloned virtual machine appears in the Virtual Machines tab in the navigation pane with a status of Image Locked. The virtual machine remains in this state until Red Hat Virtualization completes the creation of the virtual machine. A virtual machine with a preallocated 20 GB hard drive takes about fifteen minutes to create. Sparsely-allocated virtual disks take less time to create than do preallocated virtual disks.

When the virtual machine is ready to use, its status changes from Image Locked to Down in Compute Virtual Machines.

6.9.4. Deleting a Snapshot

You can delete a virtual machine snapshot and permanently remove it from your Red Hat Virtualization environment.

Deleting a Snapshot

In the VM Portal:

  1. Open a virtual machine.
  2. In the Snapshots panel, click the Delete Snapshot icon of the snapshot you want to delete.

In the Administration Portal:

  1. Click Compute Virtual Machines.
  2. Click the virtual machine’s name to go to the details view.
  3. Click the Snapshots tab to list the snapshots for that virtual machine.
  4. Select the snapshot to delete.
  5. Click Delete.
  6. Click OK.
Note

If the deletion fails, fix the underlying problem (for example, a failed host, an inaccessible storage device, or a temporary network issue) and try again.

Red Hat logoGithubRedditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita ilBlog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

© 2024 Red Hat, Inc.