Lesson 1 - Templates and Clones

Video Activity

Lesson 1. Templates and Clones This lesson discusses creating templates and clones in the virtual machine administrator. A template is a master copy of the virtual machine and is used to create and provision new VMs. You can also make unlimited copies once the master copy is created a well as clone and convert to a template. Cloning creates an exac...

Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
14 hours 13 minutes
Difficulty
Intermediate
CEU/CPE
20
Video Description

Lesson 1. Templates and Clones This lesson discusses creating templates and clones in the virtual machine administrator. A template is a master copy of the virtual machine and is used to create and provision new VMs. You can also make unlimited copies once the master copy is created a well as clone and convert to a template. Cloning creates an exact copy of a VM and can be done with the VM on or off.

Video Transcription
00:04
Hello. I'm Dean Campiglio. Welcome to Cyber Harry. We're still working in the virtual ization class to installation to do installation, configuration manual of your virtualization environment. We're now in module seven on our first lesson. Will we work with
00:18
templates and clones?
00:21
So this is an interesting concept.
00:23
Makes life a lot easier to be able to use templates and clones for the virtual machine administrator.
00:30
So we'll see what's involved with creating a template. How to deploy a bm from a template
00:35
on a clone of the M
00:37
a little bit about guest operating system customization.
00:41
And then you get to see all these activities in lab number nine.
00:46
Okay, So, template
00:48
effectively, this is what we call a master copy of your virtual machine.
00:53
So once I have that master copy, I can create endless numbers of
00:58
copies of that master.
01:00
So you
01:00
this is really effective. If you if you have a certain server type in your environment, like a database server or email server, a web server?
01:08
Well, maybe even a
01:11
on and user workstation.
01:14
You get that all set up the way you want to tweak everything, it's all your applications. Get it to look exactly right. And then you make a template from it.
01:22
Once you have the template,
01:23
it includes your guest operating system, all your applications and the configuration of the BM itself.
01:30
So it really does save you a tremendous amount of time
01:33
when you want to make further copies of that system in the future,
01:38
you can clone to a template. So now Of'em is up and running. You can right click
01:44
and say clone template,
01:45
or you can
01:47
clone.
01:48
I'm sorry. Um, you could do this also what the V M has turned off.
01:53
If the VM is running, the clone template will take significantly longer.
01:57
So if you don't need the BMT running at the at the time, you make the attempt expenditures power down
02:02
and then right, click and select clone to templates, and it'll be done in and seconds instead of hours. Potentially,
02:10
you can also convert of'em to a template. In this case, the VM must be off.
02:15
So there's a slight difference here between cloning to a template and converting to attempt Lee.
02:21
If I clone to a template,
02:23
the original VM still exists. It stays up and running, just as it always was, But now I'm making a template off of it.
02:30
If I convert to a template power the BM down. And now that GM gets converted to a template, which means that it's basically a BM that can't be powered on until I converted back
02:40
to a virtual machine.
02:43
So be aware of the difference there.
02:46
You can also clone a template itself.
02:49
You have to go to the proper view with envy center in order to see the templates.
02:53
Um, speaking of the view,
02:58
if you're in the hosts and clusters view, for instance,
03:00
and you convert
03:02
a B M to a 10 point,
03:05
it basically disappears.
03:07
And this causes a little bit of confusion the first time this happens because you were thinking, well, where did that template go?
03:13
The PM is no longer there in the temple. It's not there.
03:15
The reason you can't see it is because you have to go to the PM's and templates view
03:20
what you can do with control shift. Be if you want to remember the shortcut.
03:24
Once you're in the TV, EMS and templates view, then you'll see the template visible, and it has a different icon.
03:31
Template Icon
03:34
looks like, Ah, a little document with little corner turned up versus the VM icon, which looks like
03:42
two squares,
03:45
so you're used to seeing this in the center. When you go, the templates view, you'll see that option.
03:49
And, of course, within the VMS and templates view, you can use your folders for organization purposes if you wish.
03:55
The other place to see your V EMS is by selecting the hosts and clusters view and then clicking on the virtual machines tab.
04:05
So in that case, I can see my be EMS
04:09
in the host in clusters of you, but only when the virtual machine Tavis selected. Otherwise, you have to be in the PM's and templates view.
04:15
So be aware of those two different scenarios, because otherwise it could be a little confusing to find what you're looking for when you make a template.
04:25
All right, So if you're going to deploy from a template, let's say I've converted
04:29
a machine to attempt we or cloned
04:30
a machine to a template
04:33
when I wanted to to deploy that, make a new copy of that of that master bm.
04:41
I have to provide the name for the virtual machine
04:44
you want to pick a unique name so you don't have conflicts. Of course,
04:46
you have to choose the location in your inventory
04:49
so you'll pick a host. You could pick a folder. You could pick a cluster,
04:54
pick a folder within a class, Terry of a lot of options there.
04:58
You also have to pick the data store on where the bee EMS files will reside.
05:02
And then lastly, you have the option to customize the operating system.
05:09
We'll talk about the customization in just a moment.
05:12
What happens if you created a V m?
05:16
Get it all configured the way you like You're building, You clone it to a template
05:20
and you like that template. You're using it for a while. But you realize at some point
05:25
well, I have to patch
05:27
some applications. I have to install operating system patches.
05:30
Maybe you want to make some other configuration changes.
05:33
So in order to update the template that you used for all those master copies, you have to do a few steps here.
05:42
First thing you have to do is convert the template to a B m.
05:46
You can't change the template in its template, for
05:49
we have to bring it back into the V M uh, status,
05:54
then.
05:55
Ah, good idea is to prevent user access to this virtual machine.
05:59
If you convert it to a V M and it's on the network, there's a chance that somebody might try to connect to it
06:04
or might connect to it automatically, depending on what kind of software they're using.
06:09
So a couple options. You can either put that on an isolated network.
06:12
Or you can just disable the networking altogether. That we on Lee Be center could manage the end. But nobody can connect to it on the network. That's probably little bit of an easier option in some cases.
06:24
Then you simply make the changes to the virtual machine. You update your patches, installed new software, make other changes as needed,
06:31
and you converted back to a template.
06:33
Now you're back to having your master copy of the virtual machine
06:39
that we started with at the beginning.
06:43
So
06:44
when you clone a virtual machine, you can just right click in the inventory.
06:48
You can do this when the virtual machine is on or off
06:51
again. If the
06:54
if the virtual machines off the cloning process is far
06:58
quicker, than it would be if the VM was on
07:00
When it's on, we've got a lot of
07:02
disc access going on and management network is active, so the cloning process will take much longer.
07:09
So it's possible for for expediency reasons
07:13
power to be em down first before you decide to clone it.
07:17
When you do
07:20
the deployment from template, I mentioned customizing the guest no less.
07:26
This is an option you can do. You can build a customization specifications,
07:31
and what this allows you to do is make sure that
07:34
that when you deploy a V M from the template, it is a unique system on the network we don't want Is software network conflicts? If I
07:44
If I clone a machine and it had the same host name
07:46
and even potentially same I P address? If you're not using D H E P, that could happen,
07:53
then that's gonna cause problems because now you've got a conflict to machines of the same name
07:58
to machines with same I P address would would cause various issues on your network.
08:03
So if you choose to make a customization that you can use the Wizard very easy to deal with
08:09
the custom is Asians get stored in your V center database and you could give them a name like
08:15
something descriptive
08:16
that's useful to you in the future when you want to use that customization to create more V EMS from it,
08:24
and then these specifications can also be edited.
08:28
So that gives you the ability to tweak the customization a little bit.
08:31
For whatever reason, maybe you want to change the format of the host name or you want to change the networking set up for some reason.
08:39
So you do have a lot of options there
08:43
and then one of the other nice things about templates that we can actually deploy of'em from one data center to another.
08:50
This is very handy.
08:52
We can't just drag and drop a B M from one data center to another. That's not supported it. Maybe at some point, the future.
09:00
Right now that doesn't really work.
09:01
Uh,
09:03
the way that you might you might wish,
09:07
but we can do is clone a BIA.
09:09
So you right click to clone the way you normally would. And if you've got more than one data center available to you like we've got a training data center for these labs. You could create training, too,
09:20
and you could select that as the destination for where that BM will reside.
09:24
You can also deployed from the template in one day to center and then make the destination in the other data center.
09:31
This gives you a nice way to be able to move things around.
09:33
And if you've got one data center that's got everything built the way you like, then you can simply clone everything to a second data center to replicate your effort with very little
09:43
extra work involved.
09:48
Okay, so we talked about
09:48
what templates are used for lewd and how they can be created of the machines on or off.
09:54
We also covered how to deploy from a template. And how did you updates to that template,
10:01
then a little bit on cloning
10:03
all these things air selectable as a right click from the VM once you're in the inventory
10:07
and then a little bit on the guest,
10:09
less customization and how we can work with the EMS between data center.
10:16
So let's go ahead and do Lab number nine.
10:18
Lab number nine. You'll get to,
10:20
uh,
10:22
see what's involved with getting a
10:24
This is prepped files copied.
10:28
You also create a template.
10:30
Create the customization pacification,
10:31
and then deploy virtual machine from that template
10:35
and then clone a machine that's powered on.
10:39
All right, that concludes. Lost someone. Thank you.
Up Next