fix(vps-relay): add virtio modules to initrd so it boots on Hetzner 🛰️
This commit is contained in:
parent
914a825587
commit
f4738584c3
1 changed files with 14 additions and 0 deletions
|
|
@ -13,6 +13,20 @@
|
|||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# Hetzner Cloud cx23 uses QEMU virtio-scsi for the disk and virtio-net
|
||||
# for the NIC. Without these modules in initrd, the kernel can't find
|
||||
# the root partition and hangs during boot.
|
||||
boot.initrd.availableKernelModules = [
|
||||
"virtio_pci"
|
||||
"virtio_scsi"
|
||||
"virtio_net"
|
||||
"virtio_blk"
|
||||
"ata_piix"
|
||||
"sd_mod"
|
||||
"sr_mod"
|
||||
];
|
||||
boot.kernelModules = [ "virtio_pci" "virtio_scsi" "virtio_net" ];
|
||||
|
||||
# Cloud provisioners add the initial root SSH key via cloud-init or
|
||||
# equivalent; we don't run cloud-init. All config is baked at install.
|
||||
networking.hostName = "vps-relay";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue