iSCSI format qcow2

9acca9

Well-Known Member
Dec 27, 2017
39
3
48
75
Hi.
I want to make a VM with format qcow2 in a iSCSI target.
I found in tutorials that is possible make a file system to the iscsi device,and the select qcow2 (to make snapshot possible) when creating the VM.
But, i dont find how do this... how make a qcow2 format to a VM in a iSCSI target with file system.
I know that i can do a LVM, but this does not have snapshot (in fact in the LVM the VM have a raw format)
Can you give me a hand?

Thanks to all.

(i dont speak english)
 
Last edited:
Ok, thanks.
But i dont want "use iSCSI on the host itself", it's possible?
 
But i dont want "use iSCSI on the host itself", it's possible?

I do not know if I understand your question correctly. You do know how iSCSI works, don't you? Either you use it on the host to attach an iscsi volume as a networked hard disk, format it and use QCOW2 on it or you use iSCSI via PVE to directly attach that disk to a VM, in which case no filesystem is involved and therefore no QCOW2 possible.

If you want to use a QCOW2 image as a backing device for iSCSI on the storage server, I do not know if this works. I'd use ZFS in that case and have thin provisioning, compression and snapshots available on the storage side.