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
34c34
< name = "ExampleDomain"
---
> name = "debian"
64c64
< vif = ['']
---
> vif = ['bridge=bridge0']
75c75
< 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=http://ftp.fr.debian.org/debian
Using config file "./xm-debian.cfg".
Install Mirror: http://ftp.fr.debian.org/debian
Install Suite: lenny
Installer: http://ftp.fr.debian.org/debian/dists/lenny/main/installer-i386/current/images

WARNING: Installer kernel and ramdisk are not authenticated.

Fetching http://ftp.fr.debian.org/debian/dists/lenny/main/installer-i386/current/images/netboot/xen/vmlinuz
Fetching http://ftp.fr.debian.org/debian/dists/lenny/main/installer-i386/current/images/netboot/xen/initrd.gz
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

2 Comments

  • alfie Tue, 27 Dec 2011 11:12:40 +0000 Reply

    have you ever encounter this problem?

    NetBSD-5# xm list
    /usr/pkg/lib/python2.6/
    xmlrpclib.py:612: 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

    • Joel Carnat Mon, 09 Jan 2012 09:28:11 +0000 Reply Author

      I don’t recall having any issue with the VM.
      And I don’t have any domU left to check nowadays.

Leave a Reply

%d bloggers like this: