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