Hi,
fairly new to using the perl sdk... I am trying to deply from a template using vmclone.pl. It works fine when I don't customize the vm or guest, but when I do I get the following failure when running in verbose mode:
as I want to be able to create and customise a datacenter with 9 VMs in it for demonstrations, I am hoping to script the all of this as I will do it quite frequently, but i am currently stuck. The verbose log seems to be saying something about encoding or something up with the schema... but it doesn;t mean much to me, has anyone else any expereince?
thanks
Bill
I have - have always had - the same problem with customizing the guest. You need to look in the vpxd-#.log file on your vCenter server to get the actual error. The SOAP fault is useless on its own.
In my case, the error was this:
My source VM (and yours?) is Server 2008 R2. Searching pointed me here:
In short, the local Administrator PW is blank in the customization spec. How do you set that in your XML file? Well, that's a good question. By default you can't, because:
To get around this, I patched the guestinfo.xsd and VMUtil.pm (see attachments). That's enough to get the clone to work, and once you power on the resulting VM the customization will start. It still fails though, because the same VMUtil library is hardcoding a product key of "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX," which causes sysprep to fail. There is no schema element definition for the product key either. These and any other missing/wrong values will have to be added to the xsd and VMUtil.pm for guest customization to really work.
huh, thanks for that, much appreciated! I'm not actually using this stuff in anger yet, mostly just lab stunts, but I am studying for my VCAP DCA and trying to get a feel for scripting, command line and also will be working in an OnDemand SaaS datacentre enviro so and thought this would be useful... Thanks again.