whonix-xfce-desktop-config /usr/share/livecheck/livecheck.sh is using:
if grep -qs "boot=live" /proc/cmdline; then
Which boot options should we look for?
should we invent one? nooops why not…
are there other boot options usually used for recovery when we should opt-in not setting kernel.panic_on_oops=1 such as recovery, single (these are from Ubuntu, do these work with Debian too?) Know any Debian boot options usually used for recovery?
The kernel oops message. By parsing dmesg line by line I would hope we can find a common pattern which is easy to parse.
It can allow you to fix certain things without having to boot directly into the machine. e.g. if you’ve enabled kernel.panic_on_oops=1 and get kernel panics on boot, you can chroot to fix it.
Not required. KVM does not depentd on “guest additions” to share files. Rather the shared folder 9p protocol is a module in the guest kernel that is compatible with a filesystem device added on the host.
For completion the guestfs tool is the main and safe(ish) way to mount qcow2
I say safeish because while it does implement Apparmor protections to the processes that interact with the guest file system it is not as theoretically safe as shared folder used directly.
dmesg can filter out the logs based on priority. Running dmesg -l emerg gives you emergency logs. This will make it much easier to check for kernel oopses.