關於我

我的相片

在此提供一些有關你的資訊,以便其他人確認你是他們要找的Fai。

2006/10/01

XEN 3 working!

Finally made XEN working on my gentoo box.
For record:
1. emerge xen-sources
2. copy using kernel config to .config, then make oldconfig
3. make menuconfig and enable dom0 support, and those backend and frontend drivers
4. make the kernel and modules, install, reboot from that new kernel, but remember to edit grub.conf or menu.lst:
title Gentoo Linux (xen)
root (hd0,1)
kernel (hd0,1)/xen.gz dom0_mem=384M
module (hd0,1)/kernel-genkernel-x86-xen0-2.6.16.28-xen root=/dev/hda5 quiet
5. install xen utilities, start at bootup
6. get some distribution images to test :-)
7. make domU kernel and modules by the same kernel source, but remove dom0 support,
and those backend drivers
8. mount the distribution image, copy the kernel modules for domU into it
7. config the xend for network bridge in /etc/xen/xend-config.sxp:
(network-script network-bridge)
(vif-script vif-bridge)
8. remember to turn on ip forwarding in /proc/sys/net/ipv4/ip_forward
9. umount the distribution image
10. config the distribution config file, eg. for debian 3.1 image:
name = "debian.3-1"
memory = 128
vif = [ 'ip=192.168.0.200' ]
kernel = "/xen-vm/kernels/boot/vmlinuz-2.6.16.8-xenU"
disk = ['file:/xen-vm/debian.3-1.img,sda1,w', 'file:/xen-vm/debian.swap,sda2,w']root = "/dev/sda1 ro"
11. after all, reboot and enjoy :-)