Tuesday, March 23, 2010

Debian 3.1 "sarge" in Virtualbox

Today I got Debian 3.1 "sarge" (console only) running as a guest in Virtualbox.

I achieved this through the following steps:

  1. found a prepackaged sarge image at virtualboxes.org (http://virtualboxes.org/images/debian/) -- here's the link to the actual image: http://downloads.sourceforge.net/virtualboximage/debian-3.1r0a-x86-netinstall-2.7z
  2. using 7-zip, extract the VDI file from the image, put it in the Virtualbox directory (there are some other files in the 7z archive, like an XML file describing the VM, but these can be discarded)
  3. in Virtualbox, go to Files->Virtual Media Manager and create a new disk (use existing image)
  4. create a new virtual machine (Linux, Debian) with 384 Mb of memory using the disk just created. Also I suggest turning off: ACPI (Linux kernel 2.4 doesn't support it), USB and Sound Card - assuming you don't need them. This speeds up the VM boot process.
  5. fire up the new VM. At the Debian 3.1 login prompt, log in as "root/toor" - I went ahead and appended "root-toor" to the VM name in Virtualbox, just in case I forget the root password.
  6. Now, here's an important caveat: out of the box, the server line in /etc/apt/sources.list does not work. I had to change that line to:
    deb http://archive.debian.org/debian/ sarge main
    (this is the only line needed in the file - all other lines should be deleted or commented out)
  7. For awhile this worked fine. But then, for some reason, the address archive.debian.org got associated with an unresponsive IP address. From another machine, I nslookuped it and got the IP address "", which was responding to pings. So I added the line " archive.debian.org" to /etc/hosts
  8. "apt-get update" worked at this point
  9. Then I ran "apt-get upgrade" to upgrade to the final revision of Debian 3.1 "sarge"
  10. At this point I had a working minimal system.
NOTE: Don't bother installing the Virtualbox Guest Additions on a console-only Debian 3.1 system. I tried, and there's no point. The only thing I was expecting from it was seamless mouse integration with gpm, but apparently (obviously) the Guest Additions do not support that.

No comments:

Post a Comment