Changes between Version 1 and Version 2 of Ticket #10689, comment 4
- Timestamp:
- Jun 14, 2013 6:11:56 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10689, comment 4
v1 v2 1 t emporary, try the next workaround for OVA package.1 the problem is in traversal sequence in VB. 2 2 3 1 STEP. 4 open OVF file, find the section <DiskSection>. 5 for example, we have 3 Try this: 4 Rearrange image files in the archive in accordance with their traversal sequence in the VB. Disks attached to IDE come at first, disks attached to SATA come afterwards. 6 5 7 <DiskSection> 8 <Disk ovf:diskId="iso1" ovf:fileRef="file1"/> 9 <Disk ovf:diskId="vmdisk2" ovf:fileRef="file2"/> 10 <Disk ovf:diskId="vmdisk3" ovf:fileRef="file3"/> 11 <DiskSection> 6 for example: 12 7 13 2 STEP. 14 find out and remember attaching position for these disks. 15 for example - vmdisk2 is attached to IDE0, iso1 is attached to SATA0, vmdisk3 is attached to SATA1. 8 in the archive, files go, 9 1. iso1 10 2. vmdisk2 11 3. vmdisk3 16 12 17 3 STEP. 18 remember traversal sequence - at first, IDE, second - SATA. 13 in the VM, files are attached 14 1. IDE0 - vmdisk2 15 2. SATA0 - iso1 16 3. SATA1 - vmdisk3. 19 17 20 4 STEP. 21 rename vmdisk2, iso1, vmdisk3 disks in alphabetical order in accordance with their appearance in traversal sequence. In our example, it means 18 you need to rearrange files in the archive like, 19 1. vmdisk2 20 2. iso1 21 3. vmdisk3. 22 22 23 vmdisk2 - a_vmdisk2, iso1 - b_iso1, vmdisk3 - c_vmdisk3 24 25 <DiskSection> 26 <Disk ovf:diskId="b_iso1" ovf:fileRef="file1"/> 27 <Disk ovf:diskId="a_vmdisk2" ovf:fileRef="file2"/> 28 <Disk ovf:diskId="c_vmdisk3" ovf:fileRef="file3"/> 29 <DiskSection> 30 31 32 5 STEP. 33 don't forget to rename the same file names in the section <VirtualHardwareSection>. 34 35 <Item> 36 <rasd:AddressOnParent>0</sasd:AddressOnParent> 37 <rasd:Caption>disk1</rasd:Caption> 38 <rasd:Description>Disk Image</rasd:Description> 39 <rasd:HostResource>/disk/a_vmdisk2</rasd:HostResource> 40 <rasd:InstanceID>8</rasd:InstanceID> 41 <rasd:Parent>3</rasd:Parent> 42 <rasd:ResourceType>17</rasd:ResourceType> 43 </Item> 44 45 6 STEP. 46 re-create SHA digest for the changed OVF file. 47 for example "openssl dgst -sha1 vm.ovf" 48 49 7 STEP. 50 put all files from the appliance back to the TAR archive and change the extension to ".ova". 23 And don't forget to correct the OVF file afterwards.