Migration from Proxmox

Hi again! well, I'm trying to migrate all my VMs from Proxmox to oVirt. Proxmox doesn't have libvirt and I can dump the files using vzdump <vm-id> <directory> and the output is a *.vma file I think from Proxmox. I can't even find the files, Proxmox create Logical Volumes for every VM. I converted that to *.qcow2 using qemu-img convert, the conversion worked(at least no errors) but I can't import it using a script that I found on web* and the export storage domain(oVirt didn't found it). I would like to know if there is a way to do that. I read a lot about and found that one could build a conversion server and use virt-v2v to import. But it will require a RH Enterprise for that, right? I don't have a subscription and I would like to know if is possible without the subscription? And sorry for the offtopic question, if there is a "redhat" which would like to answer me privately, if I buy a subscription for 1 Server and I have NN CentOS Servers, it will be possible to use all benefits since I have a valid subscription(of course, support just for the RH Server)? * https://rwmj.wordpress.com/2015/09/18/importing-kvm- guests-to-ovirt-or-rhev/ Thanks in Advance! All the best Gabriel Gabriel Stein ------------------------------ Gabriel Ferraz Stein Tel.: +49 (0) 170 2881531

On Fri, Dec 1, 2017 at 1:38 PM, Gabriel Stein <gabrielstein@gmail.com> wrote:
Hi again!
well, I'm trying to migrate all my VMs from Proxmox to oVirt. Proxmox doesn't have libvirt and I can dump the files using vzdump <vm-id> <directory> and the output is a *.vma file I think from Proxmox. I can't even find the files, Proxmox create Logical Volumes for every VM.
I converted that to *.qcow2 using qemu-img convert, the conversion worked(at least no errors) but I can't import it using a script that I found on web* and the export storage domain(oVirt didn't found it).
If you already converted from LV to img file, in recent versions of oVirt you can upload virtual disks from your client to the oVirt infrastructure, while connected to the web admin gui with a browser. Under disks --> upload: https://drive.google.com/file/d/1DopgiOZ82Zc-W3IYGns1_QQ7JrFF_DUS/view?usp=s... Then you select your image on local disk (or share...): https://drive.google.com/file/d/16HBE6VnfO_P3xsqi_16ae4yHh__7G4FS/view?usp=s... NOTE: I don't know why you are asked to input the size of the disk at destination.... Please note that you have to enable the Image I/O Proxy service on engine during engine-setup (you can re-run engine-setup also to change configuration settings if you didn't enabled it at installation time) # engine-setup [ INFO ] Stage: Initializing [ INFO ] Stage: Environment setup Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf', '/etc/ovirt-engine-setup.conf.d/10-packaging.conf', '/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'] Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20171114112028-cyi1ot.log Version: otopi-1.6.2 (otopi-1.6.2-1.el7.centos) [ INFO ] Stage: Environment packages setup [ INFO ] Stage: Programs detection [ INFO ] Stage: Environment setup [ INFO ] Stage: Environment customization --== PRODUCT OPTIONS ==-- . . . --== CONFIGURATION PREVIEW ==-- . . . Configure Image I/O Proxy : True . . . and that the client where you run firefox needs to be able to connect to port 54323 of the engine server to upload the file On engine: $ sudo systemctl status ovirt-imageio-proxy.service -l ● ovirt-imageio-proxy.service - oVirt ImageIO Proxy Loaded: loaded (/usr/lib/systemd/system/ovirt-imageio-proxy.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2017-11-14 11:36:30 CET; 2 weeks 3 days ago Main PID: 664 (ovirt-imageio-p) CGroup: /system.slice/ovirt-imageio-proxy.service └─664 /usr/bin/python /usr/bin/ovirt-imageio-proxy Nov 14 11:36:29 engine.mydomain.it systemd[1]: Starting oVirt ImageIO Proxy... Nov 14 11:36:30 engine.mydomain.it systemd[1]: Started oVirt ImageIO Proxy. Then you can create a VM and assign this imported floating disk to it. HIH, Gianluca

Well, now I have a new problem... Uploading a qcow2 gets paused and I receive an error: *Unable to upload image to disk 11112a70-4cbe-4612-a5e2-101717cb08a3 due to a network error. Make sure ovirt-imageio-proxy service is installed and configured, and ovirt-engine's certificate is registered as a valid CA in the browser. The certificate can be fetched from https://<engine_url>/ovirt-engine/services/pki-resource?resource=ca-certificate&format=X509-PEM-CA* CA already added to browser, Self-Signed. Logs: *Dez 01 16:45:07 xxx ovirt-imageio-p[2295]: ovirt-imageio-proxy root ERROR Failed communicating with vdsm-imaged: A Connection error occurred.* * Traceback (most recent call last):* * File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/image_handler.py", line 177, in make_imaged_request* * timeout=timeout, stream=stream)* * File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send* * r = adapter.send(request, **kwargs)* * File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 415, in send* * raise ConnectionError(err, request=request)* * ConnectionError: ('Connection aborted.', error(113, 'No route to host'))* *Dez 01 16:45:07 xxxx ovirt-imageio-p[2295]: ovirt-imageio-proxy web ERROR 1.1.1.1- PUT 503 215 (0.00s)* * Traceback (most recent call last):* * File "/usr/lib/python2.7/site-packages/ovirt_imageio_common/web.py", line 48, in __call__* * resp = self.dispatch(request)* * File "/usr/lib/python2.7/site-packages/ovirt_imageio_common/web.py", line 73, in dispatch* * return method(*match.groups())* * File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/http_helper.py", line 88, in wrapper* * ret = func(self, *args)* * File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/http_helper.py", line 59, in wrapper* * ret = func(self, *args)* * File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/image_handler.py", line 75, in put* * return self.send_data(self.request)* * File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/image_handler.py", line 116, in send_data* * request.method, imaged_url, headers, body, stream)* * File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/image_handler.py", line 187, in make_imaged_request* * raise exc.HTTPServiceUnavailable(s)* * HTTPServiceUnavailable: Failed communicating with vdsm-imaged: A Connection error occurred.* Question: I saw that there is a imageio-proxy and imageio-daemon. Proxy is installed on hosted-engine, and imageio-daemon on host. I installed imageio-daemon on hosted-engine(and I think that was a mistake) but there isn't a vdsmcert.pem there, just on hosts with vdsm and hosted-engine installed. Ports are already on firewall, 54323/tcp right? On Host: # systemctl status ovirt-imageio-daemon ● ovirt-imageio-daemon.service - oVirt ImageIO Daemon Loaded: loaded (/usr/lib/systemd/system/ovirt-imageio-daemon.service; disabled; vendor preset: disabled) Active: active (running) since So 2017-11-26 23:26:03 CET; 4 days ago Main PID: 21034 (ovirt-imageio-d) CGroup: /system.slice/ovirt-imageio-daemon.service └─21034 /usr/bin/python /usr/bin/ovirt-imageio-daemon Am I doing something wrong? Installation from hosted-engine and host are quite normal, no custom stuff. Thanks! Gabriel Stein ------------------------------ Gabriel Ferraz Stein Tel.: +49 (0) 170 2881531 2017-12-01 13:38 GMT+01:00 Gabriel Stein <gabrielstein@gmail.com>:
Hi again!
well, I'm trying to migrate all my VMs from Proxmox to oVirt. Proxmox doesn't have libvirt and I can dump the files using vzdump <vm-id> <directory> and the output is a *.vma file I think from Proxmox. I can't even find the files, Proxmox create Logical Volumes for every VM.
I converted that to *.qcow2 using qemu-img convert, the conversion worked(at least no errors) but I can't import it using a script that I found on web* and the export storage domain(oVirt didn't found it).
I would like to know if there is a way to do that. I read a lot about and found that one could build a conversion server and use virt-v2v to import. But it will require a RH Enterprise for that, right? I don't have a subscription and I would like to know if is possible without the subscription?
And sorry for the offtopic question, if there is a "redhat" which would like to answer me privately, if I buy a subscription for 1 Server and I have NN CentOS Servers, it will be possible to use all benefits since I have a valid subscription(of course, support just for the RH Server)?
* https://rwmj.wordpress.com/2015/09/18/importing-kvm-guests -to-ovirt-or-rhev/
Thanks in Advance!
All the best
Gabriel Gabriel Stein ------------------------------ Gabriel Ferraz Stein Tel.: +49 (0) 170 2881531

Solved! On Hosted Engine: tail -f /var/log/ovirt-imageio-proxy/image-proxy.log Look which Host is on 'no route to host' and firewall-cmd --permanent --add-port=54322/tcp && firewall-cmd --reload Uploading now and I will test! Thanks! Gabriel Stein ------------------------------ Gabriel Ferraz Stein Tel.: +49 (0) 170 2881531 2017-12-01 13:38 GMT+01:00 Gabriel Stein <gabrielstein@gmail.com>:
Hi again!
well, I'm trying to migrate all my VMs from Proxmox to oVirt. Proxmox doesn't have libvirt and I can dump the files using vzdump <vm-id> <directory> and the output is a *.vma file I think from Proxmox. I can't even find the files, Proxmox create Logical Volumes for every VM.
I converted that to *.qcow2 using qemu-img convert, the conversion worked(at least no errors) but I can't import it using a script that I found on web* and the export storage domain(oVirt didn't found it).
I would like to know if there is a way to do that. I read a lot about and found that one could build a conversion server and use virt-v2v to import. But it will require a RH Enterprise for that, right? I don't have a subscription and I would like to know if is possible without the subscription?
And sorry for the offtopic question, if there is a "redhat" which would like to answer me privately, if I buy a subscription for 1 Server and I have NN CentOS Servers, it will be possible to use all benefits since I have a valid subscription(of course, support just for the RH Server)?
* https://rwmj.wordpress.com/2015/09/18/importing-kvm-guests -to-ovirt-or-rhev/
Thanks in Advance!
All the best
Gabriel Gabriel Stein ------------------------------ Gabriel Ferraz Stein Tel.: +49 (0) 170 2881531

Migration worked! Please feel free to copy on Blogs, Wikis and so on! There is a better way probably(Libvirt on another Server/Linux Workstation an import through KVM), but this just works. => How to Migrate VMs from Proxmox: Requirements: - Port 54322/tcp open on oVirt Hosts - ovirt-imageio-daemon running on Hosts - ovirt-imageio-proxy running on (Hosted)-Engine. -- Attention: this will move disks through different Storages from Proxmox. -- 1 - Add a Storage to Proxmox, like NFS or a local share. 2 - Click on a VM from Proxmox and choose the option "Move Disk" on the taskbar above. 3 - Choose qcow2 as a export file and save the file on the added storage. 4 - On oVirt-Engine go to Disks and click on Upload(Taskbar above) and add the size of disk from Proxmox( to check how big it is: on Proxmox through "Hardware" on the left sidebar from VM). 5 - Create a new VM and attach the qcow2 disk. 6 - Check the Network Configs, if you did something with udev-rules you will need to change the mac address. Many Thanks to Gianluca and Nathanäel! Best Regards, Gabriel Gabriel Stein ------------------------------ Gabriel Ferraz Stein Tel.: +49 (0) 170 2881531 2017-12-01 13:38 GMT+01:00 Gabriel Stein <gabrielstein@gmail.com>:
Hi again!
well, I'm trying to migrate all my VMs from Proxmox to oVirt. Proxmox doesn't have libvirt and I can dump the files using vzdump <vm-id> <directory> and the output is a *.vma file I think from Proxmox. I can't even find the files, Proxmox create Logical Volumes for every VM.
I converted that to *.qcow2 using qemu-img convert, the conversion worked(at least no errors) but I can't import it using a script that I found on web* and the export storage domain(oVirt didn't found it).
I would like to know if there is a way to do that. I read a lot about and found that one could build a conversion server and use virt-v2v to import. But it will require a RH Enterprise for that, right? I don't have a subscription and I would like to know if is possible without the subscription?
And sorry for the offtopic question, if there is a "redhat" which would like to answer me privately, if I buy a subscription for 1 Server and I have NN CentOS Servers, it will be possible to use all benefits since I have a valid subscription(of course, support just for the RH Server)?
* https://rwmj.wordpress.com/2015/09/18/importing-kvm-guests -to-ovirt-or-rhev/
Thanks in Advance!
All the best
Gabriel Gabriel Stein ------------------------------ Gabriel Ferraz Stein Tel.: +49 (0) 170 2881531
participants (2)
-
Gabriel Stein
-
Gianluca Cecchi