summaryrefslogtreecommitdiffstats
authorRaghavendra D Prabhu <[email protected]>2011-07-23 19:44:37 (GMT)
committer Raghavendra D Prabhu <[email protected]>2011-07-23 19:44:37 (GMT)
commit7049258b951044e18e2e1c29e4afbb568f75a7b1 (patch) (side-by-side diff)
tree637802e25bb4dff8b30000df0d1791108e93b60c
parentd4f519ffe7c7e9bdae704fcdc30d3e2a1cfb49dc (diff)
downloadScripts-7049258b951044e18e2e1c29e4afbb568f75a7b1.zip
Scripts-7049258b951044e18e2e1c29e4afbb568f75a7b1.tar.gz
Scripts-7049258b951044e18e2e1c29e4afbb568f75a7b1.tar.bz2
Scripts updateHEADmaster
Diffstat (more/less context) (show whitespace changes)
-rwxr-xr-xarchievm15
1 files changed, 1 insertions, 14 deletions
diff --git a/archievm b/archievm
index c20b6c2..b37600d 100755
--- a/archievm
+++ b/archievm
@@ -1,8 +1,5 @@
#!/bin/zsh
-#[[ ! $(whoami) == 'root' ]] && exit 1
-#sudo modprobe -a -v kvm kvm_intel virtio virtio_pci virtio_balloon virtio_blk virtio_net virtio_console virtio_rng 9pnet_virtio
-#sudo modprobe -a -v kvm kvm_intel nbd
lsmod | grep -q kvm_intel || {
sudo modprobe -a -v kvm kvm_intel
}
@@ -18,7 +15,6 @@ DIR="/home/raghavendra/Arch/qemu"
bzImage="$DIR/kvmImage"
image="/media/Sparowes/Virt/Archie.img"
soutput=1
-#append="root=/dev/vda3"
typeset -A args
args=(d debugk c console n nographic g huge I bzImage t test s soutput)
@@ -64,9 +60,7 @@ fi
if [[ $huge == 1 && $test == 0 ]];then
echo 148 | sudo tee /proc/sys/vm/nr_hugepages
- #hugearg=" -mem-path /media/hugepages -mem-prealloc "
hugearg=" -mem-path /media/hugepages "
- #hugearg=" -mem-path /media/hugepages "
fi
if [[ $nographic == 1 ]];then
@@ -93,17 +87,12 @@ cmdline="qemu-kvm -name Archie -enable-kvm -s -monitor unix:$DIR/archie.sock,ser
-virtfs local,path=/media/Corona/bldit/.gcov,security_model=none,mount_tag=gcov \
$external -runas $runas $=EARGS"
-#echo "$cmdline"
-#exit
-eval $=cmdline
+eval $=cmdline || exit 12
if [[ $ksm == 1 ]];then
echo 1 | sudo tee /sys/kernel/mm/ksm/run
fi
-#sleep 5
-#sudo -u $runas sshfs -p 2222 [email protected]:/ /mnt-qemu
sshfs -p 2222 [email protected]:/home/raghu/gcov /media/Corona/bldit/.gcov
-#rlwrap -pgreen socat - $DIR/archie.sock
if [[ $console == 1 ]];then
rlwrap socat - $DIR/archie.sock
else
@@ -111,6 +100,4 @@ else
ssh -p 2222 [email protected]
fi
fi
-#qemu-kvm -name Archie -enable-kvm -m 512 -snapshot -drive file=/media/Inkq/Virt/Archie.img,if=virtio -vga std -kernel ~/Arch/qemu/kvmImage -initrd /boot/kernel26.img -append root=/dev/vda3
-#qemu-kvm -name Archie -enable-kvm -m 512 -snapshot -hda /media/Inkq/Virt/Archie.img -vga std -kernel ~/Arch/qemu/kvmImage -initrd /boot/kernel26-wye.img -append "root=/dev/sda3 console=ttyS0 earlyprintk=serial,ttyS0" -serial file:/tmp/x.log#