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
-
You probably woke up today just thinking about just another regular Friday, right? During my matinal e-mail check, I was surpris...
-
Finally, VMware Pivotal Container Service command line options series got to its end. Featuring today PKS command line tool, allowin...
-
Continuing my series of command lines options for managing VMware Pivotal Container Service (PKS), today I present you the User Account...
-
vRealize Automation 7.1 brings several new features and functionalities, while the community is covering the fanciest...
-
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...
-
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 the launch of VMware Pivotal Container Service (PKS), I was very anxious to start creating and managing production...
-
Once again I was working on a vSphere Site Recovery Manager project using vSphere Replication as a replication technology and had to exp...
-
There's a new interface in town for vRealize Orchestrator which allows you to better configure plugins and cluster’s configuration,...
-
Recently I’ve been working on a fresh new vSphere 6 environment and we wanted to test a new functionality, vMotion of clustered guest VM...

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