aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-04-20 17:58:52 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-04-20 17:58:52 -0400
commitb8eabc2469af937cf5475c373761f21388281eda (patch)
treee65dc1b2f5bf55268214b3ecbd1d3a59d14bf38b
parent9bce9a89af88ab15ba60c98d1d2454bc67d7aa6a (diff)
downloadkvm-manager-b8eabc2469af937cf5475c373761f21388281eda.tar.gz
kvm-manager-b8eabc2469af937cf5475c373761f21388281eda.tar.bz2
allow configuration of the number of CPUs via the SMP environment variable
-rwxr-xr-xkvm-manager2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-manager b/kvm-manager
index 2cbff97..c92764c 100755
--- a/kvm-manager
+++ b/kvm-manager
@@ -59,7 +59,7 @@ up() {
chpst -u "$OWNER" mv "$LOGNAME" "$LOGNAME".$(date +%F_%T%z|tr : .)
fi
- exec chpst -u "$OWNER:$OWNERGROUP:kvm" /usr/bin/screen -D -m -L -c /etc/screenrc.kvm-manager -S "$VMNAME" -t "$VMNAME" -s /bin/false /usr/bin/kvm $KVMARGS -nographic -name "$VMNAME" -m "$RAM" -net nic,"macaddr=$MAC" -net "tap,ifname=$TAP,script=no,downscript=no" -no-reboot
+ exec chpst -u "$OWNER:$OWNERGROUP:kvm" /usr/bin/screen -D -m -L -c /etc/screenrc.kvm-manager -S "$VMNAME" -t "$VMNAME" -s /bin/false /usr/bin/kvm $KVMARGS -nographic -name "$VMNAME" -m "$RAM" -smp "${SMP:-1},maxcpus=${MAXCPUS:-8}" -net nic,"macaddr=$MAC" -net "tap,ifname=$TAP,script=no,downscript=no" -no-reboot
}