Using MergeTo api to merge mediums in a parent child hierarchy(or snapshots)

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
chirantar
Posts: 1
Joined: 8. Jan 2019, 14:04

Using MergeTo api to merge mediums in a parent child hierarchy(or snapshots)

Post by chirantar »

VboxSvc is crashing while using mergeTo API on Vbox version 5.1.24

My media registry entry is :

Code: Select all

<MediaRegistry>
      <HardDisk uuid="{a9d1a5d3-cd0c-4169-9284-69b19f57b517}" location="Disk.vdi" format="VDI" type="Normal">
            <HardDisk uuid="{3545766c-1635-4f75-87b8-cba104336b5d}" location="Disk_1.vdi" format="vdi">
              <HardDisk uuid="{a0f50563-79ef-4294-aeef-7eaa567f9f01}" location="Disk_2.vdi" format="vdi">
                <HardDisk uuid="{6f6ceb50-17ff-415d-b0cf-c71838cba9cb}" location="Disk_3.vdi" format="vdi">
                  <HardDisk uuid="{12f52897-dda2-4baa-8ff0-35dd0ea4cc28}" location="Disk_4.vdi" format="vdi">
                    <HardDisk uuid="{5543c879-35c8-4758-a12c-291b81ebfefd}" location="Disk_5.vdi" format="vdi">
                      <HardDisk uuid="{e069a8e2-87db-49d3-9c50-81fdc7811e8e}" location="Disk_6.vdi" format="vdi">
                        <HardDisk uuid="{ea057958-1f21-453b-9b0a-cc21dc22ef4e}" location="Disk_7.vdi" format="vdi">
                          <HardDisk uuid="{38fd79f5-b197-4c58-ac18-60ce42903eb4}" location="Disk_8.vdi" format="vdi">
                            <HardDisk uuid="{02755ac6-9de8-4491-a453-723823aafed2}" location="Disk_9.vdi" format="vdi">
                              <HardDisk uuid="{b39b05b7-e638-45ec-8e87-b4b9921ed214}" location="Disk_10.vdi" format="vdi"/>
                            </HardDisk>
                          </HardDisk>
                        </HardDisk>
                      </HardDisk>
                    </HardDisk>
                  </HardDisk>
                </HardDisk>
              </HardDisk>
            </HardDisk>
        </HardDisk>
    </MediaRegistry>
My task is to merge all disk into one and then use that disk.

The disk attached to the VM is "Disk_10.vdi". And before merging, I am making sure that all conditions required to use mergTo API are met. My targetMedium is Disk.vdi and sourceMedium is Disk_10.vdi.
Last edited by chirantar on 8. Jan 2019, 19:31, edited 3 times in total.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Using MergeTo api to merge mediums in a parent child hierarchy(or snapshots)

Post by socratis »

chirantar wrote:I am making sure that all conditions required to use mergTo API are met
How do we know, you didn't tell us. Please read the following: API Discussion Forum - Posting Guidelines
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply