Changes between Version 51 and Version 52 of VboxApps
- Timestamp:
- Aug 8, 2013, 5:05:48 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VboxApps
v51 v52 317 317 Make sure all roles are unselected before continuing. 318 318 319 ==== Cleaning the Debian VM ==== 320 321 First step is to remove non-critical packages that are essential ([https://wiki.debian.org/ReduceDebian source]). For Debian Squeeze 7.1 that are: 322 {{{ 323 acpi acpid busybox eject iamerican ibritish info ispell laptop-detect logrotate manpages net-tools os-prober tasksel traceroute usbutils wamerican 324 }}} 325 Use aptitude to also remove `linux-headers-*` packages but don't remove `dkms` or `virtualbox-guest-dkms`! Run `apt-get autoremove` after this to get rid of now unused packages. `apt-get autoclean` and `apt-get clean` should remove downloaded archives to free up space. 326 327 In order to realy purge all files from previously removed packages this command is helpfull as it purges all configuration files from uninstalled packages: 328 {{{ 329 dpkg --purge `dpkg --get-selections | grep deinstall | cut -f1` 330 }}} 331 319 332 ==== Updating Grub ==== 320 333 … … 351 364 1:2345:respawn:/sbin/mingetty --autologin root --noclear tty1 352 365 }}} 366 367 ==== Disabling periodic fsck ==== 368 369 This will disable the periodic fsck run that occurs every 30 times the VM is turned on: `tune2fs -c -1 /dev/sda1`. 370 371 ==== Compact the VDI container ==== 372 373 To get a better compression ratio you may install and run the '''zerofree''' tool to overwrite all empty space on the VDI with zeros. 374 {{{ 375 apt-get install zerofree 376 telinit 1 377 {enter root password} 378 mount -o remount,ro /dev/sda1 379 zerofree -v /dev/sda1 380 shutdown -hP 0 381 }}} 382 383 Now open a terminal on the host System and compact the VDI file: 384 {{{ 385 vboxmanage modifyhd FILENAME.vdi --compact 386 }}}