*Starting the kqemu patch module (if installed )
authorMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 12 Feb 2008 15:59:15 +0000 (15:59 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 12 Feb 2008 15:59:15 +0000 (15:59 +0000)
*Fix the hard disk size and memory extention for the Qemu emulated nodes.

system/template-Qemu/env-qemu
system/template-Qemu/start-qemu-node

index f66a348..4659eb2 100755 (executable)
@@ -36,6 +36,9 @@ start () {
     echo "Starting the udev ..."
     /sbin/udevd restart
     #Loding the tun/tap model
+    echo "Loading the kqemu patch module ..."
+    modprobe kqemu
+    #Loding the tun/tap model
     echo "Loading the tun module ..."
     modprobe tun
     set $(lsmod | grep tun) >/dev/null
index 40692b1..1db1117 100755 (executable)
@@ -18,7 +18,7 @@ FILENAME=hda_5.raw
 HDA=~/${NODE_DIR}/${FILENAME}; 
 
 # qemu parameters
-RAM=320;
+RAM=520;
 TAP="tap,script=$SCRIPT";
 #check for the creation of new HDA
 if [ -e "$HDA" ]; then
@@ -28,7 +28,7 @@ fi
 #Creating new HDA
 echo "Creating hard disk for Qemu install under $HDA"
 cd ~/$NODE_DIR
-set $(qemu-img create $FILENAME 5G)
+set $(qemu-img create $FILENAME 10G)
 if [ -z "$1" ];then
        echo "Can't Create disk image..."
        exit 1