Category: vSphere

Home / Category: vSphere

Hi everyone,

This post will be about a nice trick I learned to get the maximum out of your VMware Homelab.

TPS, or Transparent Page Sharing, is a function where, in short, multiple identical virtual memory pages are pointing to the same page within the memory of the host. Here is a whitepaper that goes more in-depth.

It used to be on by default, but I believe that it was turned off due to security concerns (KB). However, it’s still easy to turn on.

I won’t go into full detail, for more information check out the above mentioned links, along with these two posts about TPS.

For my homelab, the security does not need to be that strict that I can’t have shared memory, and the performance decrease is acceptable as well (due to higher memory access times.)

To enable TPS, go into the advanced settings of your ESXi host, and set:
Mem.AllocGuestLargePage to 0 and set Mem.ShareForceSalting to 0 as well.

It may take a few hours before your memory usage decreases, but for the best performance I would recommend restarting all virtual machines. This, for me, decreased the memory usage on my server from 109GB to 89GB.

Have fun with your lab and I hope that this was useful to you!

See you next time, have a nice day.

Hi readers,

This short post will be about how I had to set-up a static route on ESXi to my VPN subnet.

My setup is as follows: I have an ESXi server in DC1, and a ESXi server at home. The Home ESXi server has vCenter and vRealize Operations Manager on it. My goal was to have vRealize Operations Manager give rightsize advise on VMs on both my home server and the server in DC1. For this to work, I need to add my DC1 server to my vCenter server. I created a datacenter for it in vCenter, and I created a vmkernel adapter on the LAN network of the DC1 server. There is an IPSec VPN that links the remote network and my local network.

vCenter could talk to the ESXi server, but the ESXi server did not know how to talk back. The solution was to create a static route. I simply ran this command on the DC1 server (I enabled SSH and use that to execute the command):

esxcfg-route -a

And that was it! It started to work. In a future series, I will be explaining how to setup vRealize Operations Manager.

For now though, I’m still playing around with it.

Thank you for reading this post.