From afa78902d795035704415df83b85be305e9e7b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Sun, 24 Feb 2019 19:01:26 +0100 Subject: [PATCH] Added info on using qvm-prefs to change kernelopts Fixes the lack-of-documentation issue described in QubesOS/qubes-issues#4797 --- configuration/managing-vm-kernel.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configuration/managing-vm-kernel.md b/configuration/managing-vm-kernel.md index 60ab50f1..ab0c9665 100644 --- a/configuration/managing-vm-kernel.md +++ b/configuration/managing-vm-kernel.md @@ -11,8 +11,8 @@ VM kernel managed by dom0 By default, VMs kernels are provided by dom0. This means that: -1. You can select the kernel version in VM settings; -2. You can modify kernel options in VM settings; +1. You can select the kernel version (using GUI VM Settings tool or `qvm-prefs` commandline tool); +2. You can modify kernel options (using `qvm-prefs` commandline tool); 3. You can **not** modify any of the above from inside a VM; 4. Installing additional kernel modules is cumbersome. @@ -48,6 +48,14 @@ updatevm : sys-firewall [user@dom0 ~]$ qubes-prefs -s default-kernel 3.19.fc20 ~~~ +To view kernel options, you can use the GUI VM Settings tool; to view and change them, use `qvm-prefs` commandline tool: + +~~~ +[user@dom0 ~]$ qvm-prefs -g work kernelopts +nopat +[user@dom0 ~]$ qvm-prefs -s work kernelopts "nopat apparmor=1 security=apparmor" +~~~ + Installing different kernel using Qubes kernel package ----------------------------------