
--_000_9BE6F493F83A594DA60C45E6A09DC5AC016D5B42AUSP01DAG0201co_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable My production deployment is approaching soon, so i am trying to get some fi= nal tasks and concepts completed before that day arrives. Lets say, that i= have a working domain, but that an impending disaster is about to destroy = the whole thing. How can i get the Vms out, and then how can i reverse thi= s and get them into a completely new and unrelated/unconnected ovirt domain= ? Any advice, or a doc or link would be much appreciated. Thanks, jonathan ________________________________ This is a PRIVATE message. If you are not the intended recipient, please de= lete without copying and kindly advise us by e-mail of the mistake in deliv= ery. NOTE: Regardless of content, this e-mail shall not operate to bind SKO= POS to any order or other contract unless pursuant to explicit written agre= ement or government initiative expressly permitting the use of e-mail for s= uch purpose. --_000_9BE6F493F83A594DA60C45E6A09DC5AC016D5B42AUSP01DAG0201co_ Content-Type: text/html; charset="us-ascii" Content-ID: <0AF4B2D24594B94C973C6872FC97F3F3@collaborationhost.net> Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
</head> <body style=3D"word-wrap:break-word; color:rgb(0,0,0); font-size:14px; font= -family:Calibri,sans-serif"> <div> <div> <div>My production deployment is approaching soon, so i am trying to get so= me final tasks and concepts completed before that day arrives. Lets s= ay, that i have a working domain, but that an impending disaster is about t= o destroy the whole thing. How can i get the Vms out, and then how can i reverse this and get them into a compl= etely new and unrelated/unconnected ovirt domain?</div> <div><br> </div> <div>Any advice, or a doc or link would be much appreciated.</div> <div><br> </div> <div>Thanks,</div> <div>jonathan</div> <div> <div></div> </div> </div> </div> <br> <hr> <font color=3D"Gray" face=3D"Arial" size=3D"1">This is a PRIVATE message. I= f you are not the intended recipient, please delete without copying and kin= dly advise us by e-mail of the mistake in delivery. NOTE: Regardless of con= tent, this e-mail shall not operate to bind SKOPOS to any order or other contract unless pursuant to explicit wri= tten agreement or government initiative expressly permitting the use of e-m= ail for such purpose.</font> </body> </html> --_000_9BE6F493F83A594DA60C45E6A09DC5AC016D5B42AUSP01DAG0201co_--

--_000_9BE6F493F83A594DA60C45E6A09DC5AC016D644CAUSP01DAG0201co_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable ok, so the process seems pretty obtuse, so let me run this by the list here= and maybe I'm just not doing it the best way. 1) i connected an export domain called EXPORTNFS. the nfs share is physica= lly on my management server (as is iso) 2) exported 1 VM. 3) on the mgmt server, i run "tar zxcf /root/test.tgz /opt/export/[UUID]/im= ages /opt/export/[UUID]/master" 4) for good measure, i use ovirt web gui to delete the exported VM from the= export 5) run the command 'engine-image-uploader =96u admin@internal upload test.t= gz =96v =96e EXPORTNFS 6) after a while, it completes and i see the VM back in the export storage = tab under VM Import. i didn't run the vm yet, but I'm assuming thats a successful export and imp= ort. so, it seems if i wanted to export each and every VM from one separate ovir= t to another, i would export each VM, tar-gzip it, clear it from the webgui= , and start the next one? IE.. i mean it looks like engine-image-uploader= would be pretty unhappy with finding more than one set of VM UUIDs inside? is this the way it should be done, or am i doing it the hard way? thanks! jonathan From: Jonathan Horne <jhorne@skopos.us<mailto:jhorne@skopos.us>> Date: Tuesday, December 11, 2012 8:02 AM To: "users@ovirt.org<mailto:users@ovirt.org>" <users@ovirt.org<mailto:users= @ovirt.org>> Subject: [Users] theoretical scenario My production deployment is approaching soon, so i am trying to get some fi= nal tasks and concepts completed before that day arrives. Lets say, that i= have a working domain, but that an impending disaster is about to destroy = the whole thing. How can i get the Vms out, and then how can i reverse thi= s and get them into a completely new and unrelated/unconnected ovirt domain= ? Any advice, or a doc or link would be much appreciated. Thanks, jonathan ________________________________ This is a PRIVATE message. If you are not the intended recipient, please de= lete without copying and kindly advise us by e-mail of the mistake in deliv= ery. NOTE: Regardless of content, this e-mail shall not operate to bind SKO= POS to any order or other contract unless pursuant to explicit written agre= ement or government initiative expressly permitting the use of e-mail for s= uch purpose. ________________________________ This is a PRIVATE message. If you are not the intended recipient, please de= lete without copying and kindly advise us by e-mail of the mistake in deliv= ery. NOTE: Regardless of content, this e-mail shall not operate to bind SKO= POS to any order or other contract unless pursuant to explicit written agre= ement or government initiative expressly permitting the use of e-mail for s= uch purpose. --_000_9BE6F493F83A594DA60C45E6A09DC5AC016D644CAUSP01DAG0201co_ Content-Type: text/html; charset="Windows-1252" Content-ID: <C417F988DB78F546BEE8D6FADF59D9BD@collaborationhost.net> Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1= 252"> </head> <body style=3D"word-wrap:break-word; color:rgb(0,0,0); font-size:14px; font= -family:Calibri,sans-serif"> <div> <div> <div>ok, so the process seems pretty obtuse, so let me run this by the list= here and maybe I'm just not doing it the best way. </div> <div><br> </div> <div>1) i connected an export domain called EXPORTNFS. the nfs share = is physically on my management server (as is iso)</div> <div>2) exported 1 VM.</div> <div>3) on the mgmt server, i run "tar zxcf /root/test.tgz /opt/export= /[UUID]/images /opt/export/[UUID]/master"</div> <div>4) for good measure, i use ovirt web gui to delete the exported VM fro= m the export</div> <div>5) run the command 'engine-image-uploader =96u admin@internal upload t= est.tgz =96v =96e EXPORTNFS</div> <div>6) after a while, it completes and i see the VM back in the export sto= rage tab under VM Import.</div> <div><br> </div> <div>i didn't run the vm yet, but I'm assuming thats a successful export an= d import.</div> <div><br> </div> <div>so, it seems if i wanted to export each and every VM from one separate= ovirt to another, i would export each VM, tar-gzip it, clear it from the w= ebgui, and start the next one? IE.. i mean it looks like engine-imag= e-uploader would be pretty unhappy with finding more than one set of VM UUIDs inside?</div> <div><br> </div> <div>is this the way it should be done, or am i doing it the hard way?</div=
<div><br> </div> <div>thanks!</div> <div>jonathan</div> <div><br> </div> <div><br> </div> <div> <div></div> </div> </div> </div> <div><br> </div> <span id=3D"OLK_SRC_BODY_SECTION"> <div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b= lack; border-bottom:medium none; border-left:medium none; padding-bottom:0i= n; padding-left:0in; padding-right:0in; border-top:#b5c4df 1pt solid; borde= r-right:medium none; padding-top:3pt"> <span style=3D"font-weight:bold">From: </span>Jonathan Horne <<a href=3D= "mailto:jhorne@skopos.us">jhorne@skopos.us</a>><br> <span style=3D"font-weight:bold">Date: </span>Tuesday, December 11, 2012 8:= 02 AM<br> <span style=3D"font-weight:bold">To: </span>"<a href=3D"mailto:users@o= virt.org">users@ovirt.org</a>" <<a href=3D"mailto:users@ovirt.org">= users@ovirt.org</a>><br> <span style=3D"font-weight:bold">Subject: </span>[Users] theoretical scenar= io<br> </div> <div><br> </div> <div> <div style=3D"word-wrap:break-word; color:rgb(0,0,0); font-size:14px; font-= family:Calibri,sans-serif"> <div> <div> <div>My production deployment is approaching soon, so i am trying to get so= me final tasks and concepts completed before that day arrives. Lets s= ay, that i have a working domain, but that an impending disaster is about t= o destroy the whole thing. How can i get the Vms out, and then how can i reverse this and get them into a compl= etely new and unrelated/unconnected ovirt domain?</div> <div><br> </div> <div>Any advice, or a doc or link would be much appreciated.</div> <div><br> </div> <div>Thanks,</div> <div>jonathan</div> <div> <div></div> </div> </div> </div> <br> <hr> <font color=3D"Gray" face=3D"Arial" size=3D"1">This is a PRIVATE message. I= f you are not the intended recipient, please delete without copying and kin= dly advise us by e-mail of the mistake in delivery. NOTE: Regardless of con= tent, this e-mail shall not operate to bind SKOPOS to any order or other contract unless pursuant to explicit wri= tten agreement or government initiative expressly permitting the use of e-m= ail for such purpose.</font></div> </div> </span><br> <hr> <font color=3D"Gray" face=3D"Arial" size=3D"1">This is a PRIVATE message. I= f you are not the intended recipient, please delete without copying and kin= dly advise us by e-mail of the mistake in delivery. NOTE: Regardless of con= tent, this e-mail shall not operate to bind SKOPOS to any order or other contract unless pursuant to explicit wri= tten agreement or government initiative expressly permitting the use of e-m= ail for such purpose.</font> </body> </html> --_000_9BE6F493F83A594DA60C45E6A09DC5AC016D644CAUSP01DAG0201co_--

First, your scenario is missing the actual import, you just have the data in the export domain, not the vms in the engine. Second - A slightly simpler way you were looking for: 1. Export multiple vms using either a short script via RESTAPI or webadmin (select multiple vms and export). 2. Detach the export domain. 3. Backup the export domain with all its data. 4. Re-attach export domain when ready to. 5. Import vms. Good luck, Vered ----- Original Message -----
From: "Jonathan Horne" <jhorne@skopos.us> To: "Jonathan Horne" <jhorne@skopos.us>, users@ovirt.org Sent: Tuesday, December 11, 2012 9:47:06 PM Subject: Re: [Users] theoretical scenario
ok, so the process seems pretty obtuse, so let me run this by the list here and maybe I'm just not doing it the best way.
1) i connected an export domain called EXPORTNFS. the nfs share is physically on my management server (as is iso) 2) exported 1 VM. 3) on the mgmt server, i run "tar zxcf /root/test.tgz /opt/export/[UUID]/images /opt/export/[UUID]/master" 4) for good measure, i use ovirt web gui to delete the exported VM from the export 5) run the command 'engine-image-uploader –u admin@internal upload test.tgz –v –e EXPORTNFS 6) after a while, it completes and i see the VM back in the export storage tab under VM Import.
i didn't run the vm yet, but I'm assuming thats a successful export and import.
so, it seems if i wanted to export each and every VM from one separate ovirt to another, i would export each VM, tar-gzip it, clear it from the webgui, and start the next one? IE.. i mean it looks like engine-image-uploader would be pretty unhappy with finding more than one set of VM UUIDs inside?
is this the way it should be done, or am i doing it the hard way?
thanks! jonathan
From: Jonathan Horne < jhorne@skopos.us > Date: Tuesday, December 11, 2012 8:02 AM To: " users@ovirt.org " < users@ovirt.org > Subject: [Users] theoretical scenario
My production deployment is approaching soon, so i am trying to get some final tasks and concepts completed before that day arrives. Lets say, that i have a working domain, but that an impending disaster is about to destroy the whole thing. How can i get the Vms out, and then how can i reverse this and get them into a completely new and unrelated/unconnected ovirt domain?
Any advice, or a doc or link would be much appreciated.
Thanks, jonathan
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind SKOPOS to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind SKOPOS to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 12/11/2012 09:47 PM, Jonathan Horne wrote:
ok, so the process seems pretty obtuse, so let me run this by the list here and maybe I'm just not doing it the best way.
1) i connected an export domain called EXPORTNFS. the nfs share is physically on my management server (as is iso) 2) exported 1 VM. 3) on the mgmt server, i run "tar zxcf /root/test.tgz /opt/export/[UUID]/images /opt/export/[UUID]/master" 4) for good measure, i use ovirt web gui to delete the exported VM from the export 5) run the command 'engine-image-uploader –u admin@internal upload test.tgz –v –e EXPORTNFS 6) after a while, it completes and i see the VM back in the export storage tab under VM Import.
i didn't run the vm yet, but I'm assuming thats a successful export and import.
so, it seems if i wanted to export each and every VM from one separate ovirt to another, i would export each VM, tar-gzip it, clear it from the webgui, and start the next one? IE.. i mean it looks like engine-image-uploader would be pretty unhappy with finding more than one set of VM UUIDs inside?
apart of Vered's simpler solution, a small note that: 1. engine-image-uploader can handle uploading the same image more than once and generating uuid's 2. however, i think this capability is deprecated, since engine has recently added support to import a VM which UUID is already imported, allowing to create a new VM from the imported one.

On 12/12/2012 06:47 PM, Itamar Heim wrote:
On 12/11/2012 09:47 PM, Jonathan Horne wrote:
ok, so the process seems pretty obtuse, so let me run this by the list here and maybe I'm just not doing it the best way.
1) i connected an export domain called EXPORTNFS. the nfs share is physically on my management server (as is iso) 2) exported 1 VM. 3) on the mgmt server, i run "tar zxcf /root/test.tgz /opt/export/[UUID]/images /opt/export/[UUID]/master" 4) for good measure, i use ovirt web gui to delete the exported VM from the export 5) run the command 'engine-image-uploader –u admin@internal upload test.tgz –v –e EXPORTNFS 6) after a while, it completes and i see the VM back in the export storage tab under VM Import.
i didn't run the vm yet, but I'm assuming thats a successful export and import.
so, it seems if i wanted to export each and every VM from one separate ovirt to another, i would export each VM, tar-gzip it, clear it from the webgui, and start the next one? IE.. i mean it looks like engine-image-uploader would be pretty unhappy with finding more than one set of VM UUIDs inside? Yes, it would. If you want to export all of your VMs all at once and have no plans to rename them or alter them whatsoever, why not just back up the entire export storage domain and attach to the new DC/Cluster?
WRT to 3. I agree that is a clunky process to create a portable VM. I would like to create a tool that allows you to pick a VM from available exported ones and subsequently wrap it up into a .tgz. Shouldn't be too hard.
apart of Vered's simpler solution, a small note that: 1. engine-image-uploader can handle uploading the same image more than once and generating uuid's
Correct.
2. however, i think this capability is deprecated, since engine has recently added support to import a VM which UUID is already imported, allowing to create a new VM from the imported one. Correct.
participants (4)
-
Itamar Heim
-
Jonathan Horne
-
Keith Robertson
-
Vered Volansky