This message is in MIME format. Since your mail reader does not
understand
this format, some or all of this message may not be legible.
--B_3598954007_92574425
Content-type: text/plain;
charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
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=3D"33b533f8-13b1-4cc1-8091-31b07913b32a">
<snapshot id=3D"34709147-4b0c-4684-b3d9-f4892873f36f=B2/>
</disk>
<bootable>false</bootable>
<interface>virtio</interface>
</disk_attachment>
Posted to :=20
https://-myFQDN-/ovirt-engine/api/vms/-UUID-OF-VM-RunningTheBackupScript/di=
s
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
--B_3598954007_92574425
Content-type: text/html;
charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
<html><head></head><body style=3D"word-wrap: break-word;
-webkit-nbsp-mode: s=
pace; -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 th=
e docs that I could
find. </div><div><br></div><div>I have the script
w=
orking all the way up until the VM-ToBeBackedUp-Disk is attached to the VM-R=
unningTheBackupScript with the mention of the
Snapshot.</div><div><br></div>=
<div>Example:</div><div><br></div><div><div><disk_attachment></div><di=
v> <disk
id=3D"33b533f8-13b1-4cc1-8091-31b07913b32a"></div>=
<div> <snapshot
id=3D"34709147-4b0c-4684-b3d9-f48=
92873f36f”/></div><div>
</disk></div><div> =
<bootable>false</bootable></div><div>
<i=
nterface>virtio</interface></div><div></disk_attachment></div=
</div><div><br></div><div>Posted to
: <a href=3D"https://-myFQDN-/ovirt-=
engine/api/vms/-UUID-OF-VM-RunningTheBackupScript/diskattachments">https://-=
myFQDN-/ovirt-engine/api/vms/-UUID-OF-VM-RunningTheBackupScript/diskattachme=
nts</a>/</div><div><br></div><div>The above results in
an attached disk to m=
y 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 cann=
ot 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 e=
verything I have tried has no joy
;/</div><div><br></div><div>If anyone on t=
he list knows of the required magic, please advise
;)</div><div><br></div><d=
iv>* 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=3D"htt=
ps://www.ovirt.org/develop/api/design/backup-api">https://www.ovi...
lop/api/design/backup-api</a>/</div><div><a
href=3D"http://200.1.19.60/ovirt-e=
ngine/docs/manual/en-US/html/Administration_Guide/sect-Backing_Up_and_Restor=
ing_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></di=
v><div><a
href=3D"https://markmc.fedorapeople.org/rhevm-api/en-US/html-single/=
index.html">https://markmc.fedorapeople.org/rhevm-api/en-US/html-...
x.html</a></div><div><a
href=3D"https://github.com/voidloop/ovirt-bash-backup/=
blob/master/backupvm.sh">https://github.com/voidloop/ovirt-bash-b...
master/backupvm.sh</a></div><div><a
href=3D"https://github.com/laravot/backupr=
estoreapi/blob/master/example.py">https://github.com/laravot/back...
i/blob/master/example.py</a></div><div><br></div><div><br></div><div>Thanks<=
/div><div><br></div><div>Zip</div></body></html>
--B_3598954007_92574425--