The archlinux kernel does not start in HVM. Error is Timed out waiting for device /dev/mapper/dmroot. The root volume is not available. The kernel worked in 4.2. Is this a bug or am I missing something?
How to reproduce:
dom0:
qvm-template install --enablerepo=qubes-template-community-testing archlinux
# support landlock: https://forum.qubes-os.org/t/archlinux-update-fail/37949/4
qvm-features boot-mode.kernelopts.landlock 'lsm=landlock'
qvm-features boot-mode.active landlock
qvm-features boot-mode.appvm-default landlock
archlinux:
pacman-key --init
# use testing to include fix for https://github.com/QubesOS/qubes-issues/issues/10564
ln -s --force /etc/pacman.d/85-qubes-current-testing.conf.disabled /etc/pacman.d/90-qubes-current.conf
pacman -Sy archlinux-keyring
pacman -Su --noconfirm linux linux-headers qubes-vm-kernel-support
grub-install /dev/xvda
grub-mkconfig -o /boot/grub/grub.cfg
mkinitcpio -p linux
dom0:
qvm-create -t archlinux -l red test-hvm
qvm-prefs test-hvm virt_mode hvm
qvm-prefs test-hvm maxmem 0
qvm-prefs test-hvm memory 4000
qvm-prefs test-hvm kernel ''
qvm-prefs test-hvm qrexec_timeout 120
/var/log/xen/console/guest-test-hvm.log:
Logfile Opened
.P+q6E616D65.\.[6n.[32766;32766H.[6n.[!p.]104a.[?7h.[1G.[0J.[0;1;39mBooting initrd of .[0m.[38;2;23;147;209mArch Linux.[0m.[0;1;39m..[0m
.]3008;start=e0d60316eead4b59ba8f3be778ef3bf9;user=root;hostname=archlinux;machineid=007adbfd125c41d99316c6e6e5ad03a2;bootid=31006b11ec7d434a87c3dd0201260fa0;pid=1;pidfdid=2;comm=systemd;type=boot.\ Expecting device .[0;1;39m/dev/mapper/dmroot.[0m...
[.[0;32m OK .[0m] Reached target .[0;1;39mPath Units.[0m.
[.[0;32m OK .[0m] Reached target .[0;1;39mSlice Units.[0m.
[.[0;32m OK .[0m] Reached target .[0;1;39mSwaps.[0m.
[.[0;32m OK .[0m] Reached target .[0;1;39mTimer Units.[0m.
[.[0;32m OK .[0m] Listening on .[0;1;39mJournal Socket (/dev/log).[0m.
[.[0;32m OK .[0m] Listening on .[0;1;39mJournal Sockets.[0m.
[.[0;32m OK .[0m] Listening on .[0;1;39mudev Control Socket.[0m.
[.[0;32m OK .[0m] Listening on .[0;1;39mudev Kernel Socket.[0m.
[.[0;32m OK .[0m] Reached target .[0;1;39mSocket Units.[0m.
Starting .[0;1;39mCreate List of Static Device Nodes.[0m...
Starting .[0;1;39mJournal Service.[0m...
Starting .[0;1;39mLoad Kernel Modules.[0m...
Starting .[0;1;39mCreate Static Device Nodes in /dev.[0m...
Starting .[0;1;39mColdplug All udev Devices.[0m...
[.[0;32m OK .[0m] Finished .[0;1;39mCreate List of Static Device Nodes.[0m.
[.[0;32m OK .[0m] Started .[0;1;39mJournal Service.[0m.
[.[0;32m OK .[0m] Finished .[0;1;39mLoad Kernel Modules.[0m.
[.[0;32m OK .[0m] Finished .[0;1;39mCreate Static Device Nodes in /dev.[0m.
[.[0;32m OK .[0m] Reached target .[0;1;39mPreparation for Local File Systems.[0m.
[.[0;32m OK .[0m] Reached target .[0;1;39mLocal File Systems.[0m.
Starting .[0;1;39mCreate System Files and Directories.[0m...
Starting .[0;1;39mRule-based Manager for Device Events and Files.[0m...
[.[0;32m OK .[0m] Finished .[0;1;39mCreate System Files and Directories.[0m.
[.[0;32m OK .[0m] Started .[0;1;39mRule-based Manager for Device Events and Files.[0m.
[.[0;32m OK .[0m] Finished .[0;1;39mColdplug All udev Devices.[0m.
[.[0;32m OK .[0m] Reached target .[0;1;39mSystem Initialization.[0m.
[.[0;32m OK .[0m] Reached target .[0;1;39mBasic System.[0m.
Starting .[0;1;39mVirtual Console Setup.[0m...
[.[0;32m OK .[0m] Finished .[0;1;39mVirtual Console Setup.[0m.
[.[0m.[0;31m* .[0m] A start job is running for /dev/mapper/dmroot (2s / 1min 30s)
.M
.[K[.[0;1;31m*.[0m.[0;31m* .[0m] A start job is running for /dev/mapper/dmroot (3s / 1min 30s)
............................................................................
.M
.[K[ .[0;31m*.[0;1;31m*.[0m.[0;31m* .[0m] A start job is running for /dev/mapper/dmroot (1min 29s / 1min 30s)
.M
.[K[.[0;1;31m TIME .[0m] Timed out waiting for device .[0;1;39m/dev/mapper/dmroot.[0m.
.[K[.[0;1;38:5:185mDEPEND.[0m] Dependency failed for .[0;1;39mInitrd Root Device.[0m.
[.[0;1;38:5:185mDEPEND.[0m] Dependency failed for .[0;1;39m/sysroot.[0m.
[.[0;1;38:5:185mDEPEND.[0m] Dependency failed for .[0;1;39mInitrd Root File System.[0m.
[.[0;1;38:5:185mDEPEND.[0m] Dependency failed for .[0;1;39mFile System Check on /dev/mapper/dmroot.[0m.
[.[0;32m OK .[0m] Stopped target .[0;1;39mBasic System.[0m.
[.[0;32m OK .[0m] Stopped target .[0;1;39mSystem Initialization.[0m.
[.[0;32m OK .[0m] Started .[0;1;39mEmergency Shell.[0m.
[.[0;32m OK .[0m] Reached target .[0;1;39mEmergency Mode.[0m.
[.[0;32m OK .[0m] Reached target .[0;1;39mInitrd File Systems.[0m.
You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, or "exit"
to continue bootup.
Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.
Press Enter to continue.