Debian Lenny on NetBSD/xen

       249 words, 2 minutes

Debian Lenny is one of my favorite Linux Distribution (when I have to run Linux… ;) Here’s how to install and run a Lenny domU under a NetBSD/xen dom0 installation.

My dom0 is running NetBSD 5.1_STABLE/amd64 and Xen version 3.3.2.
The domU will be running Debian GNU/Linux 5.0 (i386).

Installation of the Debian domU

Grab the Xen configuration file from there.

Modify the xm-debian.cfg file to meet you needs:

# diff xm-debian.cfg.orig xm-debian.cfg
< name = "ExampleDomain"
> name = "debian"
< vif = ['']
> vif = ['bridge=bridge0']
< disk = ['phy:hda1,xvda,w']
> disk = ['file:/home/xen/debian/disk.img,xvda,w']

Start the installation process:

# xm create -c xm-debian.cfg install=true install-mirror=
Using config file "./xm-debian.cfg".
Install Mirror:
Install Suite: lenny

WARNING: Installer kernel and ramdisk are not authenticated.

command line is "debian-installer/exit/always_halt=true -- quiet console=hvc0"
Started domain debian
                     [    0.197296] PCI: Fatal: No config space access function found
[    0.332743] isapnp: Write Data Register 0xa79 already used
[    0.354553] i8042.c: No controller found.
Starting system log daemon: syslogd, klogd.

You should be presented with a “standard” installation screen. Proceed to the installation ; I chose “Standard system”.
When the installation is done, just shutdown the domU.

Running the Lenny domU

You will start the domU using:

# xm create xm-debian.cfg

Isn’t that F***ing simple ?!!

You can get to the domU’s console as usual, using:

# xm console debian

That’s All Folks!
And κῦδος to the Debian team!