Search for:

Available article translations:

[Info] How to effectively compact Linux Virtual Machine

  • Parallels Desktop for Mac


Boot your Linux VM in single user mode.
(Please see software manufacturer documentation how to perform this operations.)

Follow the steps bellow:

init 1                                                                        - switch to level 1
mount -n -o remount,ro -t ext3 /dev/hda1 /         - remount the disk as read only
fsck.ext3 -f /dev/hda1                                            - file system check for errors
zerofree /dev/hda1                                                - fill emptu space with zero bytes
mount -o remount,rw -t ext3 /dev/hda1 /             - remount in read/write mode
shutdown -h now

For now you can compact your Virtual Machine
1. In Parallels Desktop version 3:
- Click Hard Disk 1 - Advanced -click Compact

2. In Parallels Desktop version 4:
Start Parallels Image Tools from Applications/Parallels
Select Disk to compact pointing to Virtual Machine pvm

Click to harddisk0.hdd (or whatever the name is)

Click to the next harddisk0.hdd file (It is correct - there are 2 files inside each other)

Click "Choose" button
Click "Continue"
Select "Compact Disk"
Click "Start"

33c4522b6fa9ca8e050f19b889fb58f1 1e5db16426987d561060acdf56d947b4

Was this article helpful?
Tell us how we may improve it.
Yes No
Desktop Virtualization
- Parallels Desktop 9 for Mac
- Parallels Transporter
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac Enterprise Edition
- Parallels Management-Mac for Microsoft SCCM
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0
- Parallels Virtuozzo Containers
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification