[Ovirt-devel] [PATCH appliance] Create cobbler system entries for fake nodes with custom kopts

Perry Myers pmyers at redhat.com
Sun Sep 21 06:46:37 UTC 2008


node3 is created with ovirt_init=scsi causing the supplied 128MB
disk to be used for config info

node4 is created with ovirt_init=scsi and ovirt_local_boot
installing the node itself on the local disk.  To fully test
local boot the node configuration needs to be reset to boot
hd instead of net.

node5 is left alone for pxe boot with no local storage

One liner to toggle boot type for a domain:

OUT=$(mktemp) && virsh dumpxml node4 \
  | sed "s/boot dev='.*'/boot dev='hd'/" > $OUT \
  && virsh define $OUT ; rm -f $OUT

Signed-off-by: Perry Myers <pmyers at redhat.com>
---
 ovirt-appliance.ks |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ovirt-appliance.ks b/ovirt-appliance.ks
index ebaaba2..7680c83 100644
--- a/ovirt-appliance.ks
+++ b/ovirt-appliance.ks
@@ -121,9 +121,9 @@ cobbler distro add --name="oVirt-Node-$arch" --arch=$arch \
   --kopts="rootflags=loop root=/ovirt-node-image.iso rootfstype=iso9660 ro console=ttyS0,115200n8 console=tty0"
 cobbler profile add --name=oVirt-Node-$arch --distro=oVirt-Node-$arch
 cobbler system add --netboot-enabled=1 --profile=oVirt-Node-$arch \
-  --name=node3 --mac=00:16:3e:12:34:57
+  --name=node3 --mac=00:16:3e:12:34:57 --kopts="ovirt_init=scsi"
 cobbler system add --netboot-enabled=1 --profile=oVirt-Node-$arch \
-  --name=node4 --mac=00:16:3e:12:34:58
+  --name=node4 --mac=00:16:3e:12:34:58 --kopts="ovirt_init=scsi ovirt_local_boot"
 cobbler system add --netboot-enabled=1 --profile=oVirt-Node-$arch \
   --name=node5 --mac=00:16:3e:12:34:59
 set +x
-- 
1.5.5.1




More information about the ovirt-devel mailing list