Just like in a type-2 hypervisor you can configure the hardware that each VM needs. Recall, we covered this during Module 3. The process is very similar by going to the 'Settings' for each VM.
Also, do not forget about hardware compatibility!
Think of shares as providing a VM with a priority if a resource is in contention. This is automatically controlled by the hypervisor and has three values: high, normal and low. These are also in a 4:2:1 ratio (high:normal:low). All VMs are configured with normal shares by default. By doing this we make sure that all VMs are treated equally, unless human intervention takes place.
We have two VMs that are configured below:
VM_1: 1 vCPU and 4 GB of RAM
VM_2: 2 vCPU and 4 GB of RAM
VM_2 has a 2:1 CPU shares compared to VM_1. This is due to each vCPU being assigned 1,000 CPU shares by default. As VM_2 has two CPUs it has 2,000 CPU shares. Basically, because VM_2 has more CPUs it has more shares by default. If there is competition for the CPU VM_2 would receive twice the CPU time then VM_1 would. Though, if VM_1 is more important we could manually configure the CPUs shares for VM_1. This can be done when we go to the VM Settings and expand the CPU information.
You will also notice that we can configure Memory shares too! Memory shares work the same way as CPU Shares.
In this demo I show how to configure and update the hardware of a VM , upgrade the VMs compabiltiy and show how to change shares in vSphere.