Adjust the disk size of a KVM Virtual Machine
By default, the hard disk images of KVM virtual machines are stored in "/var/lib/libvirt/images/". First, check whether your hard disk image format is in RAW format:
Qemu-img info/var/lib/libvirt/images/Template-CentOS-6.6-32bit.img
Is the result after I run the command:
We can see that the hard disk image of this virtual machine is in RAW format and meets the requirements. Next, we will try to resize it.
Qemu-img resize/var/lib/libvirt/images/Template-CentOS-6.6-32bit.img + 2G
Is the result after I run the command:
We can see that the hard disk size has been adjusted successfully, but it takes effect only after being restarted.
After the reboot, The fdisk command shows that the adjustment was successful. See:
-------------------------------------- Split line --------------------------------------
How to add a hard disk for a Linux Virtual Machine in KVM
Getting started with Linux: KVM for Virtual Machine experience
RHEL6 KVM virtualization creates a bridge NIC-Bridge
RedHat Linux KVM Virtual Machine bridging
Installation/bridging settings of KVM in CentOS 5.6/virtual machine creation and operation
The/bin/qemu-KVM problem cannot be found when the kvm virtual machine is installed with libvirt In Ubuntu.
Install and configure the KVM Virtual Machine in RedHat6.5
Nested virtualization nested for KVM Virtualization
-------------------------------------- Split line --------------------------------------
This article permanently updates the link address: