VMware Cloud Community
gavinmansell
Contributor
Contributor
Jump to solution

Masking physical resource on a VM

I am quite new to Vmware ESX 3 Virtual Infrastructure. I was wondering if it was at all possible to mask the physical resource a VM is allocated...

Could you allocate a VM 512MB of physical RAM but make this appear as 2GB within the OS when a user logs on to the VM?

http://www.cisco-kid.co.uk
0 Kudos
1 Solution

Accepted Solutions
AntonVZhbankov
Immortal
Immortal
Jump to solution

No. You can allocate 2GB for VM, and set memory limit to 512MB. VM will actually see 2GB, but it ESX reclaim 1.5GB via baloon driver.


---

VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda

View solution in original post

0 Kudos
4 Replies
avlieshout
VMware Employee
VMware Employee
Jump to solution

Just allocate 2GB to the vm.

When having multiple vms running the same OS you gain from TPS (Transparant Page Sharing). Where multiple vms that have the same memory blocks only use 1 physical memory block.

See this as a single instance storage. This makes it possible to overcommit memory on your vms where you in fact can give out more memory to your vms than you have physical available in your box.

-Arnim van Lieshout

-


Blogging: http://www.van-lieshout.com

Twitter:

If you find this information useful, please award points for "correct" or "helpful".

Arnim van Lieshout Blogging: http://www.van-lieshout.com Twitter: http://www.twitter.com/avlieshout If you find this information useful, please award points for "correct" or "helpful".
AntonVZhbankov
Immortal
Immortal
Jump to solution

No. You can allocate 2GB for VM, and set memory limit to 512MB. VM will actually see 2GB, but it ESX reclaim 1.5GB via baloon driver.


---

VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
0 Kudos
gavinmansell
Contributor
Contributor
Jump to solution

Thanks for the replies. So the 'Allocated resource' is what is displayed in the VM, but you can set limits way below this allocation?

http://www.cisco-kid.co.uk
0 Kudos
avlieshout
VMware Employee
VMware Employee
Jump to solution

Gavin,

that's correct.

But you should ask yourself if that is the way you wanna go?

Why give out 2GB and instantly limit the vm to only 512MB?

You could better grant 512MB to the vm with no limits. Whenever you run out of memory you can simply upscale the granted memory.

-Arnim van Lieshout

-


Blogging: http://www.van-lieshout.com

Twitter:

If you find this information useful, please award points for "correct" or "helpful".

Arnim van Lieshout Blogging: http://www.van-lieshout.com Twitter: http://www.twitter.com/avlieshout If you find this information useful, please award points for "correct" or "helpful".
0 Kudos