![]() The first three steps each remove a file which would prevent Disk Management from shrinking the volume. You might have to repeat the last step until you are able to shrink the volume to a size you wish. The setting is found in Control Panel > System > Advanced system settings > Advanced > Performance > Advanced > Virtual memory. If the file C:\hiberfil.sys is not deleted automatically, you may now delete it. Open a Command Prompt as Administrator and type powercfg.exe /hibernate off. The setting is found in Control Panel > System > Advanced system settings > Advanced > Startup and Recovery > Write debugging information. There are four things to do before trying to shrink a volume: Windows is terribly bad in shrinking it's volumes, but with a little patience it can be done. To shrink a Windows guest image there are a few preparations to make. There's a nice live CD distro to do just that. In Linux you may use whatever tools available, I usually boot into a live CD and use GParted to do the resizing. Windows is capable of expanding a live partition without problems. In Windows 7/8/10 you would do this in Disk Management. ![]() To grow a disk image all you have to do is use the command qemu-img resize, and then grow the guest partition to fill the image. Note: if you do use other than a raw image, you can always temporarily convert it into a raw image and back using qemu-img convert. I had to temporarily grow my 20 GB disk image to a 40 GB image, but shrinking back wasn't as straightforward. I bumped into the issue when upgrading my Windows 7 virtual machine to Windows 10. A special case where raw images are especially handy is when you have to shrink an image. Should you need snapshots, qcow2 would be the way to go with its copy on write feature. That's why I normally use raw images and not special formats such as qcow2. I like my virtual machines independent and simple. ![]() Add how to remove Windows recovery partition. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |