Question: how do vms share resources?
Answer: In virtualization, physical resources are shared among virtual machines. ... 
On the same physical host, different virtual machines can run different operation systems. ... 
When multiple virtual machines run on the same host, each virtual machine is allocated a portion of its physical resources.