you're watching VM one of these fear lesson to virtual machines.
By the end of this video, you'll learn what virtual machine is and how it gets access to resource is in order to run.
Before we talk about virtual machines, let's quickly review what the high advisor is.
The hyper visor is an operating system like any other operating system,
in the sense that it is installed on a bare metal server. And just like any other operating system, it's monopolizes the hardware.
But unlike any other operating system, it hosts other operating systems,
and then it tricks them into believing they are running directly on the hardware.
It's a cunning trickster.
The hyper visors ultimate drop they stand to share. The physical resource is among the virtual machines.
Now the virtual machine ISS. Like any regular machine, it's made often operating system and one or more applications. But it is unlike any other regular machine in the sense that it is a guest off. Another operating system,
which is the hyper visor
virtual machine, has no monopoly over the hardware. In fact, it shares the underlying hardware with other visual machines.
So the PM's Traube well,
it's to eat up Resource is served by its host
virtual machine needs. CPU memory storage and networking, among other resource is for its normal operation. But where does it get those? Resource is from
well from the host, of course.
But being a guest off another operating system, a virtual machine is oblivious to the amount of resources available in the physicals ever. So whatever the hyper visor presents to the V M, the VM believes it's all varies.
The V M always gets These resource is through the heart of Russia We call these virtual resource is as opposed to physical resources,
and here's where it gets interesting. The hyper visor itself will install vendor specific drivers in order to tap into the real hardware. The physical hardware,
if then presents generic drivers to the guest operating system in order for the VM to use the virtual hardware.
This makes the VM completely decoupled from the physical hardware underneath, and this will prove extremely useful for portability.
Now the hyper visor also provides additional virtual hardware to the PM's, including a CD or DVD drive, a USB controller, a scuzzy or satar disk controller, a keyboard, a mouse et cetera.
Now, except for the CPU, the rest off a virtual machines hardware is actually emulated.
What you see in the list above our emulation sze, created by the hyper visor.
But remember, when it comes to the CPU off any virtual machine that is no emulation taking place,
the PM's are being scheduled to run on the physical CPU.
Let's not delve into complicated technicalities, but this was important. To point out, let's now see an example of how the heart provides the shares. Resource is among the EMS.
Here's our physical server configuration. It's made up of two quad core CPI use, 32 gigabytes of memory, one terabyte of storage space and one network interface card. These resources are monopolized by the hyper visor.
Now let's say we have three virtual machines. VM one gets to virtual CB. Use four gigs of RAM, 200 kicks off this and one virtual nick VM two gets one virtual CPU. Two gigs of RAM, 60 forgets of disk and one V. Nick Vien three
gets eight. Virgil CB used six kicks off Ram,
500 kicks of disk and to Phoenix. Let's talk about CPU for a moment
in fact, when it comes to CPU allegation, one virtual CPU equals one logical CPU. Now, what's a logical CBU? Well, most CP use can leverage something called hyper threading, which is the ability to execute two routines or threats simultaneously.
So a single physical CPU core with hyper threading enabled appears as too logical. C p usedto an operating system.
So our eight cores, with two threats, each become 16 Logical Seabees.
let me ask you a question.
What's the maximum number of easy P use Any visual gene can get?
it's the total number off logical CP use in the server.
You can't exceed that.
But there is also a hard limit specified by the vendor, which, in the case of E. M. Where is 128
now, let's go back to our diagram. Given that we have 16 logical CB use, each virtual machine can be configured with up to,
well, 16 virtual see piers.
Now, let me ask you another question.
What's the maximum amount of memory for Vian?
Well, it's the total amount of physical memory
minus the overhead memory used by the hyper visor.
Naturally, the hyper visor needs memory to operate itself.
In fact, we'll also have to sub strapped the memory overhead used by the hyper visor to run all the V ins.
But let's ignore that for now
again. There is also a hard limit for memory, which is in the case off camera six terabytes Peruvian
Back to our diagram. If we suppose the hyper visor overhand is two gigs and the total memory off the server is 32 games, then we're left with 30 gigs of RAM,
so every virtual machine can be configured with upto 30 kicks off ram. As long as you do not configure any reservations,
we'll talk about reservations in another module.
The total amount of allocation off memory across all three v EMS is 30 plus 30 plus 30 which adds up to 90 gigabytes of RAM.
This is greater than the total memory in the server.
How is that possible?
Well, we call this memory over commitment,
and we'll talk about this in the resource management lesson.
The same thing goes for storage. If the hyper visor overhead is six gigs,
we're left with 994 gigs off space,
which is the amount we can configure for each of the sweet virtual machines, but again, without any reservations.
And if we do configure this on all V EMS, we will end up with a storage over commitment, because this some off allegations is greater than what to the server can supply in terms of storage space. Finally, regarding the maximum number of Phoenix pervy, um, the answer is going to be different.
A virtual machine is not limited by the number off physical next on the server,
because the hyper visor can emulate network interface cards and then present them into the V EMS.
So regardless of the number of physical necks, the maximum V necks you can configure on of'em in the case off the M, where is 10?
Let's have a final look at our diagram.
These are the configuration maximums pervy um, in our case,
one important thing to remember.
Do not play around with resource allocation because you could easily end up in an overcommitted environment that is very complicated to troubleshoot, especially when you have plenty of Ian's running. Always stick with whatever your application vendor recommends.
Well, this wraps up our introduction to virtual machines here are important takeaways.
Virtual Machine is a guest machine that crumbs on top of the hyper visor. It consumes virtual resources that are nothing more than a portion of the physical resources. Virtual machine is also extremely easy to migrate and move around because it is hardware independent.
Thanks to the generic drivers provided by the hyper visor,
the hyper visor is what hosts the PM's
and its main job is to share. The physical resource is among the virtual machines.
Thanks for watching, and I'll see you in the next lesson.