ia64/xen-unstable

view xen/arch/ia64/tools/README.xenia64 @ 16608:19c2b6d2930c

[IA64] Update README.xenia64

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author Alex Williamson <alex.williamson@hp.com>
date Thu Dec 13 09:34:49 2007 -0700 (2007-12-13)
parents 47151f27e623
children
line source
1 # Recipe of Booting up Xen/dom0/domU on IA64 system
2 # 06/02/2006 Written by Xen-ia64-devel community.
4 My enviroment is;
5 Machine : Tiger4
6 Domain0 OS : RHEL4 U2
7 DomainU OS : RHEL4 U2
9 ----------------------------
10 Build xen
11 1. Download source
12 # hg clone http://xenbits.xensource.com/ext/ia64/xen-unstable.hg
13 # cd xen-unstable.hg
14 # hg clone http://xenbits.xensource.com/ext/ia64/linux-2.6.18-xen.hg
16 2. # make world
18 3. # make install-tools
20 4. copy kernels and xen
21 # cp xen/xen.gz /boot/efi/efi/redhat/
22 # cp build-linux-2.6.18-xen_ia64/vmlinux.gz /boot/efi/efi/redhat/vmlinuz-2.6.18.8-xen
24 5. make initrd for Dom0/DomU
25 # make -C linux-2.6.18-xen.hg ARCH=ia64 modules_install O=$(/bin/pwd)/build-linux-2.6.18-xen_ia64
26 # mkinitrd -f /boot/efi/efi/redhat/initrd-2.6.18.8-xen.img 2.6.18.8-xen --builtin mptbase --builtin mptscsih
28 ---------------------------------
29 Make OSimg for DomU
30 1. make file
31 # dd if=/dev/zero of=/root/rhel4.img bs=1M seek=4096 count=0
32 # mke2fs -F -j /root/rhel4.img
33 # mount -o loop /root/rhel4.img /mnt
34 # cp -ax /{dev,var,etc,usr,bin,sbin,lib} /mnt
35 # mkdir /mnt/{root,proc,sys,home,tmp}
37 2. modify DomU's fstab
38 # vi /mnt/etc/fstab
39 /dev/xvda1 / ext3 defaults 1 1
40 none /dev/pts devpts gid=5,mode=620 0 0
41 none /dev/shm tmpfs defaults 0 0
42 none /proc proc defaults 0 0
43 none /sys sysfs defaults 0 0
45 3. modify inittab
46 set runlevel to 3 to avoid X trying to start
47 # vi /mnt/etc/inittab
48 id:3:initdefault:
49 Start a getty on the xvc0 console
50 X0:2345:respawn:/sbin/mingetty xvc0
51 tty1-6 mingetty can be commented out
53 4. add xvc0 into /etc/securetty
54 # vi /mnt/etc/securetty (add xvc0)
56 5. umount
57 # umount /mnt
59 -------------------------------------
60 Boot Xen & Domain0
61 1. replace elilo
62 download from the below
63 http://elilo.sourceforge.net/cgi-bin/blosxom
64 and copy into /boot/efi/efi/redhat/
65 # cp elilo-3.6-ia64.efi /boot/efi/efi/redhat/elilo.efi
68 2. modify elilo.conf (like the below)
69 # vi /boot/efi/efi/redhat/elilo.conf
70 prompt
71 timeout=20
72 default=xen
73 relocatable
75 image=vmlinuz-2.6.18.8-xen
76 label=xen
77 vmm=xen.gz
78 initrd=initrd-2.6.18.8-xen.img
79 read-only
80 append=" -- rhgb root=/dev/sda2"
82 -------------------------------------
83 Boot DomainU
84 1. make config of DomU
85 # vi /etc/xen/rhel4
86 kernel = "/boot/efi/efi/redhat/vmlinuz-2.6.18.8-xen"
87 ramdisk = "/boot/efi/efi/redhat/initrd-2.6.18.8-xen.img"
88 memory = 384
89 name = "rhel4"
90 disk = [ 'file:/root/rhel4.img,xvda1,w' ]
91 root = "/dev/xvda1 ro"
93 2. After boot xen and dom0, start xend
94 # /etc/init.d/xend start
95 ( In the debugging case, # XEND_DEBUG=1 xend trace_start )
97 3. start domU
98 # xm create -c rhel4