FAILED! Using engine-image-uploader to Upload OVF to Export Domain

</o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">[root ~]# engine-image-uploader= --conf-file=3D/etc/ovirt-engine/imageuploader.conf -e export_debug upload = test1.ova <o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">ERROR: not a gzip file<o:p></o:=
</o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">[root ~]# engine-image-uploader= --conf-file=3D/etc/ovirt-engine/imageuploader.conf -e export_debug upload = test.ovf <o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">ERROR: not a gzip file<o:p></o:=
--_000_EE4D679B9474414187D2E27D8B6890F69570DDG08CNEXMBPEKD03g0_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGksIGFsbA0KICAgICAgICAgSSBleHBvcnQgYSBPVkYvT1ZBIHZtIGZpbGUgZnJvbSBWaXJ0dWFs Qm94IChNYW5hZ2UgLS0gPiBFeHBvcnQgYSB2bS4gV2hlbiBJIGNob29zZSChsG92ZqGxLCBJIGdv dCB0d28gZmlsZXM6IHRlc3Qub3ZmIGFuZCB0ZXN0LnZtZGspIGFuZCB3YW50IHRvIHVzZSBlbmdp bmUtaW1hZ2UtdXBsb2FkIHRvIHVwbG9hZCBpbnRvIG9WaXJ0IEV4cG9ydCBEb21haW4uDQpCdXQg SSBnZXQgRXJyb3IgYXMgYmVsb3c6DQoNCjEuIHVzaW5nIE9WQQ0KPT09PT09PT09DQpbcm9vdCB+ XSMgZW5naW5lLWltYWdlLXVwbG9hZGVyIC0tY29uZi1maWxlPS9ldGMvb3ZpcnQtZW5naW5lL2lt YWdldXBsb2FkZXIuY29uZiAtZSBleHBvcnRfZGVidWcgdXBsb2FkIHRlc3QxLm92YQ0KRVJST1I6 IG5vdCBhIGd6aXAgZmlsZQ0KDQoyLiB1c2luZyBPVkYNCj09PT09PT09PQ0KW3Jvb3Qgfl0jIGVu Z2luZS1pbWFnZS11cGxvYWRlciAtLWNvbmYtZmlsZT0vZXRjL292aXJ0LWVuZ2luZS9pbWFnZXVw bG9hZGVyLmNvbmYgLWUgZXhwb3J0X2RlYnVnIHVwbG9hZCB0ZXN0Lm92Zg0KRVJST1I6IG5vdCBh IGd6aXAgZmlsZQ0KDQojIyMgc28gSSB0YXIgdGhlIHRlc3Qub3ZmIGFuZCB0ZXN0LnZtZGsgYXMg Z3ppcCBmaWxlICMjIw0KDQpbcm9vdEByaGV2LXBjLWhvc3QyIH5dIyB0YXIgLXpjdmYgZ2d0ZXN0 Lm92ZiAuL3Rlc3Qub3ZmIC4vdGVzdC1kaXNrMS52bWRrDQouL3Rlc3Qub3ZmDQouL3Rlc3QtZGlz azEudm1kaw0KW3Jvb3RAIH5dIyBlbmdpbmUtaW1hZ2UtdXBsb2FkZXIgLS1jb25mLWZpbGU9L2V0 Yy9vdmlydC1lbmdpbmUvaW1hZ2V1cGxvYWRlci5jb25mIC1lIGV4cG9ydF9kZWJ1ZyB1cGxvYWQg Z2d0ZXN0Lm92ZiBFUlJPUjogVW5hYmxlIHRvIHVwZGF0ZSB0aGUgZGlzayBJRCBpbiB0aGUgT1ZG IFhNTC4gTWVzc2FnZTogZ2xvYmFsIG5hbWUgJ25faWRfZCcgaXMgbm90IGRlZmluZWQNCg== --_000_EE4D679B9474414187D2E27D8B6890F69570DDG08CNEXMBPEKD03g0_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dgb2312"> <meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:=CB=CE=CC=E5; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"\@=CB=CE=CC=E5"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; font-size:10.5pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif";} /* Page Definitions */ @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"ZH-CN" link=3D"blue" vlink=3D"purple" style=3D"text-justify-t= rim:punctuation"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span lang=3D"EN-US">Hi, all<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; I export a OVF/OVA vm file from VirtualBox (Manage -- >= ; Export a vm. When I choose =A1=B0ovf=A1=B1, I got two files: test.ovf and= test.vmdk) and want to use engine-image-upload to upload into oVirt Export= Domain.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">But I get Error as below:<o:p><= /o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">1. using OVA<o:p></o:p></span><= /p> <p class=3D"MsoNormal"><span lang=3D"EN-US">=3D=3D=3D=3D=3D=3D=3D=3D=3D<o:p= p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">2. using OVF<o:p></o:p></span><= /p> <p class=3D"MsoNormal"><span lang=3D"EN-US">=3D=3D=3D=3D=3D=3D=3D=3D=3D<o:p= p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">### so I tar the test.ovf and t= est.vmdk as gzip file ###<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">[root@rhev-pc-host2 ~]# tar -zc= vf ggtest.ovf ./test.ovf ./test-disk1.vmdk <o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">./test.ovf<o:p></o:p></span></p=
<p class=3D"MsoNormal"><span lang=3D"EN-US">./test-disk1.vmdk<o:p></o:p></s= pan></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">[root@ ~]# engine-image-uploade= r --conf-file=3D/etc/ovirt-engine/imageuploader.conf -e export_debug upload= ggtest.ovf ERROR: Unable to update the disk ID in the OVF XML. Message: gl= obal name 'n_id_d' is not defined<o:p></o:p></span></p> </div> </body> </html> --_000_EE4D679B9474414187D2E27D8B6890F69570DDG08CNEXMBPEKD03g0_--

Il 16/03/2015 07:33, Xie, Chao ha scritto:
Hi, all
I export a OVF/OVA vm file from VirtualBox (Manage -- > Export a vm. When I choose “ovf”, I got two files: test.ovf and test.vmdk) and want to use engine-image-upload to upload into oVirt Export Domain.
But I get Error as below:
1. using OVA
=========
[root ~]# engine-image-uploader --conf-file=/etc/ovirt-engine/imageuploader.conf -e export_debug upload test1.ova
ERROR: not a gzip file
2. using OVF
=========
[root ~]# engine-image-uploader --conf-file=/etc/ovirt-engine/imageuploader.conf -e export_debug upload test.ovf
ERROR: not a gzip file
### so I tar the test.ovf and test.vmdk as gzip file ###
[root@rhev-pc-host2 ~]# tar -zcvf ggtest.ovf ./test.ovf ./test-disk1.vmdk
./test.ovf
./test-disk1.vmdk
[root@ ~]# engine-image-uploader --conf-file=/etc/ovirt-engine/imageuploader.conf -e export_debug upload ggtest.ovf ERROR: Unable to update the disk ID in the OVF XML. Message: global name 'n_id_d' is not defined
Hi, you need to use v2v for converting the OVF from other virtualization systems to oVirt / RHEV OVF format. The format exported by VirtualBox is not compatible wiht oVirt.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com

Hi, Sandro Thanks for replying~ I download the virt-v2v and test it . But it directly wirte others' OVF file to RHEV , so the engine-image-uploader is not useful. How can I use virt-v2v to convert others' OVF to oVirt's OVF without writing it to Export Domain? -----邮件原件----- 发件人: Sandro Bonazzola [mailto:sbonazzo@redhat.com] 发送时间: 2015年3月16日 15:25 收件人: Xie, Chao/谢 超; users@ovirt.org; Yaniv Dary 主题: Re: [ovirt-users] FAILED! Using engine-image-uploader to Upload OVF to Export Domain Il 16/03/2015 07:33, Xie, Chao ha scritto:
Hi, all
I export a OVF/OVA vm file from VirtualBox (Manage -- > Export a vm. When I choose “ovf”, I got two files: test.ovf and test.vmdk) and want to use engine-image-upload to upload into oVirt Export Domain.
But I get Error as below:
1. using OVA
=========
[root ~]# engine-image-uploader --conf-file=/etc/ovirt-engine/imageuploader.conf -e export_debug upload test1.ova
ERROR: not a gzip file
2. using OVF
=========
[root ~]# engine-image-uploader --conf-file=/etc/ovirt-engine/imageuploader.conf -e export_debug upload test.ovf
ERROR: not a gzip file
### so I tar the test.ovf and test.vmdk as gzip file ###
[root@rhev-pc-host2 ~]# tar -zcvf ggtest.ovf ./test.ovf ./test-disk1.vmdk
./test.ovf
./test-disk1.vmdk
[root@ ~]# engine-image-uploader --conf-file=/etc/ovirt-engine/imageuploader.conf -e export_debug upload ggtest.ovf ERROR: Unable to update the disk ID in the OVF XML. Message: global name 'n_id_d' is not defined
Hi, you need to use v2v for converting the OVF from other virtualization systems to oVirt / RHEV OVF format. The format exported by VirtualBox is not compatible wiht oVirt.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com

Il 16/03/2015 10:51, Xie, Chao ha scritto:
Hi, Sandro Thanks for replying~ I download the virt-v2v and test it . But it directly wirte others' OVF file to RHEV , so the engine-image-uploader is not useful. How can I use virt-v2v to convert others' OVF to oVirt's OVF without writing it to Export Domain?
I'm not sure to have understood, but I can suggest you to take a look at http://website-humblec.rhcloud.com/convert-physical-virtual-virtual-using-vi... about v2v usage.
-----邮件原件----- 发件人: Sandro Bonazzola [mailto:sbonazzo@redhat.com] 发送时间: 2015年3月16日 15:25 收件人: Xie, Chao/谢 超; users@ovirt.org; Yaniv Dary 主题: Re: [ovirt-users] FAILED! Using engine-image-uploader to Upload OVF to Export Domain
Il 16/03/2015 07:33, Xie, Chao ha scritto:
Hi, all
I export a OVF/OVA vm file from VirtualBox (Manage -- > Export a vm. When I choose “ovf”, I got two files: test.ovf and test.vmdk) and want to use engine-image-upload to upload into oVirt Export Domain.
But I get Error as below:
1. using OVA
=========
[root ~]# engine-image-uploader --conf-file=/etc/ovirt-engine/imageuploader.conf -e export_debug upload test1.ova
ERROR: not a gzip file
2. using OVF
=========
[root ~]# engine-image-uploader --conf-file=/etc/ovirt-engine/imageuploader.conf -e export_debug upload test.ovf
ERROR: not a gzip file
### so I tar the test.ovf and test.vmdk as gzip file ###
[root@rhev-pc-host2 ~]# tar -zcvf ggtest.ovf ./test.ovf ./test-disk1.vmdk
./test.ovf
./test-disk1.vmdk
[root@ ~]# engine-image-uploader --conf-file=/etc/ovirt-engine/imageuploader.conf -e export_debug upload ggtest.ovf ERROR: Unable to update the disk ID in the OVF XML. Message: global name 'n_id_d' is not defined
Hi, you need to use v2v for converting the OVF from other virtualization systems to oVirt / RHEV OVF format. The format exported by VirtualBox is not compatible wiht oVirt.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com
participants (2)
-
Sandro Bonazzola
-
Xie, Chao