Answers inline: - Hi Guys, I am very new user of VMware Converter 3.0.1, I am in process of learning how to use the command p2vtool. Got few questions, it would be great if some...
See more...
Answers inline: - Hi Guys, I am very new user of VMware Converter 3.0.1, I am in process of learning how to use the command p2vtool. Got few questions, it would be great if someone answers them: First of all I would like to confess that I am not able to make sense out of the file P2VInput.xsd and the sample xml files located in the directory C:\Program Files\VMware\VMware Converter\samples Try opening the XSD in Visual Studio or some other XML viewer. Q1. I could query local machine and remote machine using following code: . . . xsi:schemaLocation="http://www.vmware.com/v2/sysimage/p2v p2v.xsd"> <source> <liveSpec> <creds host="xyz" username="Admin" password="******" /> </liveSpec> </source> </p2v> Is it possible to query .sv2i, .vmc, .vmx or .spf file? If yes, how should I do that? Yes you can do that. Replace the liveSpec element with the hostedSpec element. Q2. With GUI Converter I can opt to Ignore page file and hibernation file but how to specify this in the .xml input file? You can specify this in the imporParams tag. There is an attribute clonePagefile which can be set to true/false . Q3. I could find out a way to resize a disk and specify newSize in the .xml input file. Using GUI there are options to select min size and maintain size which I don't know how to specify in the .xml input file. There is no minSize option, you will need to look at the ouptut of the query and decide what you want to resize the volumes to. Q4. With GUI Converter I can select from different "Disk Space Allocation" or Split into 2GB files, how to specify in the .xml input file? There is a diskType attribute to the importParams. It can have the following options: - <xs:simpleType name="DiskCreateType"> <xs:restriction base="xs:string"> <xs:enumeration value="MONOLITHIC_SPARSE" /> <xs:enumeration value="MONOLITHIC_FLAT" /> <xs:enumeration value="TWO_GB_SPARSE" /> <xs:enumeration value="TWO_GB_FLAT" /> <xs:enumeration value="VMFS" /> <xs:enumeration value="LINKED" /> </xs:restriction> </xs:simpleType> Q5. How should I specify no. of NICs, its type bridged/Host-only/NAT and connect at power on in the .xml input file? Add a nicMappings child tag to importParams,under this you can have multiple 'nicMapping' tags each with an attribute called network. Each nicMapping element corresponds to one NIC. For WS destinations set its value to be host-only, bridged, NAT and for ESX set it to be the network name. Q6. How should I specify to install VMware Tools in the .xml input file? The postProcessingParams element has a installTools attrib that can be set to true/false Q7. How should I Customize the identity of the virtual machine and specify the Location of sysprep files in the .xml input file? Location of the sysprep files is specified by the deployCabContent attribute under postProcessingParams->customization->identity->sysPrepText. I can't go through all the sysprep options here since they are too many. Its not that I simply dropped into this forum to get my answers quickly, I did go through the file P2VInput.xsd but could not understand much coz its a list of codes with no proper explanation on how to use a particular tag e.g. I don't know what the following means: Like I said before get a good XML viewer, reading the schema as a text file will drive you crazy. Let me know if you need more help. Gautam \- <xs:complexType name="LoginCredentials"> I could refer complexType as a tag - correct me if I am wrong. \- <xs:annotation> - don't know what's this. <xs:documentation>These login credentials are passed around by the VMImporter class and by VMCreator. They log into VC or into Hostd on an ESX box.</xs:documentation> I assume text within </xs:documentation> are comments. </xs:annotation> \- <xs:attribute name="host" type="xs:string" use="required"> Now, I can understand "host is an attribute of string type and is required but the question is how should I put it in the .xml input file? \- <xs:sequence> - now whats this sequence? <xs:element name="creds" type="LoginCredentials" /> - element name?? </xs:choice> ?? and there are many like this. This post may look kiddish to many people. Yes, I am a kid who is trying to understand this wonderful VMware product. Thanks a TON for all those who read this post. Thanks a BILLION for your replies. Yours, VMware Fan (KMK)