[Lxm-commits-diff] SF.net SVN: lxm:[11] kvm-based/trunk
Status: Beta
Brought to you by:
outchy
|
From: <ou...@us...> - 2009-09-21 20:54:22
|
Revision: 11
http://lxm.svn.sourceforge.net/lxm/?rev=11&view=rev
Author: outchy
Date: 2009-09-21 20:54:15 +0000 (Mon, 21 Sep 2009)
Log Message:
-----------
new command line options -runas, -chroot, -mem-path, -mem-prealloc.
Modified Paths:
--------------
kvm-based/trunk/bash_scripts/kvm-start
kvm-based/trunk/gdm/Sessions/sample.desktop
Modified: kvm-based/trunk/bash_scripts/kvm-start
===================================================================
--- kvm-based/trunk/bash_scripts/kvm-start 2009-07-14 09:18:12 UTC (rev 10)
+++ kvm-based/trunk/bash_scripts/kvm-start 2009-09-21 20:54:15 UTC (rev 11)
@@ -56,6 +56,29 @@
KVM="$KVM -m $KVM_MEM"
fi
+KVM_MEM_PATH=`ini_get_value "KVM" "kvmmempath"`
+if [ -n "$KVM_MEM_PATH" ]; then
+ KVM="$KVM -mem-path $KVM_MEM_PATH"
+fi
+
+KVM_MEM_PREALLOC=`ini_get_value "KVM" "kvmmemprealloc"`
+if [ "$KVM_MEM_PREALLOC" = "1" ]; then
+ KVM_MEM_PREALLOC="on"
+fi
+if [ "$KVM_MEM_PREALLOC" = "on" ]; then
+ KVM="$KVM -mem-prealloc"
+fi
+
+KVM_CHROOT=`ini_get_value "KVM" "kvmchroot"`
+if [ -n "$KVM_CHROOT" ]; then
+ KVM="$KVM -chroot $KVM_CHROOT"
+fi
+
+KVM_RUNAS=`ini_get_value "KVM" "kvmrunas"`
+if [ -n "$KVM_RUNAS" ]; then
+ KVM="$KVM -runas $KVM_RUNAS"
+fi
+
INDEX=0
while true; do
KVM_DISK_FILE=`ini_get_value "KVM" "kvmdiskfile$INDEX"`
Modified: kvm-based/trunk/gdm/Sessions/sample.desktop
===================================================================
--- kvm-based/trunk/gdm/Sessions/sample.desktop 2009-07-14 09:18:12 UTC (rev 10)
+++ kvm-based/trunk/gdm/Sessions/sample.desktop 2009-09-21 20:54:15 UTC (rev 11)
@@ -14,8 +14,16 @@
# CPU count
kvmsmp=1
+# user name
+kvmrunas=username
+
+# new root
+kvmchroot=/path/to/root
+
# Initial memory allocation (in megabytes)
kvmmem=512
+kvmmemprealloc=on
+kvmmempath=/path/to/file
# physical drives
kvmdiskfile0=/path/to/file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|