Skip to contentSkip to conversation

documentation: update guidance for runqemu

PATCH New Joe MacDonald 1 participant 1 message Sep 24, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 documentation: update guidance for runqemu

Testing SELinux on QEMU occasionally results in OOM conditions during a relabel from time to time. Update the documentation to warn about this and suggest a way to avoid the situation.

---
 SELinux-FAQ |    8 ++++++++
 1 file changed, 8 insertions(+)
SELinux-FAQ +8 -0
index 5894626..b6a0df9 100644
@@ -111,6 +111,14 @@ For example, when you are using qemu targets,
 
   $ runqemu qemumips core-image-selinux ext3 nographic bootparams="selinux=0"
 
+The initial filesystem relabel step requires considerable memory and can result
+in unexpected, sometimes impossible to reproduce, failures if an OOM condition
+occurs while it is in progress.  Therefore you should consider allocating at a
+minimum 512MB of RAM to your qemu image.  1GB or more is recommended.  This is
+accomplished by adding qemuparams="-m 1024" to your runqemu options.
+
+The defaults for various platforms vary, though it is usually around 256MB.
+
 3.2 - How do I turn enforcing mode on/off?
 
 You can specify the SELinux mode in /etc/selinux/config.
Signature · 1 line
1.7.10.4