[pve-devel] qemu-img import/export tests

Alexandre DERUMIER aderumier at odiso.com
Tue Oct 23 09:27:41 CEST 2012


more precisly for iscsi:

qemu-img convert -f raw -O iscsi vm-128-disk-1.raw iscsi://10.6.0.38/iqn.1986-03.com.sun:02:7971f46d-bd0e-6289-9240-8090b5b2be9a/11
Unknown option 'size'
qemu-img: Formatting not supported for file format 'iscsi'


from qemu-img.c:


    /* Create the new image */
    ret = bdrv_create(drv, out_filename, param);
    if (ret < 0) {
        if (ret == -ENOTSUP) {
            error_report("Formatting not supported for file format '%s'",
                         out_fmt);
        } else if (ret == -EFBIG) {
            error_report("The image size is too large for file format '%s'",
                         out_fmt);
        } else {
            error_report("%s: error while converting %s: %s",
                         out_filename, out_fmt, strerror(-ret));
        }
        goto out;
    }


So, I think it must be hacked in some way, I'm reading the code. (I have tell the question on libiscsi github)




----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier at odiso.com> 
À: pve-devel at pve.proxmox.com 
Envoyé: Mardi 23 Octobre 2012 08:58:48 
Objet: [pve-devel] qemu-img import/export tests 

Hi, 

I have done some tests with qemu-img to copy (import/export), between differents storage. 

seem to works fine, we can't convert between all storage and file format: 

files : raw,qcow2,vmdk 

devices (lvm,iscsi devices) : -O host_device 

sheepdog,rbd: -O sheepdog , -O rbd 

some sample from sheepdog to rbd: 

qemu-img convert -f sheepdog -O rbd sheepdog:127.0.0.1:7000:vm-125-disk-2 rbd:rbd/test1234:id=admin:auth_supported=cephx\;none:keyring=/etc/pve/priv/ceph/rbdtest.keyring:mon_host=10.6.0.100\\:6789 


we can also use -p to see percentage progress. 



I'm looking for iscsi://, but I didn't find how to use it yet. 

I'll keep you in touch 

Regards, 

Alexandre 

_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list