direct-io.hg

view tools/domain_builder/newdom @ 239:6e72ef415573

bitkeeper revision 1.97 (3e5a5dbcRcV73TYDcXAlNFfJfUqd9g)

.del-hypervisor-ifs~6f8a72aef886cac9:
Delete: xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor-ifs
author kaf24@labyrinth.cl.cam.ac.uk
date Mon Feb 24 18:00:28 2003 +0000 (2003-02-24)
parents a9945f054eb9
children 022e38b46294 497998a019d8
line source
1 #!/bin/sh
3 # newdom <size> <image> <ip> <root details>
4 # newdom 262144 ../../../xenolinux-2.4.16-kdb/arch/xeno/boot/image 128.232.35.240 root=/dev/nfs nfsroot=/usr/groups/srgboot/xxx/roots/root0
5 # newdom 262144 ../../../xenolinux-2.4.16-kdb/arch/xeno/boot/image 128.232.35.240 root=/dev/xhda7
8 VIFINIT=./vifinit
9 DOM_BUILDER=./domain_builder
11 SIZE=${1:?"size missing"}
12 IMAGE=${2:?"image missing"}
13 IP=${3:?"IP missing"}
15 shift; shift; shift
17 echo ARGS $*
19 $DOM_BUILDER $SIZE $IMAGE 1 ro ip=$IP:128.232.32.20:128.232.32.1:255.255.240.0::eth0:off $*
20 DOM=$?
22 echo DOM= $DOM
24 VIF=`cat /proc/xeno/dom$DOM/vif`
26 echo VIF= $VIF
28 $VIFINIT $VIF $IP