Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[Hyper-V] How to make partitions and disk smaller?

I am running XG in Hyper-V.

First mystery, the vhd files (the auxiliary in particular) keep growing and growing, although not much space is being used when I check from the Advanced Shell.

The virtual disk size is 80 Gb, so I'm guessing the vhd file will stop growing when it reaches that size.

Unfortunately, I don't have that much space available on the host. I'd like to resize the disk to a smaller size.

Resize-VHD gives me the error below.

fdisk confirms there is no partition table:

So, what are my options? Is there a way to make the disk smaller? Should I create my own disks and install XG on the VM instead? A detailed walk-through for either case would be appreciated, as I am new to both Sophos and Hyper-V.

Cheers.



This thread was automatically locked due to age.
Parents
  • Hi together,

    I would like to bring an update to this thread as I was struggling with the growth of my dynamic image file also.

    I'm using KVM with a qcow2 image and noticed that the image is growing endlessly (it was > 27GB) while the XG inside is using only 2GB after 6 weeks. This must have something to do with the way log rotation and the reporting database is working inside XG. All tries to reduce the logging e.g. with deactivating logging for web protection and the per-fw-rule-logging to keep the growth rate in an acceptable rate were unsuccessful.

    Of course 80GB are nothing nowadays but if you are running a dedicated hypervisor in a small box at home you probably wouldn't want to put in a very big SSD into it. (I'm using a 128GB SSD) Second I'm a fan of doing regular full backups of the VMs itself and with these image sizes you would easily get hundreds of GBs if you would keep some backup generations on the hardware itself before moving it to an archive.

    After checking the install PDFs I noticed that the minimum disk requirement for a software-based installation is only 10GB. Therefore I decided to try a fresh install of my XG with a smaller disk size and recover a backup of my config.

    I'm now running with a 20GB disk/image (which means the var-partition is set up with a size of 14GB) since yesterday and I will give some feedback in the future if I will run into problems with it.

    Best regards

    DomNik

Reply
  • Hi together,

    I would like to bring an update to this thread as I was struggling with the growth of my dynamic image file also.

    I'm using KVM with a qcow2 image and noticed that the image is growing endlessly (it was > 27GB) while the XG inside is using only 2GB after 6 weeks. This must have something to do with the way log rotation and the reporting database is working inside XG. All tries to reduce the logging e.g. with deactivating logging for web protection and the per-fw-rule-logging to keep the growth rate in an acceptable rate were unsuccessful.

    Of course 80GB are nothing nowadays but if you are running a dedicated hypervisor in a small box at home you probably wouldn't want to put in a very big SSD into it. (I'm using a 128GB SSD) Second I'm a fan of doing regular full backups of the VMs itself and with these image sizes you would easily get hundreds of GBs if you would keep some backup generations on the hardware itself before moving it to an archive.

    After checking the install PDFs I noticed that the minimum disk requirement for a software-based installation is only 10GB. Therefore I decided to try a fresh install of my XG with a smaller disk size and recover a backup of my config.

    I'm now running with a 20GB disk/image (which means the var-partition is set up with a size of 14GB) since yesterday and I will give some feedback in the future if I will run into problems with it.

    Best regards

    DomNik

Children
No Data