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
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!