Instructor: Now that we created our virtual machines, 2 2
it's a really good idea to take snapshots of them. 3 3
A snapshot allows you to store the state 4 4
of the current virtual machine. 5 5
So allows you to go back in time 6 6
or go forward to a certain state after you go back. 7 7
So you can think of it as bookmarks. 8 8
For example, now we can take snapshots 9 9
of our fresh installation of the operating systems. 10 10
And in the future if we update or configure something 11 11
or break something, you can literally just go back 12 12
to the fresh install or go back to factory settings 13 13
if you want to call it. 14 14
Then if you did something there 15 15
and then you wanted to go back to your updated system. 16 16
Then you can go back to the updated system as well. 17 17
So it can literally take a snapshot whenever you want 18 18
to store the state of the machine. 19 19
And then you can go back and forth between these states. 20 20
Now I'll show you how to do that. 21 21
I have Kali-Linux right here. 22 22
The one that we installed. 23 23
And it's very easy to create a snapshot for it. 24 24
All we have to do is just go on the snapshots here 25 25
and click on the camera icon. 26 26
Then it's gonna ask you to call the snapshot something. 27 27
So I'm just going to call it Fresh Install 28 28
and I'm just gonna give it the description 29 29
saying it's a fresh snapshot with no updates. 30 30
It's always a good idea to give a good name 31 31
and good description so that in the future, 32 32
you can actually remember what's the snapshot stand for. 33 33
So now that I'm done, I'm just gonna click on okay. 34 34
And now you can see that we have the current state. 35 35
So whatever you do in here. 36 36
You can update. 37 37
You can install programs. 38 38
You can install libraries. 39 39
And then if you break something or you ever want to go back 40 40
to the fresh install, you can just come back 41 41
and click on the fresh install and restore. 42 42
So let's see now. 43 43
I'm just gonna go back to the details as normal 44 44
and then we're gonna start our virtual machine. 45 45
I'll just show you an example now. 46 46
So let me just create a new directory in here. 47 47
So let's imagine that you actually updated the system. 48 48
Now in the future, we're gonna talk 49 49
about updating the system. 50 50
And I'm gonna tell you that when you update, 51 51
there's a good chance some libraries 52 52
some programs will not be as up to date 53 53
as the libraries that will be installed. 54 54
And then these programs might start giving you issues. 55 55
Now if you have the issues, you can put them into discussion 56 56
and I'll help you with them. 57 57
But some cases, I'll tell you that you'll need to go back or 58 58
downgrade to the older version without the update. 59 59
So all you'll have to do is just get back 60 60
to the fresh installation to your fresh snapshot. 61 61
So now just created the new file just to show you 62 62
that once you actually go back, everything will go back 63 63
to the way it was before the changes that you made. 64 64
So I'm just gonna turn off Kali. 65 65
And now if we go back to the snapshots, 66 66
you'll see that we have our current state. 67 67
This state has been changed so it's the changed state. 68 68
Now let's say that you updated 69 69
and the update was successful. 70 70
So nothing was broken and you are happy with it. 71 71
So what you should do is that you should just come in and 72 72
click on the camera icon again to create another snapshot. 73 73
And we're gonna call this one Updated System. 74 74
And then you can just put the date if you want to. 75 75
And then I'm just going to put the description 76 76
updated with no problems. 77 77
So I'm gonna click okay. 78 78
And you can see that we have two snapshots. 79 79
We have the first one, which is our fresh install. 80 80
And then we updated our system 81 81
and we have an updated snapshot of an updated system. 82 82
So now let's say that after you updated 83 83
and you thought that everything was okay, 84 84
you are using the machine and you have problems. 85 85
So you wanted to go back to the fresh installation. 86 86
All you have to do is just click on the fresh install 87 87
and you can see the restore icon right here. 88 88
Just click that. 89 89
And now it restored me to the fresh installation. 90 90
So now if I start the Kali machine, 91 91
you will see the new directory 92 92
that we created will disappear. 93 93
Now as you can see, we are back to where we were 94 94
without the new directory, without anything. 95 95
So we are actually back to the fresh installation of Kali 96 96
to when we actually took the snapshot. 97 97
So now I'm gonna show you another example. 98 98
So let's say you went back in time 99 99
and you went back to your fresh installation. 100 100
And then for some reason, 101 101
you wanted to go back to your updated state 102 102
to see if you can fix the issue. 103 103
If I suggested the solution 104 104
or if you read the solution online 105 105
and you want to go back to fix the issue 106 106
that you had after the update or for any other reason. 107 107
Maybe you just wanted to go back to a different state. 108 108
It wasn't an updated state. 109 109
I'm just giving an example with the update. 110 110
So if you want to go back to a future state, 111 111
you can still do that. 112 112
So all you have to do is just again. 113 113
Click on the updated. Click on the restore. 114 114
And we don't want to create a new snapshot 115 115
from the current state. 116 116
Because the current state is the updated state. 117 117
So we're gonna restore this. 118 118
Start the machine and you'll see 119 119
that we'll be back to the updated state 120 120
to where we had the new directory created. 121 121
So we're actually gonna go back in the future now. 122 122
And as you can see now, we have our test directory. 123 123
So we're back to the state where we updated the system. 124 124
So again. 125 125
As you can see, the snapshots can be really useful. 126 126
They can allow you to store bookmarks 127 127
or states of the operating system. 128 128
So you can actually have different configurations 129 129
and you can switch between them as you want.