Quantcast
Channel: VMware Communities : Popular Discussions - vSphere Management Assistant (vMA)
Viewing all articles
Browse latest Browse all 25377

vmclone.pl customization error

$
0
0

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:

 

 

Fault
SOAP Fault:
-----------
Fault string: Cannot complete customization.
Fault detail: CustomizationFault
REQUEST: $VAR1 = '<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
<Logout xmlns="urn:vim25"><_this type="SessionManager">SessionManager</_this>
</Logout></soapenv:Body></soapenv:Envelope>
';
RESPONSE: $VAR1 = '<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
<soapenv:Body>
<LogoutResponse xmlns="urn:vim25"></LogoutResponse>
</soapenv:Body>
</soapenv:Envelope>';
I am using the schema supplied with the sdk.  I have modified vmclone.xml file that was supplied and put in the domain that I want it to join and the user name and password...  my customize .xml is as follows..
<Specification>
   <Customization-Spec>
          <Auto-Logon>1</Auto-Logon>
          <Virtual-Machine-Name>2LBNNode1</Virtual-Machine-Name>
      <Timezone>140</Timezone>
          <Domain>billd.local</Domain>
          <Domain-User-Name>administrator</Domain-User-Name>
          <Domain-User-Password>secret</Domain-User-Password>
          <Full-Name>administrator</Full-Name>
          <Organization-Name>billd</Organization-Name>
   </Customization-Spec>
<Virtual-Machine-Spec>
      <Guest-Id>windows7server64guest</Guest-Id>
      <Memory>1024</Memory>
      <Disksize>10194304</Disksize>
      <Number-of-CPUS>1</Number-of-CPUS>
  </Virtual-Machine-Spec>
</Specification>

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


Viewing all articles
Browse latest Browse all 25377

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>