Uncategorized

0

Orchestrator@VMworld 2011

The content catalog for this year’s VMworld event in Las Vegas is online:
https://vmworld2011.wingateweb.com/scheduler/public.jsp

A quick search for the most important keyword brought up three sessions about vCO:

 

I will share one session with Subramanya Kumar about Integration with Orchestrator on the Technology Exchange Track. Subramanya will talk about a quite cool and very useful tool for vCO Plugin Developer.

There are also 23 Hands-on-Labs (very valuable at the past events!), hopefully some of them will include Orchestrator as well.

See you in Vegas! 😎 😎 😀

0

Upcoming Books about vCO (and more)

VMware is going to publish a book about Day-to-Day administration with the Orchestrator. Author is Cody Bunch, who also has some great information and tutorials on his hompage, e.g. this one: http://professionalvmware.com/2011/05/spring-cleaning-orphaned-vm-files-with-vco/

For updates (and other planned books from very promising Authors), see the announcement below and watch http://www.vmware.com/go/vmwarepress

The official press announcement about VMware Press:
VMware Press is the official publisher of VMware books and training materials that provide guidance for the critical topics facing today’s technology professionals and students. With books, certification and study guides, video training, and learning tools produced by world-class architects and IT experts, VMware Press helps IT professionals master a diverse range of topics on virtualization and cloud computing, and is the official source of reference materials for completing the VMware Certified Professional (VCP) Examination.

Automating Day-to-Day Administration of VMware vSphere 5.x Automating Day-to-Day Administration of VMware vSphere 5.x
by Cody Bunch • Technology Hands-On • Fall 2011

This hands-on technical guide to automating vSphere with Orchestrator teaches administrators how to save time and resources by automating their virtual infrastructure. Automation expert Cody Bunch teaches valuable practices and tool use through a combination of real world automation examples and case studies.

Storage Design and Implementation in VMware vSphere 5.x Storage Design and Implementation in VMware vSphere 5.x
by Mostafa Khalil • Technology Deep Dive • Fall 2011

In this technology deep dive book, expert architect Mostafa Khalil teaches everything an administrator or architect needs to know about design, management and storage maintenance in the vSphere 5.0 virtual environment, including detailed procedures and guidelines, architectural design elements, best practices, common configuration details, and more.

Administering VMWare SRM 5.x Administering VMware SRM 5.x
by Mike Laverick • Technology Hands-On • Fall 2011

In this practical and technical guide to installing and configuring VMware’s Site Recovery Manager 5.0, expert Mike Laverick takes readers through set-ups for multiple vendors, disaster recovery, common pitfalls and errors, while along the way explaining why things happen, and how to fix them.

( I felt free to change the list of planned books to the proper order 😀 )

0

VMworld 2011 – Help to reveal VMware’s best kept secret !

VMworld 2011 Session voting is open!
And yes, there are some Orchestrator related sessions in the race…
So rise your thumbs to hear something about vCO:

http://www.vmworld.com/cfp.jspa

0

Customize a Virtual Machine

For John’s question in the VMware Communities about customizing a VM here:
http://communities.vmware.com/thread/311899
I took the challenge and created a small example how to customize a Virtual Machine using the CustomizeVM_Task().

The network settings, licensing, domain stuff and so on should come from a sysprep.inf text file.

Creating the proper CustomizationSpecification is really a hard job, especially since a couple of settings are mandatory even if the used information is already given via the SysprepText.

I got help using the API Reference, and the UML charts in Steve Jin’s indispensable book (http://www.amazon.com/VMware-VI-vSphere-SDK-Infrastructure/dp/0137153635 , I cannot mention it often enough… and no, that’s not an affiliate-link…yet… 😀 ), page 242.

When testing it, I got a lot of not helpful errors like “Cannot complete customization”. If you increase the loglevel in vCenter, in the vCenter logs there are a bit more information. Just don’t forget to reset it afterwards to avoid “logflooding”.

At the end I ended up with this code:


var sysprepMime = sysprepFile.getContentAsMimeAttachment();
 var sysprepText = sysprepMime.content
 System.debug("sysprep: " + sysprepText);

//create the custSpec objects
 var custSpec = new VcCustomizationSpec();
 System.debug("custSpec: " + custSpec);
 var myVcCustomizationSysprepText = new VcCustomizationSysprepText() ;
 System.debug("myVcCustomizationSysprepText: " + myVcCustomizationSysprepText);
 myVcCustomizationSysprepText.value = sysprepText //from Resource element above
 custSpec.identity = myVcCustomizationSysprepText;
 System.debug("custSpec.identity: " + custSpec.identity);

//fill the mandatory GlobalIPSettings
 var myVcCustomizationGlobalIPSettings = new VcCustomizationGlobalIPSettings() ;
 custSpec.globalIPSettings = myVcCustomizationGlobalIPSettings;
 System.debug("custSpec.globalIPSettings: " + custSpec.globalIPSettings);

//fill in the NIC-settings-map for one nic with unknownIPGenerator (IP-spec is in sysprep-text):
 var mappingMap = new Array();
 var myVcCustomizationAdapterMapping = new VcCustomizationAdapterMapping() ;
 var myVcCustomizationIPSettings = new VcCustomizationIPSettings() ;
 var myIpGenerator;
 //myIpGenerator = new VcCustomizationUnknownIpGenerator() ;
 //myIpGenerator = new VcCustomizationFixedIp();
 //myIpGenerator.ipAddress = "1.2.3.4";
 myIpGenerator = new VcCustomizationDhcpIpGenerator() ;

myVcCustomizationIPSettings.ip = myIpGenerator;
 myVcCustomizationAdapterMapping.adapter = myVcCustomizationIPSettings;
 System.debug("myVcCustomizationIPSettings.ip:" + myVcCustomizationIPSettings.ip);
 System.debug("myVcCustomizationAdapterMapping.adapter: " + myVcCustomizationAdapterMapping.adapter);
 mappingMap.push(myVcCustomizationAdapterMapping);
 System.debug("mappingMap: " + mappingMap);

//adding map to custSpec
 custSpec.nicSettingMap = mappingMap;

vmToCustomize.customizeVM_Task(custSpec);

Download the full workflow example here: http://www.vcoportal.de/download/workflow/customizeVM.workflow

Customize VM Workflow
Customize VM Workflow
customizeVM.workflow
2.1 KiB
Details...