1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/nixos/modules
Eelco Dolstra 333bfe16c4 Containers: Support setting up macvlan interfaces
By setting a line like

  MACVLANS="eno1"

in /etc/containers/<name>.conf, the container will get an Ethernet
interface named mv-eno1, which represents an additional MAC address on
the physical eno1 interface. Thus the container has direct access to
the physical network. You can specify multiple interfaces in MACVLANS.

Unfortunately, you can't do this with wireless interfaces.

Note that dhcpcd is disabled in containers by default, so you'll
probably want to set

  networking.useDHCP = true;

in the container, or configure a static IP address.

To do: add a containers.* option for this, and a flag for
"nixos-container create".
2014-05-07 17:53:57 +02:00
..
config Fix users.*.extraGroups for users.mutableUsers = true. 2014-05-05 15:35:16 +02:00
hardware On my system OpenGL with bumblebee seems to require libudev in LD_LIBRARY_PATH. Fix that, fix bumblebee module loading and make the socket group configurable 2014-05-02 14:32:47 +04:00
installer
misc
profiles Don't start getty@tty1 on headless machines (like EC2) 2014-05-05 16:47:36 +02:00
programs
security
services Containers: Use systemd-nspawn's --network-veth flag 2014-05-07 17:53:57 +02:00
system Don't run hwclock if /dev/rtc doesn't exist 2014-05-05 16:47:51 +02:00
tasks
testing
virtualisation Containers: Support setting up macvlan interfaces 2014-05-07 17:53:57 +02:00
module-list.nix
rename.nix