From a9e3dd0c531ac26cdb8607f07ee9d2f61cc4df1c Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Tue, 2 Apr 2024 00:06:24 +0800 Subject: [PATCH] docs: kubevirt installation --- hosts/k8s/disko-config/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hosts/k8s/disko-config/README.md b/hosts/k8s/disko-config/README.md index 3d2ecd97..964d0061 100644 --- a/hosts/k8s/disko-config/README.md +++ b/hosts/k8s/disko-config/README.md @@ -51,5 +51,16 @@ sudo nix run --experimental-features "nix-command flakes" 'github:nix-community/ sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko hosts/k8s/disko-config/kukubevirt-disko-fs.nix ## 2. install nixos # NOTE: the root password you set here will be discarded when reboot -sudo nixos-install --root /mnt --flake .#suzu --no-root-password --show-trace --verbose +sudo nixos-install --root /mnt --no-root-password --show-trace --verbose --flake .#kubevirt-shoryu + +# move the essential files into /persistent +nixos-enter + +# NOTE: DO NOT skip this step!!! +# copy the essential files into /persistent +# otherwise the / will be cleared and data will lost +## NOTE: impermanence just create links from / to /persistent +## We need to copy files into /persistent manually!!! +mv /etc/machine-id /persistent/etc/ +mv /etc/ssh /persistent/etc/ ```