Troubleshooting
How vCenter handles custom Sysprep.inf files
Sep 25th
I ran into an issue the other day as I was trying to deploy a VM from from a template using the vCenter Customization Specification Manager. I was trying to use a custom Sysprep.inf file that would automatically have the newly created VM join my AD domain and placed in a specific OU.
Now, when I Sysprep’d the VM normally with my custom .inf file, everything worked fine. But importing that exact .inf file into vCenter and deploying the VM from a template, the Sysprep failed. So I had some digging to do, and here’s what I found out.
First, vCenter doesn’t actually store Sysprep.inf files. Rather, vCenter stores the configuration parameters in XML and then generates the Sysprep.inf file on the fly during the deployment process. (This part I actually already knew, the next part I didn’t).
Second, and most importantly, when importing a customized Sysprep.inf file, vCenter does not store each parameter as a separate XML element. So for example, given the following custom text …
[Identification]
JoinDomain=mydomain.comDomainAdmin=administrator
DomainPassword=1234
MachineObjectOU="OU = MyOU,DC = mydomain,DC = com"
I thought this would be stored in the normal, expected format, like this …
<JoinDomain>mydomain.com</JoinDomain>
<DomainAdmin>administrator</DomainAdmin>
<DomainPassword>1234</DomainPassword>
<MachineObjectOU>"OU = MyOU,DC = mydomain,DC = com" </MachineObejctOU>
But it turns out, when importing sysprep.inf files, vCenter stores the parameters as a single XML element with a modified <_type> element like this …
<_type>vim.vm.customization.SysprepText</_type>
<value> [Identification] JoinDomain=mydomain.com DomainAdmin=administrator DomainAdminPassword=1234 MachineObjectOU="OU = MyOU,DC = mydomain,DC = com"</value>
There’s a couple important points to note here:
- vCenter only stores the XML this way when importing a sysprep.inf file. When using the customization wizard, vCenter generates XML which is formatted the normal way.
- The first element, <_type>, contains the value vim.vm.customization.SysprepText. When using the wizard, the value for this element is vim.vm.customization.Sysprep (without the trailing “Text”).
- When the XML is stored this way, whitespace matters! Notice how whitespace is the delimiter in the <value> element? And notice the spaces in the MachineObjectOU parameter? Removing the spaces did the trick.
UPDATE: Connections and Ports in ESX and ESXi
Sep 22nd
Mr. Dudley Smith has updated his PDF diagram with some minor corrections and additions. Get the latest, most up-to-date version here (click the graphic) …
He also updated “the brain” which can be found at it’s new home http://webbrain.com/brainpage/brain/89EFA582-2C35-F6A2-9ED1-7AD4810266C2/. Make sure you update your bookmark accordingly.
Connections and Ports in ESX & ESXi
Aug 25th
I got an email from Dudley Smith (a VMware TAM and the author of Troubleshooting ESX and Connections & Ports in VI3.5) informing me that he had recently updated one of his documents. Wow, he sure did. Check this puppy out (click the graphic to download) …
Pretty slick, eh? Well it gets even better. He also created a version using The Brain in HTML … http://www.virtualinsanity.com/esx-connections-and-ports/. Nice! This is definitely a bookmark I’ll be keeping handy and I’d recommend you do the same.
Good work Dudley! Thanks for making it available for everyone. If you agree, be sure to leave a “Thank You” comment for Dudley Smith.
Troubleshooting ESX
Apr 21st
I was at the Louisville VMUG on Friday talking about Troubleshooting ESX. In my preparation for the event, I was looking for a good PowerPoint presentation I could reuse and I stumbled across a sweet little gem of a document. Dudley Smith, a VMware Technical Account Manager (TAM) out of Virginia, created a cool one page Mind Map for Troubleshooting ESX. Does it address every potential issue you’ll come across? No, of course not. But it’s a heck of a good place to start. One look at his Mind Map and I thought to myself, “that would be a great thing to have printed out and hanging over every VMware admin’s desk.”
Well, long story short, I snagged it and threw it up on the big screen behind me as I was presenting. During the presentation (and many times since the presentation) I had many requests to post the PDF for download.
But since I couldn’t just start passing out someone else’s work as my own, I sent Dudley a quick email asking for permission to distribute. He responded by saying, “Sure, publish away! You might enjoy this too… ” Attached was another one page document that visually shows the TCP/UDP ports leveraged in VI3.5. Nice! Again, another great document to have printed out and hanging over your desk, IMHO.
So, courtesy of the author, Dudley Smith, here are two documents that I would recommend you add to your tool belt. (click the images to download the PDFs)
If you like them, leave a comment for Dudley.



