[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] README patch of booting xen
# HG changeset patch # User awilliam@xxxxxxxxxxx # Node ID 47151f27e623e2a3aae35683e151002d42c28740 # Parent 83e4d44e8aecf492f09873452ae3359644f40043 [IA64] README patch of booting xen Signed-off-by: Yutaka Ezaki <yutaka.ezaki@xxxxxxxxxxxxxx> Signed-off-by: nakato <nakato@xxxxxxxxxxxxxxxx> Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> --- xen/arch/ia64/tools/README.xenia64linux | 24 ------- xen/arch/ia64/tools/README.xenia64 | 102 +++++++++++++++++++++++++++++--- 2 files changed, 93 insertions(+), 33 deletions(-) diff -r 83e4d44e8aec -r 47151f27e623 xen/arch/ia64/tools/README.xenia64 --- a/xen/arch/ia64/tools/README.xenia64 Sat Jun 03 14:33:08 2006 -0600 +++ b/xen/arch/ia64/tools/README.xenia64 Sat Jun 03 14:39:49 2006 -0600 @@ -1,11 +1,95 @@ -# Xen/ia64 heavily leverages/reuses many files from Linux/ia64 -# however as of August 2005, all of these files are checked -# into the Xen tree so (if you remember doing so in the past) -# there is no need to fetch a copy of linux-2.6.x.tar.gz +# Recipe of Booting up Xen/dom0/domU on IA64 system +# 06/02/2006 Written by Xen-ia64-devel community. -# build xen/ia64 -# if native -make +My enviroment is; + Machine : Tiger4 + Domain0 OS : RHEL4 U2 + DomainU OS : RHEL4 U2 -# or if using cross-compiler -make XEN_TARGET_ARCH=ia64 +---------------------------- +Build xen + 1. Download source + # hg clone http://xenbits.xensource.com/ext/xen-ia64-unstable.hg + + 2. # make world + + 3. # make install-tools + + 4. copy kernels and xen + # cp xen/xen.gz /boot/efi/efi/redhat/ + # cp linux-2.6.16.13-xen/vmlinux.gz /boot/efi/efi/redhat/vmlinuz-2.6.16.13-xen + + 5. make initrd for Dom0/DomU + # cd linux-2.6.16.13-xen/ + # make modules_install + # mkinitrd -f /boot/efi/efi/redhat/initrd-2.6.16.13-xen.img 2.6.16.13-xen --builtin mptbase --builtin mptscsih + # cd .. + +--------------------------------- +Make OSimg for DomU + 1. make file + # dd if=/dev/zero of=/root/rhel4.img bs=1M seek=4096 count=0 + # mke2fs -F -j /root/rhel4.img + # mount -o loop /root/rhel4.img /mnt + # cp -ax /{dev,var,etc,usr,bin,sbin,lib} /mnt + # mkdir /mnt/{root,proc,sys,home,tmp} + + 2. modify DomU's fstab + # vi /mnt/etc/fstab + /dev/hda1 / ext3 defaults 1 1 + none /dev/pts devpts gid=5,mode=620 0 0 + none /dev/shm tmpfs defaults 0 0 + none /proc proc defaults 0 0 + none /sys sysfs defaults 0 0 + + 3. modify inittab (runlevel) + # vi /mnt/etc/inittab + id:3:initdefault: + + 4. add tty0 into /etc/securetty + # vi /mnt/etc/securetty (add tty0) + + 5. umount + # umount /mnt + +------------------------------------- +Boot Xen & Domain0 + 1. replace elilo + download from the below + http://elilo.sourceforge.net/cgi-bin/blosxom + and copy into /boot/efi/efi/redhat/ + # cp elilo-3.6-ia64.efi /boot/efi/efi/redhat/elilo.efi + + + 2. modify elilo.conf (like the below) + # vi /boot/efi/efi/redhat/elilo.conf + prompt + timeout=20 + default=xen + relocatable + + image=vmlinuz-2.6.16.13-xen + label=xen + vmm=xen.gz + initrd=initrd-2.6.16.13-xen.img + read-only + append="com2=115200,8n1 console=com2 dom0_mem=1G -- nomca nosmp console=tty0 console=ttyS1,115200,8n1 rhgb root=/dev/sda2" + +------------------------------------- +Boot DomainU + 1. make config of DomU + # vi /etc/xen/rhel4 + kernel = "/boot/efi/efi/redhat/vmlinuz-2.6.16.13-xen" + ramdisk = "/boot/efi/efi/redhat/initrd-2.6.16.13-xen.img" + memory = 384 + name = "rhel4" + disk = [ 'file:/root/rhel4.img,hda1,w' ] + root = "/dev/hda1 ro" + extra = "nomca console=tty0 3" + + 2. After boot xen and dom0, start xend + # /etc/init.d/xend start + ( In the debugging case, # XEND_DEBUG=1 xend trace_start ) + + 3. start domU + # xm create -c rhel4 diff -r 83e4d44e8aec -r 47151f27e623 xen/arch/ia64/tools/README.xenia64linux --- a/xen/arch/ia64/tools/README.xenia64linux Sat Jun 03 14:33:08 2006 -0600 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -INSTRUCTIONS FOR BUILDING XENLINUX/IA64 - -hg clone http://xenbits.xensource.com/ext/xenlinux-ia64-2.6.12.hg -cd linux-2.6.12 -cp arch/ia64/configs/xen_zx1_config .config # comment 1 -yes "" | make oldconfig -make - -Start Xen from elilo, passing the Linux kernel as an initrd. - -Comments: -1) just about any config file shoule work now, but you will need - to edit it to ensure that there are no modules -2) CONFIG_IA32_SUPPORT is known to not work -3) if running on ski, it is useful to make the following change: - a) at the beginning of drivers/acpi/motherboard.c:acpi_reserve_resources() - add the line: - if (!acpi_gbl_FADT) return; -4) Build linux. - a) yes "" | make oldconfig - b) check the resulting .config to ensure there are no modules used (because - Xen/ia64 doesn't support them yet). Change '=m' to '=n' and remake - c) yes "" | make oldconfig - d) make _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |