From f9fcd3393e8f0c3b1766e18df33153f355cb6eaf Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 8 Sep 2011 01:19:59 +0200 Subject: [PATCH] dom0: set static-max for dom0 To make 'xl mem-set 0 ' happy. --- dom0/init.d/qubes_core | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dom0/init.d/qubes_core b/dom0/init.d/qubes_core index b6efdf12..419650f0 100755 --- a/dom0/init.d/qubes_core +++ b/dom0/init.d/qubes_core @@ -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