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
|