WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Xen dom0 gentoo filesystem

To: Anton Titov <a.titov@xxxxxxx>
Subject: Re: [Xen-users] Xen dom0 gentoo filesystem
From: Ted Hilts <thilts@xxxxxxxxxxxxxxxx>
Date: Fri, 08 Apr 2005 14:43:01 -0600
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 08 Apr 2005 20:37:22 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4256A256.2020109@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (nscd2)
Anton:

Neat!!! I also liked your documentation - it covered a lot of important points.

Thanks for the effort, Ted


Anton Titov wrote:

Hello,

after seeing some discussions about creating a dom0 debian image as a gentoo fan, I've decided to make a gentoo dom0 image, and here it goes:

http://xen.titov.net/gentoo-xen-dom0-i686.tar.bz2
md5sum:
e0304b360d166dfdbc4b4a5ecd4157e2
Instalation instructions:

Boot some LiveCD, gentoo minimal LiveCD is a good choice, as it is only 60Mb:

http://gentoo.mirrors.tds.net/gentoo/releases/x86/2005.0/installcd/install-x86-minimal-2005.0.iso

after booting LiveCD, partition your hard drive (don't make a boot partition) with:
fdisk /dev/YOUR_DRIVE

(optionally, but prefferably) create and activate swap with:
mkswap /dev/YOUR_DRIVES_SWAP
swapon /dev/YOUR_DRIVES_SWAP

create root filesystem with:
mkfs.reiserfs /dev/YOUR_DRIVES_ROOT
or mkfs.ext3 /dev/YOUR_DRIVES_ROOT
or whatever filesystem you prefer (you have kernel support and tools for reiserfs, ext3, ext2, jfs, xfs)

mount this partiton on /mnt/gentoo (yes, exactly there):
mkdir /mnt/gentoo  (you have it if you're with Gentoo LiveCD)
mount /dev/YOUR_DRIVES_ROOT /mnt/gentoo

configure your network (if you have DHCP server in the network, the chances are, that you got an IP from there):
ifconfig IP netmask NETMASK
route add default gw YOUR_GATEWAY
echo "nameserver YOUR_NAMESERVER" > /etc/resolv.conf

then cd into /mnt/gentoo and download gentoo-xen-dom0-i686.tar.bz2:
cd /mnt/gentoo
wget http://xen.titov.net/gentoo-xen-dom0-i686.tar.bz2

extract it with:
tar -xjpf gentoo-xen-dom0-i686.tar.bz2

run
./root/install

it will ask you for root password you want to set to the new dom0 (if you fail to change your password, e.g. press Enter 2 times,
your root will be "rootpass").

if the drive, you're installing on is not the one, from which the computer will boot use:
./root/install /dev/hda

where /dev/hda is the device, where grub will be installed

at this point you're ready ;)

But you may (actually should) want to change some more things:
chroot to the new system with:
chroot /mnt/gentoo

you have vi (symlink to vim) and pico (symlink to nano) editors btw

check if /etc/fstab, /etc/conf.d/net and /etc/resolv.conf files look OK for you.

edit /boot/grub/grub.conf and change dom0_mem, which is 128Mb by default

adjust your timezone with (unless you're in Sofia, Bulgaria):
ln -sf /usr/share/zoneinfo/FIND_YOUR_TIMEZONE /etc/localtime

set the hostname:
echo YOUR_HOSTNAME > /etc/hostname

you can do some more complex stuff here, but if you want to compile something, execute:
env-update
source /etc/profile
before that

now exit
umount
and reboot

/usr/portage/ directory is empty in the image, to save some space, so before installing any gentoo packagesh you should
emerge sync

the following gentoo packages are installed on the server:
sys-fs/lvm2
net-misc/curl
sys-fs/xfsprogs
app-admin/logrotate
sys-fs/jfsutils
net-misc/dhcpcd
sys-kernel/genkernel
sys-process/vixie-cron
app-editors/nano
net-firewall/iptables
sys-apps/coldplug
sys-fs/reiserfsprogs
app-admin/syslog-ng
sys-kernel/linux-headers
sys-apps/iproute2
sys-boot/grub
dev-python/twisted
sys-apps/hotplug
app-editors/vim
sys-libs/glibc

Kernel and binaries are compiled for i686, so it will not run on very old hardware (will run on pentiumpro+, athlon+).

Regards,
Anton Titov
Host.bg

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>