dom0: set static-max for dom0
To make 'xl mem-set 0 <size>' happy.
This commit is contained in:
parent
5e09af2b46
commit
f9fcd3393e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user