当前位置:   article > 正文

kvm创建虚拟机硬盘大小_如何调整KVM虚拟磁盘的大小

kvm虚拟机硬盘空间回收

kvm创建虚拟机硬盘大小

I test it for qcow2 format. Other formats are TBA.

我测试它的qcow2格式。 其他格式为TBA。

  1. qemu-img resize kvm1.qcow2 +20G
  2. cp kvm1.qcow2 kvm1-orig.qcow2
  3. virt-resize --expand /dev/sda1 kvm1-orig.qcow2 kvm1.qcow2

Reference: https://fatmin.com/2016/12/20/how-to-resize-a-qcow2-image-and-filesystem-with-virt-resize/

参考https : //fatmin.com/2016/12/20/how-to-resize-a-qcow2-image-and-filesystem-with-virt-resize/

I test it for qcow2 format. Other formats are TBA.

我测试它的qcow2格式。 其他格式为TBA。

  1. qemu-img resize kvm1.qcow2 +20G
  2. cp kvm1.qcow2 kvm1-orig.qcow2
  3. virt-resize --expand /dev/sda1 kvm1-orig.qcow2 kvm1.qcow2

Reference: https://fatmin.com/2016/12/20/how-to-resize-a-qcow2-image-and-filesystem-with-virt-resize/

参考: https : //fatmin.com/2016/12/20/how-to-resize-a-qcow2-image-and-filesystem-with-virt-resize/

Answered by harryxiyou.
由harryxiyou回答。

翻译自: https://www.systutorials.com/how-to-resize-a-virtual-disk-of-kvm/

kvm创建虚拟机硬盘大小

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/217391?site
推荐阅读