Hyper-V

Course
Time
5 hours 8 minutes
Difficulty
Beginner
CEU/CPE
5

Video Transcription

00:00
So we're gonna go ahead and work on the virtual machine itself now.
00:05
New virtual machine. Was it nice and simple on this one? So what you would do here is choosing names, so we're gonna call it a demonstration.
00:13
Demonstration one is the name of our machine.
00:16
If you don't take this box, it will take the default storage facility that you set on the hyper visa
00:23
that we just worked on previously. So if you just want them all in the same place, it will automatically create folders and structure for you. You just need to tell it where the kind of root of the virtual machine will be.
00:36
But if you do take your box, you can then change this and you can
00:40
move it to wherever you need to effectively, We're not gonna do that, Which gonna leave it where it is
00:45
never gonna choose the generation. So we've discussed generations before.
00:50
Generally, you want to use Jen, too.
00:52
Um,
00:53
the only provides her with this is if you're gonna do pixie, you have to use jen one.
00:58
And also, if you're using a 32 bit operating system for whatever reason, you also have to use General one
01:04
Jen one is based on a bios on dhe id ea ea EA environment
01:11
for the way it transfers and connects with other virtualized Hard way
01:15
on Jen to use is you Effy, which we have discussed previously on uses scuzzy a CZ well as only supporting 64 bit operating systems. So it's just making sure you got the right one. Generally, you want to pick Gentoo unless there's a reason to use Generation one.
01:34
It does say underneath. Once a virtual machine has been created, you cannot change its generation.
01:40
This is not totally true.
01:42
You can go from a Gen one to a Gentoo, but it is a very complex and very flaky script that you run in power shell
01:51
that will make the change for you. It's designed by Microsoft, but they don't fully support the script.
01:57
So if it goes wrong, don't expect that you can phone them up and say, Why is your script not working? They won't fully support it,
02:05
so I would take this at
02:07
at its face value
02:08
until you feel comfortable with power shell and understanding script,
02:13
at which point you could look to maybe upgrade from a genuine to a Gentoo if that's something you need, But hopefully you won't need to.
02:23
Yeah, I know, Eric Kind. I've got it to work. I think I've used it twice, but I had to heavily modify the script to get it to work. It's No,
02:30
it's not the easiest to do s Oh, yeah, it can be a bit tricky, certainly.
02:37
Okay, so next section is the memory. So here you would assign the amount you're gonna give. So let's give on machine to Gig of Ram to start up with
02:46
on. We're gonna use dynamic memory, which we've discussed earlier on in this training course.
02:51
Um,
02:52
when you do
02:53
choose how much memory to give a machine, make sure you consider what the machine is going to do, what virtual machines gonna do. And also, very importantly, what operating system you're going to put on that virtual machine.
03:06
If you're running a limits environment, chances are you probably don't need very much. Lennox is notoriously very resource light.
03:13
If you're running Windows Server, you don't want to leave it. A big one gig is the default on the star of memory.
03:19
If you don't need to use dynamic memory.
03:22
Let's say you've got a massive over allocation of RAM. It's better not to. You'll just get better performance out of your virtual machines.
03:30
But generally you can leave dynamic memory on. It just means that they might take a second or two to spool up if they need a lot more memory very quickly. The hyper visor needs to assign that round and then take it back afterwards as well.
03:45
So we're gonna go ahead,
03:46
configure the networking. So this is where we would choose
03:50
one of our virtual networks that we've designed previously. So we have designed network already Default switch comes as the fault in Windows 10 built in on. That's an external switch. We're not gonna use that one. We actually use the internal network.
04:04
Um, so that's the one that we built, and we just want to use that one. So we're gonna choose it, click next,
04:11
and then we're on to the actual hard disk itself. So here we're going to choose a name. You can name it something different if you want. Generally, it's gonna take the name of the machine that you've chosen and choose a V H D X which is dynamically expanding
04:26
it will. This is kind of what Microsoft want to push you down, Which is why they say, Here's a V H D X, which is the latest jen of the virtual hard disk on its dynamically expanding because we don't want to take up by default. As you can see on the screen, 127 gigs off space effectively.
04:45
So they're just gonna go right? We're gonna say 127 gigs by default. But we're gonna make it dynamically expanding. I think stark file for it is about 64 kilobytes. So it's
04:56
tiny, tiny, tiny file on that expands as it needs the space, and you can end actually reclaim unused space. After you can compact it back there.
05:05
You can if you do wish, change the location of it as well. Along with size, it deals with a maximum of 64 terabytes when you're working with the HD exes. So if you want to go bigger than that might have an issue. Keep that in mind,
05:18
uh, but you can link multiple virtual hard disks to a machine.
05:24
Then you could also choose to use an existing virtual hard disk if you want to use it, or you could just say you know what, Okay. Do it later on. I'll attach it manually. And you could do that as well. We're gonna go ahead with the defaults and just carry on from there.
05:35
And then we choose to install an operating system so you can choose to install an operating system later.
05:42
It's still not writing system from a bootable image file
05:45
eso from here. Basically, what you're looking at is you can pick up a nice Oh, Or, uh, what's the other one?
05:54
Uh, wouldn't file
05:56
on, Basically go. I want to load that in. Or you can tell it to install an operating system from a network based installation server as well.
06:03
Um,
06:04
from here I'm just gonna click browse. I've already got a copy of the Windows 10. I think it's Enterprise, and I'm gonna tell it. That's what I want to use. You don't have to go. You can just click next.
06:15
Then it will summarize everything for you is gonna explain what what's going to be installed, how the hard disk is going to be set up. What network you're on. Everything about the machine.
06:25
And when you're done, click finish.
06:27
It literally takes seconds to design it. And then once you're finished, you've got this machine up here
06:32
You can see down at the bottom. It gives you a quick summary when it was created.
06:35
What configuration version it is That's just to do with the way that it sets itself up.
06:41
What generation? If you've got any notes on the machine, whether it's clustered or not, you can see the memory set up here on what is currently running when it does actually boot up. So if we're gonna boot up now, get it started.
06:51
Um,
06:54
so you can see that demand that comes in through here and then the network and you can see what network is actually connected to, including what connection you actually chosen for.
07:02
And here I was structure, you see a little kind of environment on it. So what we're gonna do is we're just gonna right click directly, can choose settings,
07:12
and then this is what we were discussing earlier. In terms of the kind of the settings for the machine, you can add more hardware while it's running, although certain types one you'd like For example, we can't have these grade out ones, but we can and more network adapters while it's running, Sometimes you will have to shut it down.
07:29
You can see here we've got a DVD drive installed with the operating system that we chose along with the network adapter and then the hard drive that we made, which is just sitting in a little file and is ready to be used.
07:39
Security. This is all great out as we discussed in the previous episode, security needs to be done when the machine is turned off. But this is where you would come to enable that if you do want to change anything there on more importantly, if you are going to run something that's not Windows, you need to come in and change the secure boot to something
07:56
other than Microsoft Windows, because otherwise it's gonna expect Windows and it won't boot.
08:01
Here you can see the memory settings, including our ability to change the dynamic graham if we wanted to diamond memory, including the memory buffer and the waiting of machines compared to each other.
08:11
Virtual process, sir. Generally, you don't need to touch the virtual process, sir, unless you're looking to give a certain percentage of bias to that virtual machine but the number of virtual processes,
08:24
unless you've got something that specifically needs to see a number of processes leaving one and the machine will just use it as a giant super a super process. Er, effectively
08:35
compatibility is only used if you're doing migrations
08:39
s. So that's not something we'd cover in the fundamentals. New moat. We've discussed this so it kind of lets you see all of it going on. Obviously, I've only got one. Newman. No, because I only have one server in my cluster.
08:50
My Scotty. Control of this allows me to add more hard drives, DVD drives or shared drives. I can mount them. I could make changes to my hard drive. I can inspect it and see what kind of information holds you could see. My hard drive is currently four megabytes in size,
09:03
and it allows me to if if I want to, I can add physical hard disks to the machines. I can link it to a physical hard disks.
09:11
No, Eric. Generally, there's no gains for multiple CPUs because because their virtual CP use
09:18
it doesn't matter how many virtual CP use you give the machine you're still working with your limited number of physical CP use. So
09:26
with the way hyper V works, when you have more
09:30
physical CP use, they conglomerate in tow one kind of super processor eso. Unless you have a machine that is specifically maybe it was converted from physical to virtual. Then you might say, OK, well, it had to physical CP use. I don't want to have to rebuild the entire hardware obstruction layer.
09:48
I'm just gonna make it look like it has to virtual processes so that
09:50
I don't need to mess around with it
09:52
effectively.
09:54
So that's where that would kind of kick in. You can see our DVD drivers well. Once it's done, you can then click here to remove it, and you don't need to reboot machine. It's kind of like just hot swapping out
10:05
network adapter underneath same principle before where we've discussed it.
10:09
The name, along with notes, sewed test moves. You can add what you like on here
10:15
Integration Service's thes air a bit more involved in the fundamentals would cover,
10:20
but yes, it allows you to create volume shadow copies. This is the default setting here, It allows you to synchronize on the network, Get a heartbeat from it. Guest service is means you can copy things too, from your desktop to the V M. When you connect to it,
10:37
checkpoints allow you to do kind of snapshots in time, which is again hopefully coming up on a Maur. A bigger package for this
10:46
smart paging we've discussed before s O. This is only really used when it's released. When you're restarting a virtual machine, no other real reason to use it.
10:54
Automatic start action. So what do you want the virtual machine to do when the physical computer starts up? You can just put it back to how it was when the service stop,
11:05
Um,
11:07
and then the automatic stop action as well. So what do you want to do when the physical computer shuts down?
11:13
Eso most things by default will have it so that it saves the current state of the VM before shutting down the machine. But you can also tell it to shut down the guest operating system or just turn the virtual machine off if you want. Well,
11:26
so there's the options there on If you just double click on the machine
11:30
that will open up, and it will actually connect directly to the machines. You can see here. This is failed because we haven't kicked it in. Now, up here on the top here, you've got some different options. The green items. This is to stop it or turn it off. Sorry.
11:43
Um, this is to shut down the machine.
11:46
This one is to save the current state of the machine, pause it or reset. So I'm gonna reset. Just like pressing the reset button on a physical machine.
11:54
It's gonna ask me, I'm gonna say, Please don't ask me again. I just want you to reset when I click this button
12:00
and then it will reset and it'll start to load that I so that we've asked for
12:03
hopefully,
12:05
maybe
12:07
possibly
12:09
when it comes up, it will say that press any key to start loading the DVD or whatever it might be, at which point you would do it as if you're sat in front of a physical machine. And then that would start to load the operating system effectively. Eso was interested. Come up here. Is it still running?
12:26
It is.
12:28
I think it's doing something that's got CPU usage of 12%.
12:33
Let me have a look. I'm gonna turn it off. Yes, please turn it off
12:37
and I'm gonna power it back up
12:41
So he goes, See? You can tell it's life. There we go. Now we're talking. So then you press a button and you just off like you would if you were installing a normal machine.
12:48
It works in the window. There you go. There's are set up.
12:52
So that's pretty much it Eddie said. Does it support FC or F C R E? So you look at five a Channel five channel everything that it does. Theo. The show. You actually in the background. So there is
13:05
that virtual sand manager, which is a little more than we would go through in a fundamentals course, because you would need to learn about the different fibre channel settings and creating worldwide names and getting the connection and finding the targets and all those like good stuff.
13:24
But yes, it does support five channel. Absolutely. So it can do virtual fibre Channel sands.
13:30
But that's hopefully something for another. Another episode or another, Siri's. Maybe.
13:35
Certainly, if we go further into things, but yeah, that's pretty much it, guys. So unless you guys have any other questions,
13:43
we are done for today. I can't believe it. We're actually covered really a lot, but
13:50
yeah. I'm so glad to have you guys along. I hope you've enjoyed it. I haven't bought socks off you too much.
13:56
I I am. Well, over time, I'm just looking now about five minutes over my usual time. Not even with questions. Us, But I guess we've asked questions along the way as well.
14:05
Um,
14:07
but yeah, Guys, you have all been amazing. Thank you so much. But you're very, very welcome on Dhe. You know, I'm there is one more next week, guys, where we're just gonna cover off a little bit more about the infrastructure and give you a bit more detail to work with,
14:22
and I'm gonna put a little treat on the end of that. So if any of you guys, if you guys have been following me throughout this,
14:28
um, I am also an average PC gamer.
14:33
Uh, so
14:35
I'm I'm I'm not sure how I feel about this, but I've bean. I had my arm twisted. I'm gonna put
14:41
I'm a destiny to gamer. So if any of you play destiny to next week, I'm gonna be giving out my battle in that time
14:46
so that you guys can contact me. I'll also give out my Lichten information. I'm very happy to answer any questions from anyone, but I'm gonna give out at the end of the course because just want to make sure that everything is covered in the next section. Yes, Daniel, next session is next week.
15:01
Um so but yet I will I will be carrying on from there as well.
15:07
But once a week on dhe, hopefully we can take it from there. But thank you all so much. Guys. I hope you've enjoyed yourselves. And I will see you next time.
15:18
Thank you very much.

Up Next

Hyper-V

Hyper-V Fundamentals introduce the student to Microsoft Hyper-V in both server and client environments.

Instructed By

Instructor Profile Image
Christian D'Amico
Instructor