Issues with nixos netboot

Hello,

I am trying to netboot nixos. I am building my image using:

{
  description = "A generic and minimal netbooting OS for my homelab";

  inputs =
    {
      nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
    };

  outputs = { self, nixpkgs, ... }:
    let
      system = "x86_64-linux";
    in
    {
      nixosConfigurations = {
        generic = nixpkgs.lib.nixosSystem {
          inherit system;
          modules = [
            ./configuration.nix
          ];
        };
      };
      packages.${system}.netboot = nixpkgs.legacyPackages.${system}.symlinkJoin {
        name = "netboot";
        paths = with self.nixosConfigurations.generic.config.system.build; [
          netbootRamdisk
          kernel
          netbootIpxeScript
        ];
        preferLocalBuild = true;
      };
    };
}

configuration.nix imports netboot

{ config, pkgs, lib, modulesPath, ... }:
{
  imports = [
    (modulesPath + "/installer/netboot/netboot-base.nix")
  ];

  system.stateVersion = "22.11";

  networking = {
    networkmanager.enable = true;
    wireless.enable = false;
    hostName = "foo";
  };

When I test it in qemu I get this error:

I am testing this image using netboot.xyzā€™s ipxe shell.

Thank you in advance for your help and patience

1 Like

This is a netboot.xyz issue. It can be solved by adding imgfree netboot.ipxe