From 37b30af431e33b631cef3ceb9071f649792c6c50 Mon Sep 17 00:00:00 2001 From: Yukikoo Date: Sun, 22 Mar 2020 08:49:11 +0000 Subject: [PATCH 1/2] Update "installing kernel in Debian VM" fix https://github.com/QubesOS/qubes-issues/issues/5733 Going a bit further, and removing the previous instructions: ~~~ sudo mkdir -p /boot/grub sudo apt install --no-install-recommends linux-image-amd64 linux-headers-amd64 grub2-common qubes-kernel-vm-support sudo update-grub ~~~ The directory "/boot/grub/" already exist on the "Debian Template", and will be created by "grub2" if it doesn't exist (like for the "Debian Minimal Template"). Tested the modification on a qube based on Debian Template, and on a qube based on Debian Minimal Template. Both seems to work correctly. --- user/advanced-configuration/managing-vm-kernel.md | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/user/advanced-configuration/managing-vm-kernel.md b/user/advanced-configuration/managing-vm-kernel.md index 22a2e197..262ac596 100644 --- a/user/advanced-configuration/managing-vm-kernel.md +++ b/user/advanced-configuration/managing-vm-kernel.md @@ -284,23 +284,14 @@ Apply the following instruction in a Debian TemplateVM or in a Debian Standalone Using a distribution kernel package the initramfs and kernel modules should be handled automatically. -Create folder `/boot/grub`. +Install distribution kernel image, kernel headers and the grub. ~~~ -sudo mkdir -p /boot/grub +sudo apt install linux-image-amd64 linux-headers-amd64 grub2 qubes-kernel-vm-support ~~~ -Install distribution kernel image, kernel headers and the grub configuration generator. +If you are doing that on a qube based on "Debian Minimal" template, a grub gui will popup during the installation, asking you where you want to install the grub loader. You must select /dev/xvda (check the box using the "Spacebar", and validate your choice with "Enter".) -~~~ -sudo apt install --no-install-recommends linux-image-amd64 linux-headers-amd64 grub2-common qubes-kernel-vm-support -~~~ - -Generate the grub configuration file. - -~~~ -sudo update-grub -~~~ You can safely ignore this error message: `grub2-probe: error: cannot find a GRUB drive for /dev/mapper/dmroot. Check your device.map` From de49b644d3d48fd9b3f3b973f63080e465b92d1d Mon Sep 17 00:00:00 2001 From: Yukikoo Date: Sun, 22 Mar 2020 09:35:51 +0000 Subject: [PATCH 2/2] Spelling check fix --- user/advanced-configuration/managing-vm-kernel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/advanced-configuration/managing-vm-kernel.md b/user/advanced-configuration/managing-vm-kernel.md index 262ac596..7631a77a 100644 --- a/user/advanced-configuration/managing-vm-kernel.md +++ b/user/advanced-configuration/managing-vm-kernel.md @@ -290,7 +290,7 @@ Install distribution kernel image, kernel headers and the grub. sudo apt install linux-image-amd64 linux-headers-amd64 grub2 qubes-kernel-vm-support ~~~ -If you are doing that on a qube based on "Debian Minimal" template, a grub gui will popup during the installation, asking you where you want to install the grub loader. You must select /dev/xvda (check the box using the "Spacebar", and validate your choice with "Enter".) +If you are doing that on a qube based on "Debian Minimal" template, a grub gui will popup during the installation, asking you where you want to install the grub loader. You must select /dev/xvda (check the box using the space bar, and validate your choice with "Enter".) You can safely ignore this error message: