Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The FQDN is required but cannot be determined. Please make sure that #366

Open
shymega opened this issue Aug 25, 2024 · 4 comments
Open

Comments

@shymega
Copy link

shymega commented Aug 25, 2024

I can't build Proxmox LXC images at the moment. (config)

It looks like an upstream Nixpkgs issue, but I'm opening an issue here for reference.

I will do some digging...

Output:

$ nix build .\#packages.MTX-SRV
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'tarball'
         whose name attribute is located at /nix/store/5z81la6av4j0ckp0w1949lxiwjyyykks-source/pkgs/stdenv/generic/make-derivation.nix:333:7

       … while evaluating attribute 'buildCommand' of derivation 'tarball'

         at /nix/store/5z81la6av4j0ckp0w1949lxiwjyyykks-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: The FQDN is required but cannot be determined. Please make sure that
       both networking.hostName and networking.domain are set properly.
@Mic92
Copy link
Member

Mic92 commented Aug 25, 2024

Yep. Needs to be fixed in nixpkgs.

@shymega
Copy link
Author

shymega commented Sep 1, 2024

This was my fix.

I'm not sure if Nixpkgs needs the fix.

@alirezamirsepassi
Copy link

I'm having the same issue. @shymega could you post the fix here?

@shymega
Copy link
Author

shymega commented Dec 2, 2024

@alirezamirsepassi My fix was:

{ inputs, ... }: {
  imports = [inputs.nixos-generators.nixosModules.all-formats];

  formatConfigs.proxmox-lxc = {
    proxmoxLXC.manageHostName = true;
  };
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants