T.G.I.F.
A few months ago I talked about memory limitation and the impacts it could make on your guest’s performance.
So, you may be wondering what guest’s have limitation.
With this cool PowerCLI script you can identify the limits on your guests very quickly.
Let’s see how it works:
- start PowerCLI
- run: get-vm | get-vmresourceconfiguration | select VM,MemLimitMB
Guest’s with MemLimitMB = -1 means unlimited
Obs: there are a lot of other settings on the vm resource configuration, if you run the command without the “select” section you will see all of them.
Now that you know what are the memory limits on you guests, it’s time to adjust it
Again another PowerCLI script can make it happens very fast, instead of going server by server through Virtual Center.
- start PowerCLI
- run: get-vm | get-vmresourceconfiguration | Set-VMResourceConfiguration -MemLimitMB "value or $null"
Obs1: $null means unlimited
Obs2: If you want to specify just a few VMs, you need to setup a variable a place it just after get-vm command, see the PowerCLI basics if you don’t know how.
Have a good weekend all
Friday, November 12, 2010
Who am I

- Eduardo Meirelles da Rocha
- I’m an IT specialist with over 15 years of experience, working from IT infrastructure to management products, troubleshooting and project management skills from medium to large environments. Nowadays I'm working for VMware as a Consulting Architect, helping customers to embrace the Cloud Era and make them successfully on their journey. Despite the fact I'm a VMware employee these postings reflect my own opinion and do not represents VMware's position, strategies or opinions. Reach me at @dumeirell

Most Viewed Posts
-
vRealize Automation 7.1 brings several new features and functionalities, while the community is covering the fanciest...
-
Have you tried to set up or change a root's password for an ESXi host and got the following error message: Weak...
-
If you just install VMware Converter and start running it with it’s default configuration, I’m sure you will be successfully. But, the...
-
I have to admit since I started playing with PowerCLI I’ve been enjoying it more and more. A few weeks ago I needed to delete 50 VMs from t...
-
During the past few weeks, my NSX partner in crime, the Sr. Consultant Anderson Duboc and I have been working on a NSX Reference Poster...
-
Do you know the LUNs on your environment might have different versions ? Yeah, that’s true!! To check tha LUN version, on the configuratio...
-
Once again I was working on a vSphere Site Recovery Manager project using vSphere Replication as a replication technology and had to exp...
-
Most of my time as a Consulting Architect at VMware Professional Services I spend with clients, helping them to create innovative solut...
-
Most of vCloud Director implementations I’ve worked on where multi-cells implementations behind a load balancer to distribute the load a...
-
VMware vSAN 6.2 Stretched Cluster & 2 Node Guide covers greatly all the network topologies supported and the configuration steps invo...

1 comment:
Thanks for this post. This was exactly what I was looking for. I had a rogue template that was misconfigured and now I'm able to locate all of those VMs affected and make the necessary config changes. I appreciate your effort on this post.
Post a Comment