elitak / nixos-infect

[GPLv3+] install nixos over the existing OS in a DigitalOcean droplet (and others with minor modifications)
GNU General Public License v3.0
1.37k stars 221 forks source link

Fail to setup network on Network Presence #111

Open aalexei opened 2 years ago

aalexei commented 2 years ago

Hi, I'm trying to install nixos on https://networkpresence.com.au and it's close but the network doesn't seem to set up after reboot. Any tips about what I should look for in the base OS, and how to modify the script?

So far:

  1. Starting from Ubuntu 20.04, set up ssh for root
  2. Change hostname using hostnamectl set-hostname ... as Network Presence uses fqdn as hostname and this breaks the script
  3. Grab nixos-infect, set NIX_CHANNEL=nixos-22.05, bash -x nixos-infect. Script runs and machine reboots.
  4. Machine IP cannot be pinged and ssh timeouts
  5. On VNC I can watch the boot sequence fly past, nothing notable - all OK's, gets to user management and throws up a login prompt on the console. Of course there's no credentials to log in with and it's not reachable with ssh.

Or is it the hostname changing step that makes the machine inaccessible?

ghost commented 1 year ago

@aalexei does network interface have some labeling one might not expect? can you try passing 22.11 channel since it's more updated?