mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/virtualisation: provide actionable advice on VLAN TAP failure
This commit is contained in:
parent
6d466ecb8e
commit
d1386a426b
1 changed files with 4 additions and 0 deletions
|
|
@ -90,6 +90,10 @@ def ensure_vlan_bridge(vlan: int) -> typing.Generator[str, None, None]:
|
|||
logger.warning(
|
||||
f"TAP {tap_name} not found; container will be isolated from VDE"
|
||||
)
|
||||
if not Path("/dev/net").exists():
|
||||
logger.warning(
|
||||
"A common reason for this is that /dev/net is not available in the Nix sandbox. Try adding /dev/net to extra-sandbox-paths."
|
||||
)
|
||||
|
||||
yield bridge_name
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue