shrink virtual machine

asked 2018-01-02 08:38:00 -0500

francko gravatar image

hi there

i have a virtual machine with Win7 running under KVM/QEMU. Once i set this system up with a disc space of 37.5 GB, the vm is now 66 GB big. When i have a look in the Win7 control panel, there is still 37.5 GB disk size.

  1. how can i reduce the used space of this vm and
  2. how can i prevent the system from expanding?

thanks in advance Frank

edit retag flag offensive close merge delete

Comments

What is taking up the space? Snapshots?

Panther gravatar imagePanther ( 2018-01-02 10:12:37 -0500 )edit

no, there are no snapshots. But i recognised, that always when the system (fedora) is going into sleep, also the vm gets to a paused mode. And this paused mode seems to let my vm grow. The last time it grew until there was no more space on the partition.

francko gravatar imagefrancko ( 2018-01-04 02:42:33 -0500 )edit

I don't know the answer by I would start by investigating what is taking up so much space. I suppose you could destroy the machine and recycle the hard drive .

Panther gravatar imagePanther ( 2018-01-05 10:37:46 -0500 )edit