Parallels Desktop 8 does not compress Linux disks with lvm2 partitions

Discussion in 'Linux Virtual Machine' started by Jean-Paul Abelanet, Feb 6, 2014.

  1. Jean-Paul Abelanet

    Jean-Paul Abelanet Bit poster

    Messages:
    1
    I have multiple Linux virtual machines, some of which use ext4 partitions, and some of which use lvm2 partitions. It appears that the built-in tools for compressing disks (Virtual Machine->Configure->Hardware->Hard Disk 1->Compress and Virtual Machine->Reclaim Disk Space) do not work on the VMs which have lvm2 partitions, whereas the VMs that have ext4 partitions work fine, as well as Windows VMs. I ended up using the following recipe to compress the VMs with lvm2 partitions, based mostly on this post:

    http://forum.parallels.com/showthre...ct-your-virtual-disks-when-using-Linux-guests

    - Shut down VM
    - Boot VM into http://partedmagic.com/ (or single user mode)
    - Run
    Code:
    zerofree -v /dev/mapper/my_volume
    - Shut down VM
    - In Mac Terminal, run
    Code:
    prl_disk_tool compact --buildmap --hdd my_hard_disk.hdd
    - Reboot VM

    Can someone confirm that it is the existence of the LVM which is causing this, are there other side-effects for Parallels of using LVM partitions, and is this fixed in PD9 or another forthcoming release?
     

Share This Page