Tag: Automation
Migrating Roles & Privileges from an old vCenter to a new vCenter using PowerCLI
Ben Liebowitz
- 4
- 312
So we’re finally upgrading an old environment running vCenter 4.0 to a new vCenter running 5.5. Instead of attempting an upgrade, we’re building new. As it’s a new build, we had to find a way to migrate the roles & privileges to the new vCenter. I have done this in the past utilizing the “Cheap Disaster Recovery” scripts from Gabe’s…
Place a vSphere Host into Maintenance Mode via PowerCLI
Ben Liebowitz
- 0
- 854
So, we had two different vSphere hosts, in two different environments, have hardware faults this week. One had a bad memory module, and the other a bad FAN. As I launched the VI client for each environment and placed the problem host into maintenance mode, I started to think… “I bet I can automate this!” Depending on how complex your…
You should backup your VDS Configs with PowerCLI
Ben Liebowitz
- 1
- 166
So, another vExpert that I follow on twitter (@h0bbel) recently had an issue in his home lab where he cut power to his lab, and his vDS lost all the portgroup names. Seeing this post made me think, “I should probably backup MY vDS configs too, as my backups were pretty old! Here are some PowerCLI commands that I found…
PowerCLI Script to list VMs not specifically set to Thick Eager Zeroed
Ben Liebowitz
- 0
- 115
First, I’ll start with a little back story. We recently deployed an EMC XTremIO All-Flash storage appliance. The recommendation we got from EMC, for the best deduplication ratios, was to use the Thick-Eager Zeroed disk format. No matter how many times I tell my coworkers to make sure to use this format when deploying VMs to the xTremIO LUNs, once…
PowerCLI Script to change the DRS Slider
Ben Liebowitz
- 2
- 230
So, I have a cluster of hosts that makes up our QA Environment. As with most QA environments, it’s tight on resources and very over-subscribed. On a regular basis, I have to move our DRS Slider to be more aggressive, RUN DRS to refresh recommendations, and then move the slider back. This allows DRS to rebalance the cluster. Today, I…
PowerCLI Script to migrate VMs from one vCenter to another
Ben Liebowitz
- 23
- 287
Hey everyone, this is another guest post from Ben Liebowitz, Matt’s brother. Before I get into the script, I’ll give you some background… We are working on migrating VMs off of our vSphere 4.1 environment to our new vSphere 5.5 environment. The 4.1 environment is using the Nexus 1000v Virtual Switch while the 5.5 environment is using a vDS switch.…
Deploying a VM with PowerCLI in a Semi-Complex Environment
Ben Liebowitz
- 3
- 101
The following is a guest blog post by my brother Ben Liebowitz. I guess virtualization runs in the family! Follow him on Twitter at @ben_liebowitz. ———————————————————————— Last year, while working at a previous employer, I wanted to make it easier for less-experienced team members to deploy VMs, while making sure little to no mistakes are made. I decided to go…