mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
333bfe16c4
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". |
||
---|---|---|
.. | ||
amazon-config.nix | ||
amazon-image.nix | ||
container-config.nix | ||
containers.nix | ||
ec2-data.nix | ||
google-compute-config.nix | ||
google-compute-image.nix | ||
libvirtd.nix | ||
nixos-container.pl | ||
nova-config.nix | ||
nova-image.nix | ||
nova.nix | ||
qemu-opts | ||
qemu-vm.nix | ||
virtualbox-guest.nix | ||
virtualbox-image.nix | ||
xen-dom0.nix | ||
xen-domU.nix |