[ovirt-users] oVirt 4.x - RestAPI - Backup - How to Image Inactive Disk
Zip
plord at intricatenetworks.com
Tue Jan 16 19:26:44 UTC 2018
Hi All,
I have created a bash script that uses curl and the REST API based on the
docs that I could find.
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.
Example:
<disk_attachment>
<disk id="33b533f8-13b1-4cc1-8091-31b07913b32a">
<snapshot id="34709147-4b0c-4684-b3d9-f4892873f36f²/>
</disk>
<bootable>false</bootable>
<interface>virtio</interface>
</disk_attachment>
Posted to :
https://-myFQDN-/ovirt-engine/api/vms/-UUID-OF-VM-RunningTheBackupScript/dis
kattachments/
The above results in an attached disk to my VM-RunningTheBackupScript.
The question I have is how to I image that disk from the
VM-RunningTheBackupScript?
The VM-RunningTheBackupScript is running Debian8 and that VM cannot see the
attached disk as it is Inactive.
I have reviewed many of the older scripts out there and it looks trivial,
however everything I have tried has no joy ;/
If anyone on the list knows of the required magic, please advise ;)
* 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.
Some links I have reviewed:
https://www.ovirt.org/develop/api/design/backup-api/
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
https://markmc.fedorapeople.org/rhevm-api/en-US/html-single/index.html
https://github.com/voidloop/ovirt-bash-backup/blob/master/backupvm.sh
https://github.com/laravot/backuprestoreapi/blob/master/example.py
Thanks
Zip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180116/6f2fd43b/attachment.html>
More information about the Users
mailing list