Search Posts

Category: KVM

Create kvm disk

創建qcow2 qemu-img create -f qcow2 disk.qcow2 20G Formatting ‘disk.qcow2’, fmt=qcow2 size=21474836480 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16   創建Raw qemu-img create -f raw disk.raw 20G Formatting ‘disk.raw’, fmt=raw size=21474836480   檢查詳細硬碟資料 可以看到用了多大 qemu-img info disk.qcow2 image: disk.qcow2 file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 1.3G cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false