Skip to content

Commit

Permalink
docs: kubevirt installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Apr 1, 2024
1 parent 80c0ab3 commit ed5328c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hosts/k8s/disko-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ nix-shell -p git vim gnumake
git clone https://github.com/ryan4yin/nix-config.git

cd nix-config

# one line
sudo nix run --experimental-features "nix-command flakes" 'github:nix-community/disko#disko-install' -- \
--write-efi-boot-entries --disk main /dev/nvme0n1 --flake .#kubevirt-shoryu


# or step by step
## 1. partition & format the disk via disko
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko ./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
```

0 comments on commit ed5328c

Please sign in to comment.