Skip to content

Commit

Permalink
Set static IP for gui-vm
Browse files Browse the repository at this point in the history
Signed-off-by: Tero Tervala <tero.tervala@unikie.com>
  • Loading branch information
tervis-unikie committed May 3, 2024
1 parent da58e51 commit 2b75af2
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions modules/microvm/virtualization/microvm/guivm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,21 @@
wantedBy = ["ghaf-session.target"];
};

# Fixed IP-address for debugging subnet
systemd.network.networks."10-ethint0".addresses = [
{
addressConfig.Address = "192.168.101.3/24";
}
];
systemd.network = {
enable = true;
networks."10-ethint0" = {
addresses = [
{
addressConfig.Address = "192.168.100.7/24";
}
{
# IP-address for debugging subnet
addressConfig.Address = "192.168.101.7/24";
}
];
linkConfig.ActivationPolicy = "always-up";
};
};
})
];
};
Expand Down

0 comments on commit 2b75af2

Please sign in to comment.