开发者

Dynamic disk size a VM using libvirt

开发者 https://www.devze.com 2023-02-03 17:26 出处:网络
Heyy i could not figure out if dynamic disk size(hard disk size according to contents which expands and contracts dynamically) is sup开发者_C百科ported in libvirt or not. If yes what are the appropria

Heyy i could not figure out if dynamic disk size(hard disk size according to contents which expands and contracts dynamically) is sup开发者_C百科ported in libvirt or not. If yes what are the appropriate parameters to be passed on in virt-install.

Thanks in advance, Jatin kumar


try command virsh domblkinfo <domain> <path-to-block-device>

For example, you have a windows guest that uses a 10GB file /data/winxp.img as disk device:

# virsh domblkinfo windows-guest /data/winxp.img
Capacity: 10737418240
Allocation: 3041759232
Physical: 3041759232

You can try command qemu-img if you want to do this job to your disk file without libvirt running:

# qemu-img info /data/winxp.img

Refer to this API doc for detail info

0

精彩评论

暂无评论...
验证码 换一张
取 消