Setting up a minimal Debian for VM use

I’ve been just installing a Linux in a VM again (using VirtualBox, tested with 1.5.6). As a minimal system, I choose Debian (with minimal I mean that you don’t get much unused stuff, it boots fast and the disk usage is reasonable. I know that DSL or whatever would be smaller, this is just about getting a decent work system up and running quickly). Here’s a small howto:

  1. Get the Debian Net-Installer from Debian.org (180 MiB)
  2. Install debian, when it comes to package setup deselect “Desktop system
  3. After reboot, install (using apt-get install):
    • x-window-system-core
    • kde-core
    • kdm
    • g++
  4. Reboot
  5. Install the VM additions, but install the kernel headers first using: apt-get install linux-headers-`uname -r`
  6. Reboot, notice that the network doesn’t seem to work any longer
  7. Run dhcpd (as root)

Done. This gives you a quite small debian installation which works fine and uses really little disk space (1.10 GiB including the swap-file).

[Update] dhcpd has to be run as root in case no network connection is found.

Related posts:

  1. Fedora Linux: An easy to use Linux for work (with CUDA)
  2. Virtualization
  3. Boost 1.34.1 released
  4. WPF: Minimal WPF DataBinding example
  5. Disk failure (with some data loss)

This entry was posted in General, Programming. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>