feat(networking): Add a bridge to connect VMs to the world
All checks were successful
lint / check (push) Successful in 23s
build configuration / build_and_cache_web01 (push) Successful in 1m41s
build configuration / build_and_cache_bridge01 (push) Successful in 1m2s
Check meta / check_meta (push) Successful in 20s
Check meta / check_dns (push) Successful in 20s
build configuration / build_and_cache_storage01 (push) Successful in 1m28s
build configuration / build_and_cache_geo01 (push) Successful in 1m11s
build configuration / build_and_cache_rescue01 (push) Successful in 1m21s
build configuration / build_and_cache_compute01 (push) Successful in 1m49s
build configuration / build_and_cache_krz01 (push) Successful in 1m49s
build configuration / build_and_cache_geo02 (push) Successful in 1m4s
build configuration / build_and_cache_vault01 (push) Successful in 1m19s
build configuration / build_and_cache_web03 (push) Successful in 1m5s
build configuration / build_and_cache_web02 (push) Successful in 1m10s
All checks were successful
lint / check (push) Successful in 23s
build configuration / build_and_cache_web01 (push) Successful in 1m41s
build configuration / build_and_cache_bridge01 (push) Successful in 1m2s
Check meta / check_meta (push) Successful in 20s
Check meta / check_dns (push) Successful in 20s
build configuration / build_and_cache_storage01 (push) Successful in 1m28s
build configuration / build_and_cache_geo01 (push) Successful in 1m11s
build configuration / build_and_cache_rescue01 (push) Successful in 1m21s
build configuration / build_and_cache_compute01 (push) Successful in 1m49s
build configuration / build_and_cache_krz01 (push) Successful in 1m49s
build configuration / build_and_cache_geo02 (push) Successful in 1m4s
build configuration / build_and_cache_vault01 (push) Successful in 1m19s
build configuration / build_and_cache_web03 (push) Successful in 1m5s
build configuration / build_and_cache_web02 (push) Successful in 1m10s
This commit is contained in:
parent
492fe550d9
commit
3c445ab4c7
3 changed files with 27 additions and 3 deletions
|
@ -8,12 +8,13 @@ lib.extra.mkConfig {
|
||||||
enabledServices = [
|
enabledServices = [
|
||||||
# INFO: This list needs to stay sorted alphabetically
|
# INFO: This list needs to stay sorted alphabetically
|
||||||
# Machine learning API machine
|
# Machine learning API machine
|
||||||
"microvm-ml01"
|
# "microvm-ml01"
|
||||||
"microvm-router01"
|
# "microvm-router01"
|
||||||
"nvidia-tesla-k80"
|
"nvidia-tesla-k80"
|
||||||
"ollama"
|
"ollama"
|
||||||
"whisper"
|
"whisper"
|
||||||
"proxmox"
|
"proxmox"
|
||||||
|
"networking"
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
|
22
machines/krz01/networking.nix
Normal file
22
machines/krz01/networking.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
systemd.networknetworks = {
|
||||||
|
"10-eno1" = {
|
||||||
|
matchConfig.Name = [ "eno1" ];
|
||||||
|
networkConfig = {
|
||||||
|
Bridge = "vmbr0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"10-vmbr0" = {
|
||||||
|
matchConfig.Name = "vmbr0";
|
||||||
|
linkConfig.RequiredForOnline = "routable";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.network.netdevs."vmbr0" = {
|
||||||
|
netdevConfig = {
|
||||||
|
Name = "vmbr0";
|
||||||
|
Kind = "bridge";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -31,7 +31,8 @@
|
||||||
|
|
||||||
krz01 = {
|
krz01 = {
|
||||||
interfaces = {
|
interfaces = {
|
||||||
eno1 = {
|
# see also machines/krz01/networking.nix
|
||||||
|
vmbr0 = {
|
||||||
ipv4 = [
|
ipv4 = [
|
||||||
{
|
{
|
||||||
address = "129.199.146.21";
|
address = "129.199.146.21";
|
||||||
|
|
Loading…
Reference in a new issue