Deployment phase
Summary
Deploy machines to their target devices. The process is the same for VMs and physical hardware.
Requirements
-
Make sure that you prepared your machines according to their type by following the previous steps.
-
Double check that each machine has a hardware report saved under
machines/$MACHINE_NAME/facter.json -
Double check that each machine has a disk configuration saved under
machines/$MACHINE_NAME/disko.nix -
Make sure your physical targets are booted from the stick as described
-
Make sure your virtual targets are in the kexec state as described
Deploying Your Machines
Careful - This command is destructive! It will format your target device's disk and install NixOS on it!
Depending on your hardware configurations and network speed, this step may take a few minutes per machine.You will be asked to set passwords for root and users. You can leave these fields empty, Clan will take care of it.
After the installation completes, your device will reboot into the newly installed NixOS system and your users will be able to log in.
Checkpoint
To verify the deployment succeeded:
- The target machine should reboot automatically after installation
- You should see a login prompt displaying
$MACHINE_NAME login: - Log in as
rootwith the password you set during deployment (or empty if you skipped the prompt) - Run
clan machines update $MACHINE_NAMEfrom your workstation — it should complete without errors
Up Next
In the next step, you will learn how to update your machines after the deployment.