dom0: set static-max for dom0

To make 'xl mem-set 0 <size>' happy.
This commit is contained in:
Marek Marczykowski 2011-09-08 01:19:59 +02:00
parent 5e09af2b46
commit f9fcd3393e

View File

@ -39,6 +39,8 @@ start()
mkdir -p /var/run/xen-hotplug
xenstore-write /local/domain/0/name Domain-0
DOM0_MAXMEM=`/usr/sbin/xl info | grep total_memory | awk '{ print $3 }'`
xenstore-write /local/domain/0/memory/static-max $[ $DOM0_MAXMEM * 1024 ]
xl sched-credit -d 0 -w 512
cp /var/lib/qubes/qubes.xml /var/lib/qubes/backup/qubes-$(date +%F-%T).xml