I uploaded the QEMU VM image from Kali.org to the default data store.
The image file qcow2 size was about 15 Gb.
Once uploaded , The default data store on the other hand takes up 80 GB.
When I run the image, 63 GB is free space and and near about 17 GB is used inside the VM.
I have tried to install from the ISO a couple of million times on disk sizes as big as 60 GB, but it always fails, the VM however runs fine except for the mammoth disk size.
Any advice on the matter would be greatly appreciated, a more reasonable disk size would be advantageous.
I didnāt use kali image before, but probably they need that amount of disk, also depends on your datastore storage backend. We use ceph so all the images are always converted to raw.
Maybe you can try to shrink the Kali image before uploading it to opennebula datastore. There are several wikis that explains how to do that with a qcow image for kvm:
Another option is to configure the VM disk as virtio-scsi[*] and enable trim/discard. Then use fstrim inside the guest(Kali) to tell the block layer that the free space in the (guest) filesystem is indeed āfreeā so it will free the disk space taken by the backing qcow2 file too.
[*] The discard option virtio-block backed disks works in recent qemu-kvm too. But you need to check does it works in your case first.