Monday, January 9, 2017

Steps to convert RHEV/Ovirt VM in export domain to qcow2 format


full path for below steps 
/home/exports_domain/fd251a1b-9665-4d3a-b307-66688ae7dab2/images/7a64ffa1-e759-4a62-aac8-bf01a78f1b7c

 
1) configure export domain (example using nfs) and export the VM into it
 
2) on the linux host which have access to the nfs export domain in this example a vm exported to /home/exports_domain
 
3) cd into the fd251a1b-9665-4d3a-b307-66688ae7dab2, you will see a folder called 'images'
 
4) cd into the 'images' folder'
 
5) cd into the folder, in this example 7a64ffa1-e759-4a62-aac8-bf01a78f1b7c
 
6) check the content of the folder, you will see a file bb2794b7-3578-4eee-9d60-79853a689c4d in this case 50GB, the other one is the meta file.
 
7) run this command for conversion to qcow2 format
 
qemu-img convert -O qcow2 bb2794b7-3578-4eee-9d60-79853a689c4d jbossfile.qcow2

8) run the qcow2 on linux kvm,virtual box etc.

2 comments: