Soldato
Anyone have any experience converting KVM images from raw to qcow2?
I only found this guide after I made a small mistake.
Converting the image is easy, I'm having issues re importing to the vmhost.
So I shutdown vm, undefined it and then ran:
convert -f raw -O qcow2 vmtoconvert vmconverted.qcow2
The conversion goes fine, but when I reimport the vm it's inaccessible.
Logs say it's network related, but I assumed as it had been set up prior to conversion the IP settings would stick.
Seems not.
The guide above seems to make it sound easy, in that I just needed to edit the xml file to point to the new VM, but I think it's too late for that as I have removed/destroyed the vm since then.
"After the operation completes, you may wish to delete the original input file. You will need to update any configs that utilize the new image, such as through sudo virsh edit [VM ID] for KVM. E.g. change the type from rawto qcow2 and update the path."
How do I reimport the image using my qcow2 image?
I only found this guide after I made a small mistake.
Converting the image is easy, I'm having issues re importing to the vmhost.
So I shutdown vm, undefined it and then ran:
convert -f raw -O qcow2 vmtoconvert vmconverted.qcow2
The conversion goes fine, but when I reimport the vm it's inaccessible.
Logs say it's network related, but I assumed as it had been set up prior to conversion the IP settings would stick.
Seems not.
The guide above seems to make it sound easy, in that I just needed to edit the xml file to point to the new VM, but I think it's too late for that as I have removed/destroyed the vm since then.
"After the operation completes, you may wish to delete the original input file. You will need to update any configs that utilize the new image, such as through sudo virsh edit [VM ID] for KVM. E.g. change the type from rawto qcow2 and update the path."
How do I reimport the image using my qcow2 image?