Closed herdiansah571 closed 8 months ago
Hello,
Usually when importing into Cloudstack/kvm you want the file to be formatted qcow2 and then bzipped, ie:
qemu-img convert -p file.raw -O qcow2 file.qcow2
bzip2 -v file.qcow2
Then register the resulting compressed file as a template in Cloudstack.
However, going through this (incomplete) log I get the feeling you have another problem there. If you deploy from a known good template does it work?
Hello @NuxRo,
how do you usually create template on cloudstack ? via command line or via gui web dashboard ? can you share step by step you usually create template on cloudstack ?
I usually register template via gui web dashboard apache cloudstack, If I deploy instance from template that I get from bellow url its work :
https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img https://cloud-images.ubuntu.com/releases/focal/release/ubuntu-20.04-server-cloudimg-amd64.img https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2 https://repo.almalinux.org/almalinux/9/cloud/x86_64/images/AlmaLinux-9-GenericCloud-latest.x86_64.qcow2 https://download.opensuse.org/distribution/leap/15.5/appliances/openSUSE-Leap-15.5-Minimal-VM.x86_64-Cloud.qcow2
But right now I need import our VMs .qcow2 file or .img file from opennebula cloud to apache cloudstack. I register that .qcow2 file or .img file into apache cloudstack, when I create instance using that template the result is "Unable to create a deployment for VM instance"
Please help me... Thanks
Hello,
As I said, you should be converting your raw files to qcow2.bz2, else you can't register them in Cloudstack as templates. Then you can deploy from them. I gave above an example command line how to do that.
Hello @NuxRo
Currently I succesfully import our VMs .qcow2 file or .img file from opennebula cloud to apache cloudstack following the tutorial you provided. thank you for helping me....
thanks for the feedback @herdiansah571 , closing this issue, please reopen or open a new one if you feel this is wrong.
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS