Adjust the disk size of a KVM Virtual Machine

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.