Qemu 参数设置

 

提高磁盘大小

qemu-img resize vmdisk.qcow2 +10G 
# check
qemu-img info vmdisk.qcow2
image: archlinux-x86_64-cc.qcow2
file format: qcow2
virtual size: 50 GiB (53687091200 bytes)
disk size: 12.6 GiB
cluster_size: 65536
Format specific information:
    compat: 1.1
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false
Child node '/file':
    filename: archlinux-x86_64-cc.qcow2
    protocol type: file
    file length: 12.6 GiB (13574930432 bytes)
    disk size: 12.6 GiB

但是 df -h 的结果并没有区别??