VirtualBox

Changes between Version 1 and Version 2 of Ticket #10689, comment 4


Ignore:
Timestamp:
Jun 14, 2013 6:11:56 AM (11 years ago)
Author:
VVP

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10689, comment 4

    v1 v2  
    1 temporary, try the next workaround for OVA package.
     1the problem is in traversal sequence in VB.
    22
    3 1 STEP.
    4 open OVF file, find the section <DiskSection>.
    5 for example, we have
     3Try this:
     4Rearrange 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.
    65
    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>
     6for example:
    127
    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.
     8in the archive, files go,
     91. iso1
     102. vmdisk2
     113. vmdisk3
    1612
    17 3 STEP.
    18 remember traversal sequence - at first, IDE, second - SATA.
     13in the VM, files are attached
     141. IDE0 - vmdisk2
     152. SATA0 - iso1
     163. SATA1 - vmdisk3.
    1917
    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
     18you need to rearrange files in the archive like,
     191. vmdisk2
     202. iso1
     213. vmdisk3.
    2222
    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".
     23And don't forget to correct the OVF file afterwards.

© 2023 Oracle
ContactPrivacy policyTerms of Use