nixpkgs/nixos/modules/virtualisation
Patryk Wychowaniec 336ef2de99
nixos/containers: allow containers with long names to create private networks
Launching a container with a private network requires creating a
dedicated networking interface for it; name of that interface is derived
from the container name itself - e.g. a container named `foo` gets
attached to an interface named `ve-foo`.

An interface name can span up to IFNAMSIZ characters, which means that a
container name must contain at most IFNAMSIZ - 3 - 1 = 11 characters;
it's a limit that we validate using a build-time assertion.

This limit has been upgraded with Linux 5.8, as it allows for an
interface to contain a so-called altname, which can be much longer,
while remaining treated as a first-class citizen.

Since altnames have been supported natively by systemd for a while now,
due diligence on our side ends with dropping the name-assertion on newer
kernels.

This commit closes #38509.

systemd/systemd#14467
systemd/systemd#17220
https://lwn.net/Articles/794289/
2021-02-26 17:48:49 +01:00
..
amazon-image.nix
amazon-init.nix
amazon-options.nix
anbox.nix
azure-agent-entropy.patch
azure-agent.nix nixos/azure-agent: fix deprecation warning 2021-01-12 13:00:38 +02:00
azure-bootstrap-blobs.nix
azure-common.nix
azure-config-user.nix
azure-config.nix
azure-image.nix
azure-images.nix
brightbox-config.nix
brightbox-image.nix
cloudstack-config.nix
container-config.nix
containers.nix
cri-o.nix nixos/cri-o: add OCI seccomp bpf hook support 2021-02-05 11:04:49 +01:00
digital-ocean-config.nix
digital-ocean-image.nix
digital-ocean-init.nix
docker-image.nix
docker.nix docker: fix socket activation race 2021-02-01 18:14:43 +02:00
ec2-amis.nix ec2-amis: 2020-11-23 update (#104740) 2021-01-11 12:37:14 -05:00
ec2-data.nix
ec2-metadata-fetcher.nix
ecs-agent.nix
fetch-instance-ssh-keys.bash gce/fetch-ssh-keys: Put script in separate file, use PrivateTmp... 2021-02-19 15:17:12 +01:00
gce-images.nix
google-compute-config.nix gce/fetch-ssh-keys: Put script in separate file, use PrivateTmp... 2021-02-19 15:17:12 +01:00
google-compute-image.nix nixos/modules: stdenv.lib -> lib 2021-01-17 21:40:51 +01:00
grow-partition.nix
hyperv-guest.nix nixos/hyperv-guest: rngd was removed, no need to disable it 2021-02-21 01:34:56 +01:00
hyperv-image.nix
kvmgt.nix
libvirtd.nix
lxc-container.nix nixos/getty: rename from services.mingetty 2021-01-05 09:09:42 +00:00
lxc.nix
lxcfs.nix
lxd.nix nixos/lxd: refactor to use zfs.package/enabled property 2021-02-01 17:59:18 +01:00
nixos-containers.nix nixos/containers: allow containers with long names to create private networks 2021-02-26 17:48:49 +01:00
oci-containers.nix nixos/oci-containers: Remove dep on system.path 2021-01-29 18:29:07 +01:00
openstack-config.nix
openstack-metadata-fetcher.nix
openvswitch.nix
parallels-guest.nix
podman.nix nixos/podman: install systemd files 2021-02-14 06:57:39 +10:00
qemu-guest-agent.nix
qemu-vm.nix qemu-vm: add virtualisation.fileSystems to allow extra vm mounts 2021-02-11 11:02:45 +01:00
railcar.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
spice-usb-redirection.nix
vagrant-guest.nix
vagrant-virtualbox-image.nix
virtualbox-guest.nix
virtualbox-host.nix
virtualbox-image.nix
vmware-guest.nix
vmware-image.nix
xe-guest-utilities.nix
xen-dom0.nix nixos/xen: add types 2021-01-31 13:47:57 +01:00
xen-domU.nix