diff options
| author | Mel <einebeere@gmail.com> | 2024-12-31 02:15:59 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-12-31 02:42:29 +0100 |
| commit | f27b7199ff1aca1837bd97ab358f03bdded5a6ad (patch) | |
| tree | c7d519d01a408173159af27ce986a6ba86276bbd /configuration | |
| parent | 8834b92a88a78611aaef77b9329358c09215fe73 (diff) | |
| download | specimen-f27b7199ff1aca1837bd97ab358f03bdded5a6ad.tar.zst specimen-f27b7199ff1aca1837bd97ab358f03bdded5a6ad.zip | |
Split default profile into a second, more specialized one
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'configuration')
| -rw-r--r-- | configuration/vm/incus.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/configuration/vm/incus.nix b/configuration/vm/incus.nix index 546c328..bd7813a 100644 --- a/configuration/vm/incus.nix +++ b/configuration/vm/incus.nix @@ -80,6 +80,28 @@ in # new instances without an explicitly set profile. { name = "default"; + config = { }; + devices = { + # this is the internal vm network, + # not the hosts. + eth0 = { + name = "eth0"; + network = "incusbr0"; + type = "nic"; + }; + root = { + path = "/"; + pool = "default"; + size = "5GiB"; + type = "disk"; + }; + }; + } + # this profile is the one we want to apply to the ubuntu example vm. + # it is provisioned with a static ipv4 (for nat-ted proxy) + # and cloud-init configuration + { + name = "vm-1"; # config applied to new instances, # this is how we can best control # vm provisioning semi-declaratively. @@ -100,6 +122,10 @@ in name = "eth0"; network = "incusbr0"; type = "nic"; + + # this is necessary for our nat proxy configuration. + # see: https://linuxcontainers.org/incus/docs/main/reference/devices_proxy/#nat-mode + "ipv4.address" = "10.0.100.123"; }; root = { path = "/"; |
