direct-io.hg

changeset 10371:47151f27e623

[IA64] README patch of booting xen

Signed-off-by: Yutaka Ezaki <yutaka.ezaki@jp.fujitsu.com>
Signed-off-by: nakato <nakato@soft.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
author awilliam@xenbuild.aw
date Sat Jun 03 14:39:49 2006 -0600 (2006-06-03)
parents 83e4d44e8aec
children 09982b366f93
files xen/arch/ia64/tools/README.xenia64 xen/arch/ia64/tools/README.xenia64linux
line diff
     1.1 --- a/xen/arch/ia64/tools/README.xenia64	Sat Jun 03 14:33:08 2006 -0600
     1.2 +++ b/xen/arch/ia64/tools/README.xenia64	Sat Jun 03 14:39:49 2006 -0600
     1.3 @@ -1,11 +1,95 @@
     1.4 -# Xen/ia64 heavily leverages/reuses many files from Linux/ia64
     1.5 -# however as of August 2005, all of these files are checked
     1.6 -# into the Xen tree so (if you remember doing so in the past)
     1.7 -# there is no need to fetch a copy of linux-2.6.x.tar.gz
     1.8 +# Recipe of Booting up  Xen/dom0/domU on IA64 system
     1.9 +# 06/02/2006 Written by Xen-ia64-devel community.
    1.10 +
    1.11 +My enviroment is;
    1.12 +  Machine  : Tiger4
    1.13 +  Domain0 OS  : RHEL4 U2
    1.14 +  DomainU OS  : RHEL4 U2
    1.15 +
    1.16 +----------------------------
    1.17 +Build xen
    1.18 + 1. Download source
    1.19 +    # hg clone http://xenbits.xensource.com/ext/xen-ia64-unstable.hg
    1.20 +
    1.21 + 2. # make world
    1.22 +
    1.23 + 3. # make install-tools
    1.24 +
    1.25 + 4. copy kernels and xen
    1.26 +    # cp xen/xen.gz /boot/efi/efi/redhat/
    1.27 +    # cp linux-2.6.16.13-xen/vmlinux.gz /boot/efi/efi/redhat/vmlinuz-2.6.16.13-xen
    1.28 +
    1.29 + 5. make initrd for Dom0/DomU
    1.30 +    # cd linux-2.6.16.13-xen/
    1.31 +    # make modules_install
    1.32 +    # mkinitrd -f /boot/efi/efi/redhat/initrd-2.6.16.13-xen.img 2.6.16.13-xen --builtin mptbase --builtin mptscsih
    1.33 +    # cd ..
    1.34 +
    1.35 +---------------------------------
    1.36 +Make OSimg for DomU
    1.37 + 1. make file
    1.38 +    # dd if=/dev/zero of=/root/rhel4.img bs=1M seek=4096 count=0
    1.39 +    # mke2fs -F -j /root/rhel4.img
    1.40 +    # mount -o loop /root/rhel4.img /mnt
    1.41 +    # cp -ax /{dev,var,etc,usr,bin,sbin,lib} /mnt
    1.42 +    # mkdir /mnt/{root,proc,sys,home,tmp}
    1.43 +
    1.44 + 2. modify DomU's fstab
    1.45 +    # vi /mnt/etc/fstab 
    1.46 +       /dev/hda1   /            ext3    defaults        1 1
    1.47 +       none        /dev/pts     devpts  gid=5,mode=620  0 0
    1.48 +       none        /dev/shm     tmpfs   defaults        0 0
    1.49 +       none        /proc        proc    defaults        0 0
    1.50 +       none        /sys         sysfs   defaults        0 0
    1.51  
    1.52 -# build xen/ia64
    1.53 -# if native
    1.54 -make
    1.55 + 3. modify inittab (runlevel)
    1.56 +    # vi /mnt/etc/inittab
    1.57 +       id:3:initdefault:
    1.58 +    
    1.59 + 4. add tty0 into /etc/securetty
    1.60 +    # vi /mnt/etc/securetty (add tty0)
    1.61 + 
    1.62 + 5. umount
    1.63 +    # umount /mnt
    1.64 +    
    1.65 +-------------------------------------
    1.66 +Boot Xen & Domain0
    1.67 + 1. replace elilo
    1.68 +    download from the below
    1.69 +    http://elilo.sourceforge.net/cgi-bin/blosxom
    1.70 +    and copy into /boot/efi/efi/redhat/
    1.71 +    # cp elilo-3.6-ia64.efi /boot/efi/efi/redhat/elilo.efi
    1.72 +    
    1.73 +    
    1.74 + 2. modify elilo.conf (like the below)
    1.75 +    # vi /boot/efi/efi/redhat/elilo.conf
    1.76 +     prompt
    1.77 +     timeout=20
    1.78 +     default=xen
    1.79 +     relocatable
    1.80 +     
    1.81 +     image=vmlinuz-2.6.16.13-xen
    1.82 +             label=xen
    1.83 +             vmm=xen.gz
    1.84 +             initrd=initrd-2.6.16.13-xen.img
    1.85 +             read-only
    1.86 +             append="com2=115200,8n1 console=com2 dom0_mem=1G -- nomca nosmp console=tty0 console=ttyS1,115200,8n1 rhgb root=/dev/sda2"
    1.87  
    1.88 -# or if using cross-compiler
    1.89 -make XEN_TARGET_ARCH=ia64
    1.90 +-------------------------------------
    1.91 +Boot DomainU
    1.92 + 1. make config of DomU
    1.93 +   # vi /etc/xen/rhel4
    1.94 +     kernel = "/boot/efi/efi/redhat/vmlinuz-2.6.16.13-xen"
    1.95 +     ramdisk = "/boot/efi/efi/redhat/initrd-2.6.16.13-xen.img"
    1.96 +     memory = 384
    1.97 +     name = "rhel4"
    1.98 +     disk = [ 'file:/root/rhel4.img,hda1,w' ]
    1.99 +     root = "/dev/hda1 ro"
   1.100 +     extra = "nomca console=tty0 3"
   1.101 + 
   1.102 + 2. After boot xen and dom0, start xend
   1.103 +   # /etc/init.d/xend start
   1.104 +   ( In the debugging case, # XEND_DEBUG=1 xend trace_start )
   1.105 +   
   1.106 + 3. start domU
   1.107 +   # xm create -c rhel4
     2.1 --- a/xen/arch/ia64/tools/README.xenia64linux	Sat Jun 03 14:33:08 2006 -0600
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,24 +0,0 @@
     2.4 -INSTRUCTIONS FOR BUILDING XENLINUX/IA64
     2.5 -
     2.6 -hg clone http://xenbits.xensource.com/ext/xenlinux-ia64-2.6.12.hg
     2.7 -cd linux-2.6.12
     2.8 -cp arch/ia64/configs/xen_zx1_config .config # comment 1
     2.9 -yes "" | make oldconfig
    2.10 -make
    2.11 -
    2.12 -Start Xen from elilo, passing the Linux kernel as an initrd.
    2.13 -
    2.14 -Comments:
    2.15 -1) just about any config file shoule work now, but you will need
    2.16 -   to edit it to ensure that there are no modules
    2.17 -2) CONFIG_IA32_SUPPORT is known to not work
    2.18 -3) if running on ski, it is useful to make the following change:
    2.19 -   a) at the beginning of drivers/acpi/motherboard.c:acpi_reserve_resources()
    2.20 -      add the line:
    2.21 -	if (!acpi_gbl_FADT) return;
    2.22 -4) Build linux.
    2.23 -   a) yes "" | make oldconfig
    2.24 -   b) check the resulting .config to ensure there are no modules used (because
    2.25 -      Xen/ia64 doesn't support them yet).  Change '=m' to '=n' and remake
    2.26 -   c) yes "" | make oldconfig
    2.27 -   d) make