Xen 
 
Home Products Support Community News
 
   

How to Install Slackware Linux to a DomainU

In domain-0:

Download slackware 10.2 install CD iso 1 and 2 (if you don't have the actual CDs): http://www.slackware.com/getslack/

Download slackware system builder for UML from: http://www.inreto.de/mkuml/mkuml-2004.07.17-ananas.tar.bz2

untar it, it create a "mkuml-2004.07.17" directory

go to this directory and create a new directory called slackware-current:

cd mkuml-2004.07.17 
mkdir slackware-current

mount the install cd's or iso'es and copy everything to slackware-current:

mount -o loop slackware-10.2-install-d1.iso /mnt  #or mount the cdrom! 
cp -rp /mnt/* slackware-current/
umount /mnt
mount -o loop slackware-10.2-install-d2.iso /mnt
\cp -rp /mnt/* slackware-current/
umount /mnt

The following step only applys if you use fedora Core as domain-0:

edit mkuml.sh: 
search for "mke2fs -F -j root_fs"
change it to "mke2fs -F -j -O ^resize_inode root_fs"

Now, run mkuml.sh:

./mkuml.sh slackvm

It will prompt you for network configuration and root password.

After installation finish, you will have a slackware filesystem image, it's under the directory slackvm.

cd slackvm 
mount –o loop root_fs /mnt
edit /mnt/etc/inittab to comment out tty0 and uncomment tty1 (you can uncomment tty2-6 if you like)
edit /mnt/etc/fstab, such as this:
----------------------
/dev/sda1            /            ext3    defaults          1  1
none                 /dev/pts     devpts  gid=5,mode=620    0  0
none                 /proc        proc    defaults          0  0
--------------------------

You may also want to create a empty file modules.dep in /mnt/lib/modules/your_domU_kernel to get rid of some boot warnings. umount /mnt

There you go, create your domU config file and "xm create" it and enjoy your new shining slackware domU!

SlackwareDomU (last edited 2007-10-23 18:12:43 by BramGillemon)