|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] Boot steps for DomainU
People are asking how to boot DomainU, so here is --
1. Follow
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00362
.html to build the Xen and Domain0/U binary
2. Follow DomainU image creation steps described bellow
3. Create boot config file for DomainU
4. Follow DomainU boot steps bellow
-Fred
=================
DomainU image creation steps
1. make file
# dd if=/dev/zero of=/root/rhel4.img bs=1M count=4096
# 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 and tty)
# vi /mnt/etc/inittab
id:3:initdefault:
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty0<<<<<<<add this line
2:2345:respawn:/sbin/mingetty tty1
3:2345:respawn:/sbin/mingetty tty2
4:2345:respawn:/sbin/mingetty tty3
5:2345:respawn:/sbin/mingetty tty4
6:2345:respawn:/sbin/mingetty tty5
7:2345:respawn:/sbin/mingetty tty6
add tty0 into /etc/securetty
# vi /mnt/etc/securetty (add tty0)<<<<<<<<add this line
umount
# umount /mnt
===================
DomainU Config file
# vi /etc/xen/xmexample
kernel = "/boot/vmlinux-2.6.12-xenU"
memory = 256
name = "rhel4"
nics=0
disk = [ 'file:/root/rhel4.img,hda1,w' ]
root = "/dev/hda1 ro"
extra = "3"
===================
DomainU Boot Steps
1. After booting Xen with Domain0 XenLinux from
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-03/msg00362
.html
2. xend start
3. Start DomainU by
xm create -c /etc/xen/xmexample
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-ia64-devel] Boot steps for DomainU,
Yang, Fred <=
|
|
|
|
|