I've just updated the Kernel inside of the Debian Template of Qubes OS, to the 4.9.2 version and now, the virtual machine can't start.I followed the Official Procedure (https://www.qubes-os.org/doc/managing-vm-kernel/#using-kernel-installed-in-the-vm):I installed grub2-xen in dom0I installed qubes-kernel-vm-support, kernel-package and grub2-common inside the Template VMI downloaded the Debian Kernel Sources (4.9.2)I ran make menuconfig and activate all virtualization and xen support, mantaining the related configs present in the dom0 KernelI created a Kernel .deb packages with make-kpkg --initrd -- linux-headers linux-image and I installed themI update the GRUB2 with update-grubI set pvgrub2 as Kernel in Qubes VM ManagerThe machine manages to boot the VM GRUB2 and the GRUB2 can load the Kernel and the initramfs.The initramfs can mount root, but can't complete init and the console remains in the BysyBox shell.Console Logs:...Loading, please wait...error getting socket: Function not implementederror initializing udev control socketerror initializing udev control socketBegin: Loading essential drivers ... done.Begin: Running /scripts/init-premount ... done.Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: Waiting for /dev/xvda* devices... ... done.Begin: Qubes: Doing R/W setup for TemplateVM... ... [    1.402524]  xvdc: xvdc1Partition #1 contains a swap signature.[    1.404605]  xvdc: xvdc1Setting up swapspace version 1, size = 1073737728 bytesUUID=ae1bbd47-1b98-4502-818a-ac18b6ccbc73[    1.415272] dmsetup (687) used greatest stack depth: 13688 bytes leftdone.done.Begin: Running /scripts/local-premount ... done.error getting socket: Function not implementedBegin: Will now check root file system ... fsck from util-linux 2.29.1[/sbin/fsck.ext4 (1) -- /dev/mapper/dmroot] fsck.ext4 -a -C0 /dev/mapper/dmroot/dev/mapper/dmroot: clean, 453037/655360 files, 2474697/2621440 blocksdone.[    1.468729] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)done.Begin: Running /scripts/local-bottom ... done.Begin: Running /scripts/init-bottom ... error getting socket: Function not implementeddone.[    1.496400] mount (718) used greatest stack depth: 13528 bytes leftrun-init: opening console: No such file or directoryTarget filesystem doesn't have requested /sbin/init.run-init: opening console: No such file or directoryrun-init: opening console: No such file or directoryrun-init: opening console: No such file or directoryrun-init: opening console: No such file or directoryrun-init: opening console: No such file or directoryNo init found. Try passing init= bootarg.BusyBox v1.22.1 (Debian 1:1.22.0-19+b1) built-in shell (ash)Enter 'help' for a list of built-in commands.(initramfs) Console Logs of dom0 standard Main Kernel (works):...Qubes initramfs script here:[    1.245606] random: modprobe: uninitialized urandom read (8 bytes read, 32 bits of entropy available)[    1.295788] blkfront: xvda: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled;[    1.315620] blkfront: xvdb: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled;[    1.334960] blkfront: xvdc: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled;[    1.337682]  xvdc: xvdc1[    1.349600] blkfront: xvdd: barrier or flush: disabled; persistent grants: enabled; indirect descriptors: enabled;Waiting for /dev/xvda* devices...[    1.352154] random: cat: uninitialized urandom read (8 bytes read, 42 bits of entropy available)Qubes: Doing R/W setup for TemplateVM...[    1.354692]  xvdc: xvdc1[    1.354853] random: sfdisk: uninitialized urandom read (4 bytes read, 42 bits of entropy available)[    1.355119]  xvdc: xvdc1[    1.359140] random: mkswap: uninitialized urandom read (8 bytes read, 43 bits of entropy available)Setting up swapspace version 1, size = 1073737728 bytes[    1.359356] random: mkswap: uninitialized urandom read (16 bytes read, 43 bits of entropy available)UUID=c0008a9b-435a-4a78-8760-44d4b5b30503[    1.361784] random: cat: uninitialized urandom read (8 bytes read, 43 bits of entropy available)Qubes: done.[    1.368242] random: modprobe: uninitialized urandom read (8 bytes read, 44 bits of entropy available)modprobe: module ext4 not found in modules.dep[    1.368958] random: mkdir: uninitialized urandom read (8 bytes read, 44 bits of entropy available)[    1.369523] random: mount: uninitialized urandom read (8 bytes read, 44 bits of entropy available)[    1.369795] EXT4-fs (dm-0): couldn't mount as ext3 due to feature incompatibilities[    1.369908] EXT4-fs (dm-0): couldn't mount as ext2 due to feature incompatibilities[    1.371176] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)[    1.371781] random: uname: uninitialized urandom read (8 bytes read, 45 bits of entropy available)Waiting for /dev/xvdd device...[    1.413785] EXT4-fs (xvdd): mounting ext3 file system using the ext4 subsystem[    1.415084] EXT4-fs (xvdd): mounted filesystem with ordered data mode. Opts: (null)[    1.500110] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)[    1.500226] systemd[1]: Detected virtualization 'xen'.[    1.500250] systemd[1]: Detected architecture 'x86-64'.Welcome to .[1mDebian GNU/Linux 8 (jessie).[0m![    1.502095] systemd[1]: No hostname configured.[    1.502137] systemd[1]: Set hostname to <localhost>.[    1.568747] systemd[1]: Found ordering cycle on basic.target/start[    1.568761] systemd[1]: Found dependency on sysinit.target/start[    1.568767] systemd[1]: Found dependency on rpcbind.service/start[    1.568774] systemd[1]: Found dependency on network-online.target/start[    1.568781] systemd[1]: Found dependency on NetworkManager-wait-online.service/start[    1.568788] systemd[1]: Found dependency on basic.target/start[    1.568795] systemd[1]: Breaking ordering cycle by deleting job rpcbind.service/start[    1.568803] systemd[1]: Job rpcbind.service/start deleted to break ordering cycle starting with basic.target/start[.[1;31m SKIP .[0m] Ordering cycle found, skipping LSB: RPC portmapper replacement[    1.569334] systemd[1]: Expecting device dev-hvc0.device...         Expecting device dev-hvc0.device...[    1.569409] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.[    1.569499] systemd[1]: Started Forward Password Requests to Wall Directory Watch.[    1.569519] systemd[1]: Starting Remote File Systems (Pre).[.[32m  OK  .[0m] Reached target Remote File Systems (Pre).[    1.569589] systemd[1]: Reached target Remote File Systems (Pre).[    1.569611] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.[    1.569659] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.[    1.569686] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.[.[32m  OK  .[0m] Set up automount Arbitrary Executable File Formats F...utomount Point.[    1.569829] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.[    1.569850] systemd[1]: Expecting device dev-xvdc1.device...         Expecting device dev-xvdc1.device...[    1.569915] systemd[1]: Starting Root Slice.[.[32m  OK  .[0m] Created slice Root Slice.[    1.569987] systemd[1]: Created slice Root Slice.[    1.570010] systemd[1]: Starting User and Session Slice.[.[32m  OK  .[0m] Created slice User and Session Slice.[    1.570099] systemd[1]: Created slice User and Session Slice.[    1.570114] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.[.[32m  OK  .[0m] Listening on /dev/initctl Compatibility Named Pipe.[    1.570202] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.[    1.570216] systemd[1]: Starting Delayed Shutdown Socket.[.[32m  OK  .[0m] Listening on Delayed Shutdown Socket.[    1.570294] systemd[1]: Listening on Delayed Shutdown Socket.[    1.570308] systemd[1]: Starting Journal Socket (/dev/log).[.[32m  OK  .[0m] Listening on Journal Socket (/dev/log).[    1.570399] systemd[1]: Listening on Journal Socket (/dev/log).[    1.570413] systemd[1]: Starting Device-mapper event daemon FIFOs.[.[32m  OK  .[0m] Listening on Device-mapper event daemon FIFOs.[    1.570497] systemd[1]: Listening on Device-mapper event daemon FIFOs.[    1.570510] systemd[1]: Starting LVM2 metadata daemon socket.[.[32m  OK  .[0m] Listening on LVM2 metadata daemon socket.[    1.570589] systemd[1]: Listening on LVM2 metadata daemon socket.[    1.570605] systemd[1]: Starting udev Control Socket.[.[32m  OK  .[0m] Listening on udev Control Socket.[    1.610804] systemd[1]: Listening on udev Control Socket.[    1.610823] systemd[1]: Starting udev Kernel Socket.[.[32m  OK  .[0m] Listening on udev Kernel Socket.[    1.610909] systemd[1]: Listening on udev Kernel Socket.[    1.610927] systemd[1]: Starting Journal Socket.[.[32m  OK  .[0m] Listening on Journal Socket.[    1.611038] systemd[1]: Listening on Journal Socket.[    1.611063] systemd[1]: Starting System Slice.[.[32m  OK  .[0m] Created slice System Slice.[    1.611146] systemd[1]: Created slice System Slice.[    1.611175] systemd[1]: Mounting Temporary Directory...         Mounting Temporary Directory...[    1.622263] systemd[1]: Starting system-getty.slice.[.[32m  OK  .[0m] Created slice system-getty.slice.[    1.622398] systemd[1]: Created slice system-getty.slice.[    1.622430] systemd[1]: Starting system-serial\x2dgetty.slice.[.[32m  OK  .[0m] Created slice system-serial\x2dgetty.slice.[    1.622532] systemd[1]: Created slice system-serial\x2dgetty.slice.[    1.622558] systemd[1]: Started Collect Read-Ahead Data.[    1.622574] systemd[1]: Started Replay Read-Ahead Data.[    1.622613] systemd[1]: Starting File System Check on Root Device...         Starting File System Check on Root Device...[    1.624374] systemd[1]: Starting Increase datagram queue length...         Starting Increase datagram queue length...[    1.626883] systemd[1]: Starting Device-mapper event daemon...         Starting Device-mapper event daemon...[.[32m  OK  .[0m] Started Device-mapper event daemon.[    1.629651] systemd[1]: Started Device-mapper event daemon.[    1.630814] systemd[1]: Starting Create list of required static device nodes for the current kernel...         Starting Create list of required static device nodes...rrent kernel...[    1.635354] systemd[1]: Starting Load Kernel Modules...         Starting Load Kernel Modules...[    1.637923] systemd[1]: Mounted Huge Pages File System.[    1.638116] systemd[1]: Mounting Debug File System...         Mounting Debug File System...[    1.640522] systemd[1]: Starting udev Coldplug all Devices...         Starting udev Coldplug all Devices...[    1.645483] systemd[1]: Started Set Up Additional Binary Formats.[    1.645550] systemd[1]: Mounting POSIX Message Queue File System...         Mounting POSIX Message Queue File System...[    1.648426] systemd[1]: Starting LSB: NFS support files common to client and server...         Starting LSB: NFS support files common to client and server...[    1.651239] systemd[1]: Starting Slices.[.[32m  OK  .[0m] Reached target Slices.[    1.651309] systemd[1]: Reached target Slices.[.[32m  OK  .[0m] Mounted POSIX Message Queue File System.[    1.652228] systemd[1]: Mounted POSIX Message Queue File System.[.[32m  OK  .[0m] Mounted Debug File System.[    1.652311] systemd[1]: Mounted Debug File System.[.[32m  OK  .[0m] Mounted Temporary Directory.[    1.652390] systemd[1]: Mounted Temporary Directory.[.[32m  OK  .[0m] Started Increase datagram queue length.[    1.652839] systemd[1]: Started Increase datagram queue length.[.[32m  OK  .[0m] Started Create list of required static device nodes ...current kernel.[    1.810949] systemd[1]: Started Create list of required static device nodes for the current kernel.[.[32m  OK  .[0m] Started File System Check on Root Device.[    1.811412] systemd[1]: Started File System Check on Root Device.[.[32m  OK  .[0m] Started LSB: NFS support files common to client and server.[    1.813300] systemd[1]: Started LSB: NFS support files common to client and server.[    1.815325] lp: driver loaded but no devices found[    1.818285] ppdev: user-space parallel port driver[    1.821671] fuse init (API version 7.23)[.[32m  OK  .[0m] Started udev Coldplug all Devices.[    1.822932] systemd[1]: Started udev Coldplug all Devices.[    1.825817] dummy_hcd dummy_hcd.0: USB Host+Gadget Emulator, driver 02 May 2005[    1.825835] dummy_hcd dummy_hcd.0: Dummy host controller[    1.825919] dummy_hcd dummy_hcd.0: new USB bus registered, assigned bus number 1[    1.825978] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002[    1.825987] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1[    1.825999] usb usb1: Product: Dummy host controller[    1.826005] usb usb1: Manufacturer: Linux 4.4.38-11.pvops.qubes.x86_64 dummy_hcd[    1.826027] usb usb1: SerialNumber: dummy_hcd.0[    1.826191] hub 1-0:1.0: USB hub found[    1.826207] hub 1-0:1.0: 1 port detected[.[32m  OK  .[0m] Started Load Kernel Modules.[    1.827366] systemd[1]: Started Load Kernel Modules.[    1.829760] systemd[1]: Starting Qubes DB agent...         Starting Qubes DB agent...[    1.838386] systemd[1]: Mounting Configuration File System...         Mounting Configuration File System...[    1.839676] systemd[1]: Starting Apply Kernel Variables...         Starting Apply Kernel Variables...[    1.840859] systemd[1]: Mounting FUSE Control File System...         Mounting FUSE Control File System...[    1.842067] systemd[1]: Starting udev Wait for Complete Device Initialization...         Starting udev Wait for Complete Device Initialization...[    1.843776] systemd[1]: Starting Create Static Device Nodes in /dev...         Starting Create Static Device Nodes in /dev...[    1.846387] systemd[1]: Starting Syslog Socket.[.[32m  OK  .[0m] Listening on Syslog Socket.[    1.846626] systemd[1]: Listening on Syslog Socket.[    1.846705] systemd[1]: Starting Journal Service...         Starting Journal Service...[.[32m  OK  .[0m] Started Journal Service.[    1.850254] systemd[1]: Started Journal Service.[.[32m  OK  .[0m] Mounted FUSE Control File System.[.[32m  OK  .[0m] Mounted Configuration File System.[    1.869088] systemd-fsck[180]: /dev/mapper/dmroot: clean, 453037/655360 files, 2474697/2621440 blocks[.[32m  OK  .[0m] Started Apply Kernel Variables.[.[32m  OK  .[0m] Started Create Static Device Nodes in /dev.[.[32m  OK  .[0m] Started Qubes DB agent.         Starting udev Kernel Device Manager...[    1.893678] systemd-udevd[227]: starting version 215[.[32m  OK  .[0m] Started udev Kernel Device Manager.         Starting LSB: Set preliminary keymap...[    1.950041] input: PC Speaker as /devices/platform/pcspkr/input/input0[.[32m  OK  .[0m] Found device /dev/hvc0.[    1.993555] xen_netfront: Initialising Xen virtual ethernet driver[    2.025964] Error: Driver 'pcspkr' is already registered, aborting...[.[32m  OK  .[0m] Started LSB: Set preliminary keymap.         Starting Remount Root and Kernel File Systems...[    2.032313] intel_rapl: Found RAPL domain package[    2.032328] intel_rapl: Found RAPL domain core[    2.032362] intel_rapl: Found RAPL domain uncore[    2.032401] intel_rapl: Found RAPL domain dram[    2.032412] intel_rapl: RAPL package 0 domain package locked by BIOS[    2.032447] intel_rapl: RAPL package 0 domain dram locked by BIOS[.[32m  OK  .[0m] Found device /dev/xvdc1.         Activating swap /dev/xvdc1...[    2.050316] random: nonblocking pool is initialized[    2.050837] Adding 1048572k swap on /dev/xvdc1.  Priority:-1 extents:1 across:1048572k SSFS[.[32m  OK  .[0m] Activated swap /dev/xvdc1.[.[32m  OK  .[0m] Reached target Swap.[    2.054369] EXT4-fs (dm-0): re-mounted. Opts: (null)[.[32m  OK  .[0m] Started Remount Root and Kernel File Systems.         Starting Load/Save Random Seed...[.[32m  OK  .[0m] Reached target Local File Systems (Pre).         Mounting /proc/xen...[.[32m  OK  .[0m] Mounted /proc/xen.         Starting Init Qubes Services settings...[.[32m  OK  .[0m] Started Load/Save Random Seed.[.[32m  OK  .[0m] Started Init Qubes Services settings.         Starting Initialize and mount /rw and /home...[    2.187607] EXT4-fs (xvdb): mounted filesystem with ordered data mode. Opts: discard[.[32m  OK  .[0m] Started Initialize and mount /rw and /home.[.[32m  OK  .[0m] Started udev Wait for Complete Device Initialization.         Starting Activation of LVM2 logical volumes...         Starting Copy rules generated while the root was ro...[.[32m  OK  .[0m] Started Copy rules generated while the root was ro.[.[32m  OK  .[0m] Started Activation of LVM2 logical volumes.[.[32m  OK  .[0m] Reached target Encrypted Volumes.         Starting Activation of LVM2 logical volumes...[.[32m  OK  .[0m] Started Activation of LVM2 logical volumes.         Starting Monitoring of LVM2 mirrors, snapshots etc. ...ress polling...[.[32m  OK  .[0m] Started Monitoring of LVM2 mirrors, snapshots etc. u...ogress polling.[.[32m  OK  .[0m] Reached target Local File Systems.         Starting Early Qubes VM settings...         Starting Create Volatile Files and Directories...         Starting LSB: Raise network interfaces....[.[32m  OK  .[0m] Reached target Remote File Systems.         Starting Trigger Flushing of Journal to Persistent Storage...         Starting LSB: Prepare console...[.[32m  OK  .[0m] Started Create Volatile Files and Directories.[    5.090914] systemd-journald[219]: Received request to flush runtime journal from PID 1         Starting Update UTMP about System Boot/Shutdown...[.[32m  OK  .[0m] Started Trigger Flushing of Journal to Persistent Storage.[.[32m  OK  .[0m] Started Update UTMP about System Boot/Shutdown.[.[32m  OK  .[0m] Started Early Qubes VM settings.[.[32m  OK  .[0m] Started LSB: Prepare console.         Starting LSB: Set console font and keymap...[.[32m  OK  .[0m] Started LSB: Raise network interfaces..[.[32m  OK  .[0m] Started LSB: Set console font and keymap.[.[32m  OK  .[0m] Reached target System Initialization.[.[32m  OK  .[0m] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.[.[32m  OK  .[0m] Listening on saned incoming socket.[.[32m  OK  .[0m] Listening on D-Bus System Message Bus Socket.[.[32m  OK  .[0m] Reached target Timers.[.[32m  OK  .[0m] Listening on CUPS Printing Service Sockets.[.[32m  OK  .[0m] Reached target Sockets.[.[32m  OK  .[0m] Reached target Paths.[.[32m  OK  .[0m] Reached target Basic System.         Starting Entropy daemon using the HAVEGE algorithm...[.[32m  OK  .[0m] Started Entropy daemon using the HAVEGE algorithm.         Starting Provide limited super user privileges to specific users...         Starting Deferred execution scheduler...[.[32m  OK  .[0m] Started Deferred execution scheduler.         Starting WPA supplicant...         Starting Avahi mDNS/DNS-SD Stack...         Starting Restore /etc/resolv.conf if the system cras...s shut down....         Starting Login Service...         Starting D-Bus System Message Bus...[.[32m  OK  .[0m] Started D-Bus System Message Bus.[.[32m  OK  .[0m] Started Avahi mDNS/DNS-SD Stack.[.[32m  OK  .[0m] Started WPA supplicant.         Starting Network Service...         Starting System Logging Service...         Starting Qubes memory information reporter...         Starting CUPS Printing Service...         Starting Qubes base firewall settings...[.[32m  OK  .[0m] Started Provide limited super user privileges to specific users.[.[32m  OK  .[0m] Started Restore /etc/resolv.conf if the system crash...was shut down..[.[32m  OK  .[0m] Started Qubes memory information reporter.[.[32m  OK  .[0m] Started System Logging Service.         Starting Qubes GUI Agent...[.[32m  OK  .[0m] Started Network Service.         Starting Network Name Resolution...[.[32m  OK  .[0m] Started CUPS Printing Service.[    5.349804] nf_conntrack version 0.5.0 (2443 buckets, 9772 max)[.[32m  OK  .[0m] Started Login Service.         Starting Make remote CUPS printers available locally...[.[32m  OK  .[0m] Started Make remote CUPS printers available locally.[.[32m  OK  .[0m] Started Qubes GUI Agent.         Starting Xen driver domain device daemon...[.[32m  OK  .[0m] Started Network Name Resolution.[    5.389717] ip6_tables: (C) 2000-2006 Netfilter Core Team[.[32m  OK  .[0m] Started Xen driver domain device daemon.         Starting Qubes remote exec agent...[.[32m  OK  .[0m] Started Qubes base firewall settings.         Starting Qubes misc post-boot actions...[.[32m  OK  .[0m] Reached target Network.         Starting /etc/rc.local Compatibility...         Starting Permit User Sessions...[.[32m  OK  .[0m] Reached target Network is Online.         Starting LSB: exim Mail Transport Agent...[.[32m  OK  .[0m] Started Qubes remote exec agent.[.[32m  OK  .[0m] Started /etc/rc.local Compatibility.[.[32m  OK  .[0m] Started Permit User Sessions.         Starting Getty on tty1...[.[32m  OK  .[0m] Started Getty on tty1.         Starting Serial Getty on hvc0...[.[32m  OK  .[0m] Started Serial Getty on hvc0.[.[32m  OK  .[0m] Reached target Login Prompts.[.[32m  OK  .[0m] Started Qubes misc post-boot actions.[.[32m  OK  .[0m] Created slice user-1000.slice.         Starting LSB: RPC portmapper replacement...         Starting User Manager for UID 1000...[.[32m  OK  .[0m] Started User Manager for UID 1000.[.[32m  OK  .[0m] Started LSB: RPC portmapper replacement.[.[32m  OK  .[0m] Reached target RPC Port Mapper.[.[32m  OK  .[0m] Started LSB: exim Mail Transport Agent.[.[32m  OK  .[0m] Reached target Multi-User System.         Starting Update UTMP about System Runlevel Changes...[.[32m  OK  .[0m] Started Update UTMP about System Runlevel Changes.Debian GNU/Linux 8 debian-8-kernel hvc0debian-8-kernel login: Please, help!
Boot - Initramfs can't complete init after Updating the Kernel
kernel;boot;virtual machine;initramfs;xen