Lab 10 Part 1 - Making modifications to an existing virtual machine

Video Activity

Lab 10 part 1. Making modifications to an existing virtual machine This lesson discusses making modifications to an existing virtual machine. Participants receive step by step instructions in a lab-based class. Participants learn how to: Increase the size of the virtual disk file Adjust the memory allocation Rename a VM Add a raw LUN to a VM Expand...

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

Lab 10 part 1. Making modifications to an existing virtual machine This lesson discusses making modifications to an existing virtual machine. Participants receive step by step instructions in a lab-based class. Participants learn how to:

  • Increase the size of the virtual disk file

  • Adjust the memory allocation

  • Rename a VM

  • Add a raw LUN to a VM

  • Expand a disk provisioned with thin provisioning

It is possible to do all of these functions with the machine powered up so there is no downtime.

Video Transcription
00:04
hello and welcome to lab number 10
00:07
in this lab will be making some modifications to existing virtual machine.
00:13
First thing we'll do is increase the size of the virtual disk file. Then we'll adjust its memory allocation.
00:19
Then we will rename Of'em.
00:23
We will add a raw London
00:26
two of'em,
00:28
and then we will expand disk that was provisioned with thin provisioning.
00:34
Okay, so for our first task,
00:36
we're going to increase the size of the virtual disc.
00:43
So I will go ahead to my
00:46
wind Shevin clone
00:49
that we created in the last lab.
00:52
And I can do actual its power, this guy up.
00:57
We can do this while the machine is powered up.
01:07
Mmm.
01:08
You can also do this activity where the machine is down, but it's more instructive to show it when it's powered up.
01:15
Uh,
01:17
to basically reconfirm that
01:19
a lot of these changes are possible while the machine is up and running,
01:23
so that when you need to make changes like this in your environment
01:26
in the future,
01:27
you'll realize that in some cases you do not have to endure any downtime.
01:34
Yeah,
01:37
Okay, so the machine is powering up.
01:40
We're almost booted
01:46
and This is a window seven V. M. So the process is slightly different If you're,
01:51
um,
01:52
trying to extend a volume on something
01:53
older like a server 2003 year 2008
01:57
you can actually use a utility
02:00
created by Del
02:01
called E X T part,
02:04
which stands for extend partition.
02:08
But with Windows seven and some other more modern server operating systems, like a server 2012
02:15
and so on, you can
02:16
extend the, uh, C drive without using any external tools.
02:23
The tool from Dell is free. It's very easy to find.
02:27
So if you have
02:28
22,003 or 2008
02:30
just do a quick search for
02:32
Del E x t part
02:35
and you should be able to locate that utility.
02:43
Okay, I'm gonna go ahead and log in here.
02:52
All right, So let's have a look. First ad
02:54
our current hard drive size,
03:00
getting a message about my paging file being kind of small, that's fine.
03:05
And we can see that I am almost out of space, so I really do need to increase the size of this drive. 33. Meg is barely any storage
03:15
to have in reserve,
03:16
huh?
03:20
So Our first task
03:21
is to expand the virtual hard disk.
03:23
We can do this
03:25
by going to the VM menu, selecting at its settings.
03:30
You can also do it by right clicking the VM and going to edit settings
03:34
works same way.
03:37
So we'll edit our settings
03:39
and I'll be selecting my hard disk and you can see that the provision size my hard disk is 10 gigabytes.
03:46
I'm using, like 99% of that right now, So I'm gonna go ahead and increase this
03:53
by two gigabytes.
03:53
12 Gig should give me enough storage to continue to use this VM and install updates in the future and so on.
04:03
So ah, very simple operation here. Just change that number
04:08
and click OK,
04:10
now if I examine that hard disk
04:14
from within the operating system itself,
04:19
So I'm going to the disco manager just going to start menu typing, creating format hardest partitions.
04:28
So let's bring this up.
04:35
Now we can see that my partition still tend. Gig. It's not showing,
04:41
and he changes.
04:43
Okay, so
04:45
I see my disk hair,
04:46
but it's still showing only 10 gigabytes, So what I have to do is refresh
04:51
the disk management view,
04:53
and now we can see that the analogue Kate ID two gigabyte portion shows up.
05:00
Sometimes that happens with just the manager.
05:02
Now I need to do is
05:04
right. Click on that volume
05:06
and say, Extend volume
05:13
helps me increase the size of simple and span volumes so I can add space for more time or additional discs.
05:20
In this case, I've got a ah, my default. Just get selected, which is his two gigabyte portion.
05:28
Could also specify the amount by typing in a number or using the buttons,
05:32
so I'll go ahead and click next and finish.
05:35
And now I've got 11.9 gigabyte partition
05:42
refresher this screen as well.
05:46
Now I've got 1.99 gigabytes free.
05:50
Yeah,
05:51
so pretty easy to do
05:54
again. If you're using an older OS, you do need to use
05:58
a different third party utilities such as Dell's extend partition,
06:02
and you can see that I've got that, actually, on the desktop here E x t part.
06:09
Okay, so our next task
06:12
is to increase the amount of memory that this machine is using.
06:19
So if I go to at its settings
06:24
and I select RAM, you'll notice that It's great out. I can't adjust the memory size while the virtual machine is actually up and running.
06:31
So I'm gonna go ahead and cancel that,
06:33
and I will shut the machine down.
06:42
Okay? It's installing some updates.
06:44
Ah, let's go ahead and
06:46
select a different machine. Since that one might be busy for a minute.
06:53
Shell shut this guy down right from this menu.
07:08
Okay,
07:09
Now the machine is
07:11
just about shutdown.
07:15
Okay, There we have it.
07:18
Now go to added settings,
07:23
and I'm gonna increase the disc's size on this machine as well.
07:28
Since I wanted to match the one that I cloned earlier.
07:31
I've got a lot of updates to install, and I want to make sure I have plenty of space for that.
07:36
So I've increased the disc's size. Same way I just did on the other system.
07:42
Then I want to select my memory,
07:44
and I want to give more memory to the machine.
07:48
So right now I have two gigabytes. I'll change that to three gigabytes.
07:55
That way, this machine will have more resource is, and I'll be able to do more with it, so click okay
08:03
and I can boot the machine.
08:11
See how the other one is doing
08:13
all right, that was still installing updates.
08:22
Anyways, while this machine is booting, we could move on to our next task.
08:28
In the case of
08:31
this particular machine called Win Seven Clone, that's pretty descriptive name.
08:35
But I can also rename this,
08:39
so I'm gonna call it Whips
08:43
Rename,
08:45
and I will call it Win seven Clone number two.
08:52
So this renaming
08:54
is really on Lee for inventory purposes,
08:58
and we can prove that
09:01
by going to the actual data store for this virtual machine.
09:05
And you'll see that when you look at the data store
09:09
that the name of the folder and all the configuration files
09:13
has not modified. Once
09:16
the machine has changed,
09:20
so go to my host
09:22
actually could do us a couple differently. Let's let's click the VM.
09:28
We'll go to the summary tab.
09:30
Now I know for sure which storage my machine is living on because it tells me I'll right click the storage, browse the data store
09:46
and this data stores should hold all of the virtual machines, and I so files
09:54
It's taken a moment for to update.
10:05
Okay, there we go.
10:05
So this machine was called wince Win seven clone
10:11
and we can see that it's that it's still here. The folder is still here.
10:15
It hasn't been renamed to Win seven Clone, too,
10:20
and you can see all of the different components that virtual disk file
10:24
the configuration followed. B M X file.
10:26
All these have their original naming.
10:33
So keep this in mind that when you re name of of'em, it's on Lee the inventory view that contains the new name.
10:39
If you want everything to change,
10:43
you either have to change these file
10:45
file names manually,
10:46
which
10:46
could be a little bit tricky if you make a mistake. Not a virtual machine may not boot.
10:54
Um, other options would be to clone the machine,
10:58
and in the process of cloning, you can give it a new name, and then all the files will be renamed correctly.
11:05
Okay, so our next task
11:07
we're gonna go ahead and close the dairy store down,
11:09
and I want to
11:11
at a raw London
11:15
to one of my virtual machines.
11:18
So we'll go ahead and pick the wind seven machine
11:24
and I can right click and go to you at its settings
11:30
and all of my hardware devices. are contained here. We can see I've got three. Gig of Ram.
11:35
I've got a 12 gigabyte hard disk.
11:39
Although I think if I remember right, this one is not had the operating system extended yet, So I have to do that eventually.
11:46
But for right now, what I want to do is add a device
11:50
so quick, the ad button.
11:52
I'm going to be adding a hard disk
12:01
click next.
12:03
And I can use a, uh, create a new virtual disk here,
12:07
or use one that already exists.
12:11
Or in my case, we're going to use a raw device mapping. This means that
12:16
that I've created a lung on my storage area network,
12:20
and I'm going to allow the virtual machine to use it directly.
12:26
Click next.
12:28
So the last Lund that I've got available
12:31
is this one here.
12:31
Channel zero, Target three Lund 4 to 3 gigabyte volume
12:37
so I can go ahead and select it.
12:39
Typically, you want a store,
12:43
the,
12:45
um,
12:46
the files with the virtual machine, as we have here.
12:52
Or you could you could specify a ah different data store if you wished.
12:56
I'm just gonna pick the one that the virtual machines already stored in which is my local desk.
13:03
Go ahead and click next.
13:07
This is another important question you have to deal with.
13:11
Ah, if you do the
13:13
physical compatibility mode now, the OS is accessing the hardware as if it was locally attached. Disc
13:20
that unfortunately means that you cannot use snapshots.
13:26
So if we want to use other functionality for re sizing and volumes and for snapshots, then we need to pick virtual compatibility mode.
13:37
So go ahead and select that
13:41
the, uh,
13:43
the device node that comes up virtual device node. We could leave this at the default setting.
13:50
And if you remember,
13:52
WeII spoken earlier labs about the actual mode.
13:56
If you put your book disk into independent mode
14:01
in persistent independent mode, that means that
14:03
all the changes are written to the disc the way you would normally expect.
14:07
Or we can select non persistent,
14:09
where changes are not maintained after a reboot.
14:13
We're just gonna de select that to use the
14:16
the deep default mode here. We're not going to use the independent mode.
14:20
We get our summer screen
14:22
showing us our target lung and virtual device. No, that's going to be mapped to this V M
14:28
and we click finish.
14:31
Now we can see that the new hard disk is being added. We've got a map raw London
14:37
being attached to this device.
14:41
So go ahead and click. Okay,
14:48
Now, if I
14:48
keep this virtual machine selected in the inventory
14:52
and go to my storage views,
15:00
I can see that
15:01
if I want to see all my virtual machine files,
15:05
it's telling me
15:07
within this directory on my
15:09
data store,
15:11
all the files that comprise this PM
15:16
tells you what the file type is, how large it is.
15:22
I can click the update link
15:26
so that it can update anything that's changed, and we can see that I've got a bunch of new files here,
15:33
and what we're looking for is
15:37
the V M D. K file
15:41
for the machine that was for the rather for the disk that was just created.
15:46
We can see. There it is. It's a three gigabyte file.
15:48
I've got a new virtual
15:50
machine rub
15:52
virtual disk file
15:54
showing me that extra storage that's now available
15:58
to their system.
16:00
So everything that's win seven underscore one
16:03
is that second disk. The original disk
16:07
is just windows seven. We consort this by name and make that a little bit easier
16:12
to see the changes.
16:14
So the underscore one
16:15
items are are those new items from adding adding the disc?
Up Next