From ae6d2ac70cbf180453b13c8ef705fab5256ff0f3 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Mon, 6 Jun 2011 01:56:37 +0200 Subject: [PATCH] dom0: include xl.conf in qubes-core-dom0 package Disable autoballoon (qmemman will handle it) and specify lock file location writable by user. --- dom0/misc/xl.conf | 11 +++++++++++ rpm_spec/core-dom0.spec | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 dom0/misc/xl.conf diff --git a/dom0/misc/xl.conf b/dom0/misc/xl.conf new file mode 100644 index 00000000..2c461582 --- /dev/null +++ b/dom0/misc/xl.conf @@ -0,0 +1,11 @@ +## Global XL config file ## + +# automatically balloon down dom0 when xen doesn't have enough free +# memory to create a domain +autoballoon=0 + +# full path of the lockfile used by xl during domain creation +lockfile="/var/run/qubes/xl-lock" + +# default vif script +#vifscript="vif-bridge" diff --git a/rpm_spec/core-dom0.spec b/rpm_spec/core-dom0.spec index 1ab2d358..5223a3ca 100644 --- a/rpm_spec/core-dom0.spec +++ b/rpm_spec/core-dom0.spec @@ -123,6 +123,8 @@ mkdir -p $RPM_BUILD_ROOT/etc/sysconfig cp ../common/iptables $RPM_BUILD_ROOT/etc/sysconfig mkdir -p $RPM_BUILD_ROOT/etc/security/limits.d cp misc/limits-qubes.conf $RPM_BUILD_ROOT/etc/security/limits.d/99-qubes.conf +mkdir -p $RPM_BUILD_ROOT/etc/xen/ +cp misc/xl.conf $RPM_BUILD_ROOT/etc/xen/ mkdir -p $RPM_BUILD_ROOT/usr/lib64/pm-utils/sleep.d cp pm-utils/01qubes-sync-vms-clock $RPM_BUILD_ROOT/usr/lib64/pm-utils/sleep.d/ @@ -294,3 +296,4 @@ fi /etc/sudoers.d/qubes /etc/xdg/autostart/qubes-guid.desktop /etc/security/limits.d/99-qubes.conf +/etc/xen/xl.conf