Hi,
I am encountering an issue running vmclone2 script with windows machines.
I am running the exact same script on linux machine with no issue.
Running the following:
./vmclone2.pl --username yyyy --password xxxxx --url https://vconsoleta02/sdk/webService --vmhost "esx55" --vmname test --vmname_destination wintest --filename /root/guestinfo3win.xml --customize_vm yes --customize_guest yes --schema /root/guestinfo3win.xsd
Disk size is - 90000
Cloning virtual machine test...
SoapFault
SOAP Fault:
-----------
Fault string: A specified parameter was not correct.
spec.identity
Fault detail: InvalidArgument
Any one encounterd a similiar issue ?
My xml file is:
<?xml version="1.0"?>
<Specification>
<Customization-Spec>
<Auto-Logon>1</Auto-Logon>
<Virtual-Machine-Name>wintest</Virtual-Machine-Name>
<Timezone>033</Timezone>
<Domain>zzz</Domain>
<Domain-User-Name>Username</Domain-User-Name>
<Domain-User-Password>password</Domain-User-Password>
<Full-Name>admin</Full-Name>
<Organization-Name>xxx</Organization-Name>
<ipAddress>192.192.192.192</ipAddress>
<gateway>192.192.192.1</gateway>
<subnetMask>255.255.255.0</subnetMask>
<dnsServerList>192.192.192.100</dnsServerList>
</Customization-Spec>
<Virtual-Machine-Spec>
<Guest-Id>Windows</Guest-Id>
<Memory>4096</Memory>
<Disksize>90000</Disksize>
<Number-of-CPUS>2</Number-of-CPUS>
</Virtual-Machine-Spec>
</Specification>
My xsd file is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- definition of simple elements -->
<xs:element name="Auto-Logon">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Virtual-Machine-Name" type="xs:string"/>
<xs:element name="Timezone" type="xs:integer"/>
<xs:element name="Domain" type="xs:string"/>
<xs:element name="Domain-User-Name" type="xs:string"/>
<xs:element name="Domain-User-Password" type="xs:string"/>
<xs:element name="Full-Name" type="xs:string"/>
<xs:element name="Organization-Name" type="xs:string"/>
<xs:element name="Guest-Id" type="xs:string"/>
<xs:element name="Disksize" type="xs:integer"/>
<xs:element name="Memory" type="xs:integer"/>
<xs:element name="Number-of-CPUS" type="xs:integer"/>
<xs:element name="ipAddress" type="xs:string"/>
<xs:element name="gateway" type="xs:string"/>
<xs:element name="subnetMask" type="xs:string"/>
<xs:element name="dnsServerList" type="xs:string"/>
<!-- definition of complex elements -->
<xs:element name="Customization-Spec">
<xs:complexType>
<xs:sequence>
<xs:element ref="Auto-Logon"/>
<xs:element ref="Virtual-Machine-Name"/>
<xs:element ref="Timezone"/>
<xs:element ref="Domain"/>
<xs:element ref="Domain-User-Name"/>
<xs:element ref="Domain-User-Password"/>
<xs:element ref="Full-Name"/>
<xs:element ref="Organization-Name"/>
<xs:element name="ipAddress"/>
<xs:element name="gateway"/>
<xs:element name="subnetMask"/>
<xs:element name="dnsServerList"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Virtual-Machine-Spec">
<xs:complexType>
<xs:sequence>
<xs:element ref="Guest-Id"/>
<xs:element ref="Memory"/>
<xs:element ref="Disksize"/>
<xs:element ref="Number-of-CPUS"/>
</xs:sequence>
</xs:complexType>
</xs:element>
Regards,
Eyal