3.13 Virtual Machine, Network, Hard Disk Creation Part 13

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

Already have an account? Sign In »

5 hours 8 minutes
Video Transcription
So we're gonna go ahead and work on the virtual machine itself now.
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.
Demonstration one is the name of our machine.
If you don't take this box, it will take the default storage facility that you set on the hyper visa
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.
But if you do take your box, you can then change this and you can
move it to wherever you need to effectively, We're not gonna do that, Which gonna leave it where it is
never gonna choose the generation. So we've discussed generations before.
Generally, you want to use Jen, too.
the only provides her with this is if you're gonna do pixie, you have to use jen one.
And also, if you're using a 32 bit operating system for whatever reason, you also have to use General one
Jen one is based on a bios on dhe id ea ea EA environment
for the way it transfers and connects with other virtualized Hard way
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.
It does say underneath. Once a virtual machine has been created, you cannot change its generation.
This is not totally true.
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
that will make the change for you. It's designed by Microsoft, but they don't fully support the script.
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,
so I would take this at
at its face value
until you feel comfortable with power shell and understanding script,
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.
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,
it's not the easiest to do s Oh, yeah, it can be a bit tricky, certainly.
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
on. We're gonna use dynamic memory, which we've discussed earlier on in this training course.
when you do
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.
If you're running a limits environment, chances are you probably don't need very much. Lennox is notoriously very resource light.
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.
If you don't need to use dynamic memory.
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.
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.
So we're gonna go ahead,
configure the networking. So this is where we would choose
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.
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,
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
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.
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
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.
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,
uh, but you can link multiple virtual hard disks to a machine.
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.
And then we choose to install an operating system so you can choose to install an operating system later.
It's still not writing system from a bootable image file
eso from here. Basically, what you're looking at is you can pick up a nice Oh, Or, uh, what's the other one?
Uh, wouldn't file
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.
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.
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.
And when you're done, click finish.
It literally takes seconds to design it. And then once you're finished, you've got this machine up here
You can see down at the bottom. It gives you a quick summary when it was created.
What configuration version it is That's just to do with the way that it sets itself up.
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.
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.
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,
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.
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.
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
other than Microsoft Windows, because otherwise it's gonna expect Windows and it won't boot.
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.
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,
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
compatibility is only used if you're doing migrations
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.
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,
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.
No, Eric. Generally, there's no gains for multiple CPUs because because their virtual CP use
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
with the way hyper V works, when you have more
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.
I'm just gonna make it look like it has to virtual processes so that
I don't need to mess around with it
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
network adapter underneath same principle before where we've discussed it.
The name, along with notes, sewed test moves. You can add what you like on here
Integration Service's thes air a bit more involved in the fundamentals would cover,
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,
checkpoints allow you to do kind of snapshots in time, which is again hopefully coming up on a Maur. A bigger package for this
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.
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,
and then the automatic stop action as well. So what do you want to do when the physical computer shuts down?
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,
so there's the options there on If you just double click on the machine
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.
Um, this is to shut down the machine.
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.
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
and then it will reset and it'll start to load that I so that we've asked for
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?
It is.
I think it's doing something that's got CPU usage of 12%.
Let me have a look. I'm gonna turn it off. Yes, please turn it off
and I'm gonna power it back up
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.
It works in the window. There you go. There's are set up.
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
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.
But yes, it does support five channel. Absolutely. So it can do virtual fibre Channel sands.
But that's hopefully something for another. Another episode or another, Siri's. Maybe.
Certainly, if we go further into things, but yeah, that's pretty much it, guys. So unless you guys have any other questions,
we are done for today. I can't believe it. We're actually covered really a lot, but
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.
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.
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,
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,
um, I am also an average PC gamer.
Uh, so
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
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
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.
Um so but yet I will I will be carrying on from there as well.
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.
Thank you very much.
Up Next