Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Create snapshot in XenServer

Leer en espanol
Create snapshot in XenServer

Table of contents

A disk snapshot is a copy of the virtual machine's disk file at a specific point in time. Preserves disk file system and memory ===

What is a snapshot?

backupsnapshotA snapshot (or snapshot) of a disk is a copy of the virtual machine's disk file at a specific point in time. It preserves the disk file system and system memory of our VM, allowing us to return to that saved image or snapshot in case something goes wrong. Snapshots can be real lifesavers when updating or patching applications and servers. This entry we will see how to make a snapshot  in XenServer

We access the XenCenter or OpenXenManager client, We position ourselves on the server → right click → take a snapshot

Captura de pantalla de 2015-04-26 17:28:21

We fill in a distinguishable name and description and press Take Snapshot.

Captura de pantalla de 2015-04-26 17:28:50

If we go to the LOG tab we check if the snapshot is carried out correctly

Captura de pantalla de 2015-04-26 17:29:00

Through the Snapshot tab we can manage the different snapshots

Captura de pantalla de 2015-04-26 17:29:04From the XenServer console

We list the virtual machines

[root@xenserver01 ~]# xe vm-list
uuid ( RO)           :87dc7b1b-1054-db4a-9bdd-fb8a61244648
name-label (RW): Debian
power-state (RO): halted

Command syntax:

text
xe vm-snapshot vm=<Nombre maquina que vamos a sacar snapshot> new-name-label=<Nombre snapshot>

We proceed to take the snapshot

Bash
[root@xenserver01 ~]#  xe vm-snapshot vm=Debian new-name-label=Debian_snapshot

Revert changes

Let's see, in case it is necessary, how to go back and use the snapshot that we made previously.

For this we position ourselves in the snapshot → right click → Revert To Snapshot..

Captura de pantalla de 2015-04-26 17:33:12

We press YES to continue reversing.

Captura de pantalla de 2015-04-26 17:33:21

Again we have to add a name and a brief description.

Captura de pantalla de 2015-04-26 17:34:33

We start the virtual machine and if everything turned out correctly, the changes after the snapshot will have been reverted.

Captura de pantalla de 2015-04-26 17:35:00

A saudo, rokitoh

:wq!

Comments