If your drive is already in the raw format supported by these hypervisors, it is ready to upload using our API upload tool unchanged, as described above.
If your drive is in qcow2 format, you will need to convert it to raw format before uploading. You can do this with the command:
qemu-img convert -f qcow2 -O raw drive.qcow2 drive.raw
drive.qcow2 is the qcow2 file you want to convert to the raw file drive.raw.