Limit Dispvm to 1 vcpu

Because a restored domain with multiple cpus, ehrrm, hardly works,
at least with current Xen+kernel combination.
This commit is contained in:
Rafal Wojtczuk 2011-03-24 16:53:40 +01:00
parent 68ebe12cb1
commit 4401c5a2cb

View File

@ -30,7 +30,9 @@ fi
DVMTMPL="$TEMPLATENAME"-dvm
DVMTMPLDIR="/var/lib/qubes/appvms/$DVMTMPL"
if ! [ -d "$DVMTMPLDIR" ] ; then
if ! qvm-create -t "$TEMPLATENAME" -l gray "$DVMTMPL" ; then exit 1 ; fi
# unfortunately, currently there are reliability issues with save of a domain
# with multiple CPUs
if ! qvm-create --vcpus=1 -t "$TEMPLATENAME" -l gray "$DVMTMPL" ; then exit 1 ; fi
fi
if ! /usr/lib/qubes/qubes_prepare_saved_domain.sh \
"$DVMTMPL" "/var/lib/qubes/appvms/$DVMTMPL/dvm-savefile" $SCRIPTNAME ; then