Once the size of the VM disk image of windows 10 is done in the KVM above, it’s pretty easy to expand the storage under windows, we are basically going to use the Windows Disk manager utility for this purpose. Once you enter the command you could see that the image size got increased. Supported formats: raw cow qcow vdi vmdk cloop dmg bochs vpc vvfat qcow2 qed parallels nbd blkdebug hostcdrom hostfloppy hostdevice file qemu-img resize qcow2file1.img 10G qemu-img: This image format does not support resize qemu-img resize qcow2file1. So 40GB+60GB=100GB in images]# qemu-img resize win10.qcow2 +60G I had given 40GB of storage during the VM installation, now I am going to expand to 60GB, to do that enter the command below.But inside the vm, the size still says 2G. Goto the image location /var/lib/libvirt/images I am trying to increase the size of the raw image from 2G by an extra 4G using the command.It's always a good idea to back up your disk image before you start work. Resizing a disk is reliable and should complete in a matter of seconds but it doesn't work when VMs have stored snapshots. To increase the KVM disk size qcow2 for windows, follow the below. Disk images used by KVM virtual machines can be resized with the virsh and qemu-img commands. Note: in case of any issue you can remove the existing image and edit the windows XML file with the command virsh edit win10 and replace the image with the backup image and start the windows. Once you have the backup ready you can go ahead with the next steps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |