Posts tagged ‘VMware’

How to create an NSX CLI user, API user & set up NSX Plugin for vROps

Written June 23rd, 2016 by
Categories: NSX
No Comments »

TL-DR: See below for details on these commands

Create a local user in the NSX Manager’s CLI, then use the API to grant CLI privileges to that user.

Here’s how using a linux machine:
ssh admin@[nsxmanagerIP]
user vrops-readonly password plaintext notrealpassword
user vrops-readonly privilege web-interface

Log out of the NSX Manager (type exit) and stay logged into the linux machine.
Create cli-auditor.xml that contains this (replace brackets with greater/less than):
[?xml version="1.0" encoding="ISO-8859-1" ?]

Add the user as an auditor in the NSX Manager as a CLI user:
curl -i -k -u 'admin:password' -H "Content-Type: application/xml" -X POST --data "@cli-auditor.xml" https://nsxmanagerip/api/2.0/services/usermgmt/role/vrops-readonly?isCli=true
Add your domain/vCenter user as an auditor in the NSX Manager (NOT as a CLI user):
curl -i -k -u 'admin:password' -H "Content-Type: application/xml" -X POST --data "@cli-auditor.xml" https://nsxmanagerip/api/2.0/services/usermgmt/role/ReadOnly@THEPHUCK.COM?isCli=false

Details for creating the NSX CLI user for vROps

Read the rest of this entry »

VMware Virtual SAN Health failed Cluster health test

Written December 2nd, 2015 by
Categories: Virtualization, VSAN
No Comments »

Here’s the error

While building a new environment for my lab, I ran across an interesting thing yesterday.

I looked at my cluster’s VSAN health and saw this error:

It’s complaining that my hosts don’t have matching Virtual SAN advanced configuration items.

If you click on that error, you’ll see at the bottom where it shows comparisons of hosts and the advanced configurations:

It shows VSAN.DomMaxLeafAssocsPerHost and VSAN.DomOwnerInflightOps as being different between a few of my hosts. Looking at the image above, you’ll see node 09 has values of 36000 and 1024, respectively, while the other nodes 10-12 show 12000 and 0.

I immediately went to the host configuration advanced settings in the web client, searched VSAN and don’t see either of those. I even checked through PowerCLI and can’t see those: Read the rest of this entry »

VMware Site Recovery Manager 5.1 Connection & Session Limits – Updated

SRM Connection or Session Limit Reached
***Scroll down for the Update***

Have you ran into one of these errors before:

     [exec] AxisFault
     [exec]  faultCode: ServerFaultCode
     [exec]  faultSubcode: 
     [exec]  faultString: fault.drextapi.fault.ConnectionLimitReached.summary
     [exec]  faultActor: 
     [exec]  faultNode: 
     [exec]  faultDetail: 
     [exec]     {urn:srm0}SrmFaultConnectionLimitReachedFault:<connectionlimit>10</connectionlimit>
     [exec] fault.drextapi.fault.ConnectionLimitReached.summary


     [exec] AxisFault
     [exec]  faultCode: ServerFaultCode
     [exec]  faultSubcode: 
     [exec]  faultString: dr.fault.SessionLimitExceeded
     [exec]  faultActor: 
     [exec]  faultNode: 
     [exec]  faultDetail: 
     [exec] 	{urn:srm0}MethodFaultFault:<vim25:reason>Invalid fault</vim25:reason>
     [exec] dr.fault.SessionLimitExceeded
     [exec] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     [exec] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
     [exec] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(

Or in the GUI:Lost connection to remote SRM server. Unable to login. The maximum number of SRM users has been reached.RJ, from, & I had been plagued by these messages for weeks, maybe even months. Well, we finally got it all figured out!

Keep reading for the fix!

Read the rest of this entry »

VMware Site Recovery Manager & Active Directory – Part 2 – Domain Controllers in test environment

On May 25th, I published this post covering some scenarios on how to use Site Recovery Manager & Active Directory.  Michael White from VMware responded with some good info.  He had an awesome suggestion of using a script to cold clone a DC daily to use for testing.

Let’s take a look at some ways we can get this done:
Read the rest of this entry »

VMware Site Recovery Manager & Active Directory – Part 1 – Testing Recovery Plans with Active Directory

To include Active Directory or not to include Active Directory, that is the question.

I’ve been reading a lot around VMware’s Site Recovery Manager and considerations surrounding Active Directory. Most of what you will read says ‘NEVER’ protect AD with SRM, only use native AD replication, especially since SRM & vCenter at your Recovery Site require AD to be running anyway.

But what if you have multiple domains for different uses? This is where the lines become blurred. Think about this for a second:

  • One AD environment (single forest/domain, no trusts) where vCenter & SRM live, call it infrastructure AD
  • A second AD environment (also single forest/domain, no trusts) for your application servers, call it application AD
  • You have infrastructure AD at both sites, SRM & vCenter authenticate accordingly
  • Protected site has application AD
  • Recovery site has nothing

Now here is where I say ‘why wouldn’t you protect AD with SRM?’  In a true disaster, the protected site is gone, no AD exists anywhere, so using SRM to bring them up on the recovery site makes sense. Is my logic flawed?

However, if I had my application AD living at both sites, using native replication, I agree 100% in not including your Domain Controllers in your SRM Recovery Plan. This leads to my concern…

Testing vs Planned vs Unplanned

This post will cover testing only. I’ll write a follow-up covering planned & unplanned failovers later.

To me, the only way to really test your DR plan (in this instance, your SRM Recovery Plan) is to not have anything different between them.
Read the rest of this entry »

Site Recovery Manager 5.1 installation fails connecting to database – dbmanager could not initialize vdb connection

Written March 29th, 2013 by
Categories: Virtualization

I recently ran into an issue when installing SRM and thought I’d share. I didn’t get a screenshot, but the error was something like this:

Failed to Initialize – dbmanager could not initialize vdb connection – odbc error

If you click skip from there, it’ll fail to create the tables, and eventually get to the point where you’ll have to roll back.

As it turns out, it was due to a c0mp73x”P@s$w0rd! that caused the problem. I’m not sure what characters killed it, but going to a less complex pAs5w0rd worked fine. ODBC worked fine, user & permissions were set up properly, it just came down to SRM not being able to handle the special characters. What’s strange is a similarly complex password works for vCenter.

Hope this helps, have fun out there!

vMotion fails at 10% with error 0xbad010d on VMware ESXi

Written February 14th, 2013 by
Categories: Virtualization
No Comments »

I recently had this problem, but forgot to take a screenshot for the blog, sorry guys.

I was patching an HA/DRS cluster using VUM and none of the VMs would migrate off one specific host. The error it gave was “A general system error occured: Failed to start migration pre-copy Error 0xbad010d. The Esx host failed connect over the VMotion network”.

Read the rest of this entry »

Scripting it old school! Bash shell script to apply ESX 3.5 Update 5a

Written December 14th, 2012 by
Categories: Scripts, Virtualization
No Comments »

So you’re still using ESX 3.5 and need to patch it manually? Bummer, I know, I’m in that boat right now, or was.  I ran “esxupdate -a query” to find out the latest patch and saw, “ESX Server 3.5.0 Update 4”.  Then went to VMware’s downloads site to download Update 5a, and when it prompted me to download all dependencies, I did.

What did that give me? Nineteen (19) bundles/depots/zip files, one of which was ‘’ Read the rest of this entry »

Script I needed to get info for multiple VMs = Get-VMInfo.ps1

Written May 5th, 2011 by
Categories: Scripts, Virtualization

I’ve recently had a ton of requests for information about specific VMs. They want to know how many disks they have, CPU count, how much RAM, and which environment the VM resides in.

Instead of constantly searching vCenter, I wrote this quickly during the meeting to query multiple servers.
Read the rest of this entry »

Script to pull host UUID for VMware PowerCLI

Written February 2nd, 2011 by
Categories: Scripts

A reader on a previous post asked about pulling host UUIDs, so I wipped together this script.

Usage is like this:
Get-VMHostUUID.ps1 -vmhosts ("host1","host2","host3")or
Get-VMHostUUID.ps1 -vc vcenterserver -container cluster1/folder/dc/etc
Read the rest of this entry »

Designed by ThepHuck
Wordpress Themes
Scroll to Top