From c1736abbb642343f09ed1b7616695cdd3b9d306f Mon Sep 17 00:00:00 2001 From: Edu4rdSHL Date: Thu, 29 Apr 2021 18:49:55 -0500 Subject: [PATCH] Update --- etc/systemd/nspawn/10-macvlan.network | 5 +++++ etc/systemd/nspawn/ArchARM.nspawn | 11 +++++++++++ etc/systemd/nspawn/ArchLinux.nspawn | 4 ++-- etc/systemd/nspawn/BlackArch.nspawn | 1 - etc/systemd/nspawn/Debian.nspawn | 5 +++-- etc/systemd/nspawn/KaliLinux.nspawn | 1 - 6 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 etc/systemd/nspawn/10-macvlan.network create mode 100644 etc/systemd/nspawn/ArchARM.nspawn diff --git a/etc/systemd/nspawn/10-macvlan.network b/etc/systemd/nspawn/10-macvlan.network new file mode 100644 index 0000000..b40bbc9 --- /dev/null +++ b/etc/systemd/nspawn/10-macvlan.network @@ -0,0 +1,5 @@ +[Match] +Type=ether + +[Network] +DHCP=ipv4 diff --git a/etc/systemd/nspawn/ArchARM.nspawn b/etc/systemd/nspawn/ArchARM.nspawn new file mode 100644 index 0000000..72e515e --- /dev/null +++ b/etc/systemd/nspawn/ArchARM.nspawn @@ -0,0 +1,11 @@ +[Exec] +Boot=true +PrivateUsers=pick + +[Files] +Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh +BindReadOnly=/tmp/.X11-unix +BindReadOnly=/etc/systemd/nspawn/10-macvlan.network:/etc/systemd/network/10-macvlan.network + +[Network] +MACVLAN=bond1 diff --git a/etc/systemd/nspawn/ArchLinux.nspawn b/etc/systemd/nspawn/ArchLinux.nspawn index 1a79982..cf631ee 100644 --- a/etc/systemd/nspawn/ArchLinux.nspawn +++ b/etc/systemd/nspawn/ArchLinux.nspawn @@ -3,9 +3,9 @@ Boot=true PrivateUsers=false [Files] -Bind=/run/user/1000/pulse/native:/tmp/pulse_server Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh BindReadOnly=/tmp/.X11-unix +BindReadOnly=/etc/systemd/nspawn/10-macvlan.network:/etc/systemd/network/10-macvlan.network [Network] -VirtualEthernet=false +MACVLAN=bond1 diff --git a/etc/systemd/nspawn/BlackArch.nspawn b/etc/systemd/nspawn/BlackArch.nspawn index 054601b..c3d2f6a 100644 --- a/etc/systemd/nspawn/BlackArch.nspawn +++ b/etc/systemd/nspawn/BlackArch.nspawn @@ -4,7 +4,6 @@ Capability=CAP_NET_ADMIN PrivateUsers=false [Files] -Bind=/run/user/1000/pulse/native:/tmp/pulse_server Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh Bind=/proc/sys/net/ipv4/ip_forward BindReadOnly=/tmp/.X11-unix diff --git a/etc/systemd/nspawn/Debian.nspawn b/etc/systemd/nspawn/Debian.nspawn index e0f407f..0ba6a96 100644 --- a/etc/systemd/nspawn/Debian.nspawn +++ b/etc/systemd/nspawn/Debian.nspawn @@ -1,11 +1,12 @@ [Exec] Boot=true +Capability=CAP_NET_ADMIN PrivateUsers=pick [Files] -Bind=/run/user/1000/pulse/native:/tmp/pulse_server Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh BindReadOnly=/tmp/.X11-unix +BindReadOnly=/etc/systemd/nspawn/10-macvlan.network:/etc/systemd/network/10-macvlan.network [Network] -VirtualEthernet=false +MACVLAN=bond1 diff --git a/etc/systemd/nspawn/KaliLinux.nspawn b/etc/systemd/nspawn/KaliLinux.nspawn index aa95204..5a0f00c 100644 --- a/etc/systemd/nspawn/KaliLinux.nspawn +++ b/etc/systemd/nspawn/KaliLinux.nspawn @@ -4,7 +4,6 @@ Capability=CAP_NET_ADMIN PrivateUsers=false [Files] -Bind=/run/user/1000/pulse/native:/tmp/pulse_server Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh BindReadOnly=/tmp/.X11-unix