Time
2 hours 58 minutes
Difficulty
Beginner
CEU/CPE
3

Video Transcription

00:00
Hi,
00:01
You are watching Model three Managing virtual machines. Lesson three. Managing snapshots
00:09
by the end of this video will understand what a snapshot is,
00:13
how to create one
00:14
and how to manage Snapple's
00:17
A snapshot is the preserved state off a virtual machine at a specific point in time.
00:24
A snapshot lets you create a safe environment for testing updates and patches.
00:29
And in case the system is spoiled due to those, you can quickly revert back to a priest. Natural state
00:38
snapshots are available. Both envies enter and in the host client
00:43
Essential preserves the disc state off a virtual machine by creating a new Delta disc
00:50
toe where data is written
00:52
that has a This format
00:54
with the member sign corresponds to the snapshot number,
00:58
and it preserves the original discovery in by restricting access to read. Only
01:03
a snapshot also preserves the memory state off a virgin machine. By creating this file
01:10
where again, the number sign corresponds to the snapshot member,
01:15
and it gives you the possibility to revert back to the original Veum without having the VM power off.
01:22
Pretty awesome.
01:23
Now let me walk you through the process of creating snapshots,
01:27
looking to re center
01:29
and pick of Ian, for example, the Web VM
01:34
right. Click on it and choose snapshots.
01:37
Then click on. Take a snapshot
01:40
in the snapshot name. You can see that it picked up a default name toe, which it depends a time stamp.
01:45
This is a very good idea.
01:47
It helps you keep track off when this natural it was taken.
01:51
It also encourages you to write a description off this snapshot.
01:56
Why are you taking a sexual?
01:57
This is very useful to keep things tidy, especially when there are plenty of snapshots around.
02:04
You can see here that preserving the memory state of GM is enabled by default.
02:08
This allows your VM to revert back to the power state it was in when the snapshot was taken.
02:15
So click okay,
02:17
you can monitor these natural creation process in the recent tasks.
02:22
It could take a while, depending on the size of the content of your memory.
02:27
When it's done, it looks like nothing happened. But if you right click the VM and Goto snapshots
02:34
and then to manage naturals,
02:36
you can see here that the snapshot was created and is active because the you are here cursor is pointing to it.
02:45
Now this you are here. Cursor is very important. Actually,
02:49
it indicates which snapshot you are working under right now,
02:53
and it is your only guide, especially when you create multiple Snapple's
02:59
Let's now open E Castle to our snapshot and try and make some modifications to the disc by creating a new file.
03:07
And it's right, Hello, world
03:10
just once and then save an exit.
03:14
Let's display the content of the fire.
03:16
Okay, looks good.
03:19
That's not creating new statute and make a second modification.
03:40
So let's go back to manage snapshots.
03:44
And as you can see,
03:46
there is now a second's natural,
03:49
and we are working under it right now
03:52
because the cursor indicates it.
03:53
Let's make some modifications to the same file we created in the first snapshot.
04:00
If we display the content of file, the hello world is still there.
04:04
So the state off the previous step road was preserved.
04:09
Let's now open the file and at second line off. Hello, World
04:14
saving exit display the content
04:16
and we have made modifications to this file twice.
04:21
Let's go back to manage snapshots.
04:25
Let's not suppose that you didn't like the modifications in this snapshot, and you want to revert back to the previous natural, where there was only a single line off Hello world in the test file.
04:36
Well, to do so, we have to click on the second step salt and choose Revert to.
04:43
I know it's kind of confusing. Why don't we click directly on the first natural 10 Trees River, too?
04:48
Well, because the latest level off a snapshot always indicates that state off the parent at the moment of the snapshot. So if I revert to step foot one, I will be returning to a point in time where the first snapshot was taken, and thus it will be returning to the original P M. Actually.
05:10
Now, to make sure we reverted back to the correct state, let's display the content of our test file.
05:15
And lo and behold, we returned to a state where there was only one line off Hello world
05:21
and have you noticed something? The power state of the VM was also preserved
05:28
when we took the snapshot. Remember, we also took a snapshot of the memory state with a V M, and that's why, after we reverted back, the VM remained powered on
05:40
let's know suppose that I am happy with the modifications made to my snapshot one. And I want to keep the modifications and merge the snapshots with the original Vienna.
05:50
In this case, you need to be careful where the you are. Here cursor is if you click on delete All snap Charles and the cursor is below the latest snapshot. Then you are performing. Emerge off all your snapshots with the original Veum.
06:10
If the cursor, however, is above a snapshot and you select elite, then it will be a deletion and not emerge.
06:17
In our case, it will be emerged. So click on delete all
06:23
remember the latest state we are in. There is only one occurrence off. Hello World
06:30
anarchist file. And since this is emerged with the original Veum that had no test file in the first place, we should find the file and the hello world inside.
06:41
Let's verify that,
06:46
and lo and behold, there it is. Let's not just something else.
06:50
Let's take a snapshot.
06:53
But this time we are going to exclude the memories that wrote. This means that we are going to preserve the state off the V M disc only
07:01
click okay,
07:02
and you can see that this snapshot was taken in a much shorter time.
07:06
Let's very find that the snap photos created
07:10
on there it is.
07:13
There is a slight difference between this snapshot and the previous worlds. If you see the little icon to the left of the snapshot name, there is no green triangle that indicates the power state of the V M.
07:27
That's because the memory was excluded from this natural.
07:30
Let's make some modifications to the text file.
07:49
Let's remove all the text,
07:54
save and exit.
07:56
Make sure it's all gone
07:59
now. I want to recover the state where the text was still there, so we need to revert back to when this snapshot was created
08:07
right before we deleted the hello around. So let's select the snapshot and click on reverts to
08:26
on notice here
08:26
the V M powered off.
08:30
Why is that?
08:31
Well, it's because the memory of state was not preserved during this natural
08:37
No, let's power on the V M
08:52
on log in.
08:56
Now let's verify that our test files still contains the hello world
09:05
on glue and behold,
09:07
it's still there.
09:09
I hope this was not too confusing for you.
09:13
Thanks for watching, and I'll see you in the next video

Up Next

VMware Foundations

In the VMware Foundations course, students will learn virtualization basics and core concepts, the components and features of the VMware vSphere, and managing virtual machines. Upon completion, students will have a basic understanding of the vSphere.

Instructed By

Instructor Profile Image
Yacine Benbelkacem
IT Trainer and Consultant at CISCO, VMWare
Instructor