shrink virtual machine

asked 2018-01-02 14:38:00 +0000

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 ( 2018-01-02 16:12:37 +0000 )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 ( 2018-01-04 08:42:33 +0000 )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 ( 2018-01-05 16:37:46 +0000 )edit