Debian Lenny on NetBSD/xen

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!

Source: DebianInstallerXen

Author: Joel Carnat

@work Technical Architect and SysAdmin ; @home OpenBSD and FOSS, Karate, Kobudō, Jōdō, Bodyweight workout, Photography & Music

2 thoughts on “Debian Lenny on NetBSD/xen”

  1. have you ever encounter this problem?

    NetBSD-5# xm list
    /usr/pkg/lib/python2.6/ DeprecationWarning: The xmllib module is obsolete. Use xml.sax instead.
    import xmllib # lazy subclassing (!)
    Name ID Mem VCPUs State Time(s)
    Domain-0 0 256 1 r—– 193.0

    how to get rid of the warning message, although it’s harmless

Leave a Reply

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


This site uses Akismet to reduce spam. Learn how your comment data is processed.