<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div>Hi All,</div><div><br></div><div>I have created a bash script that uses curl and the REST API based on the docs that I could find.&nbsp;</div><div><br></div><div>I have the script working all the way up until the VM-ToBeBackedUp-Disk is attached to the VM-RunningTheBackupScript with the mention of the Snapshot.</div><div><br></div><div>Example:</div><div><br></div><div><div>&lt;disk_attachment&gt;</div><div>&nbsp; &nbsp; &lt;disk id="33b533f8-13b1-4cc1-8091-31b07913b32a"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&lt;snapshot id="34709147-4b0c-4684-b3d9-f4892873f36f&#8221;/&gt;</div><div>&nbsp; &nbsp; &lt;/disk&gt;</div><div>&nbsp; &nbsp; &lt;bootable&gt;false&lt;/bootable&gt;</div><div>&nbsp; &nbsp; &lt;interface&gt;virtio&lt;/interface&gt;</div><div>&lt;/disk_attachment&gt;</div></div><div><br></div><div>Posted to :&nbsp;<a href="https://-myFQDN-/ovirt-engine/api/vms/-UUID-OF-VM-RunningTheBackupScript/diskattachments">https://-myFQDN-/ovirt-engine/api/vms/-UUID-OF-VM-RunningTheBackupScript/diskattachments</a>/</div><div><br></div><div>The above results in an attached disk to my VM-RunningTheBackupScript.</div><div><br></div><div>The question I have is how to I image that disk from the VM-RunningTheBackupScript?</div><div><br></div><div>The VM-RunningTheBackupScript is running Debian8 and that VM cannot see the attached disk as it is Inactive.</div><div><br></div><div>I have reviewed many of the older scripts out there and it looks trivial, however everything I have tried has no joy ;/</div><div><br></div><div>If anyone on the list knows of the required magic, please advise ;)</div><div><br></div><div>* If I have to go to using python etc, I will, but trying to avoid it if possible. Either way, I need some examples of how to proceed.</div><div><br></div><div>Some links I have reviewed:</div><div><br></div><div><a href="https://www.ovirt.org/develop/api/design/backup-api">https://www.ovirt.org/develop/api/design/backup-api</a>/</div><div><a href="http://200.1.19.60/ovirt-engine/docs/manual/en-US/html/Administration_Guide/sect-Backing_Up_and_Restoring_Virtual_Machines_Using_the_Backup_and_Restore_API.html">http://200.1.19.60/ovirt-engine/docs/manual/en-US/html/Administration_Guide/sect-Backing_Up_and_Restoring_Virtual_Machines_Using_the_Backup_and_Restore_API.html</a></div><div><a href="https://markmc.fedorapeople.org/rhevm-api/en-US/html-single/index.html">https://markmc.fedorapeople.org/rhevm-api/en-US/html-single/index.html</a></div><div><a href="https://github.com/voidloop/ovirt-bash-backup/blob/master/backupvm.sh">https://github.com/voidloop/ovirt-bash-backup/blob/master/backupvm.sh</a></div><div><a href="https://github.com/laravot/backuprestoreapi/blob/master/example.py">https://github.com/laravot/backuprestoreapi/blob/master/example.py</a></div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div>Zip</div></body></html>