summaryrefslogtreecommitdiff
path: root/lxc/debian_setup
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2020-12-29 14:19:50 +0100
committerTom Barrett <tom@tombarrett.xyz>2020-12-29 14:19:50 +0100
commit27b3ff0800ed9002631291f3e0790ed5a470be74 (patch)
tree2e730d0b3be329264b54c1e1c1a1b1b28d8a7e3a /lxc/debian_setup
parentec7da27759c08e0741fe9151f056a8378c9a8aa1 (diff)
2020 update
Diffstat (limited to 'lxc/debian_setup')
-rwxr-xr-xlxc/debian_setup9
1 files changed, 9 insertions, 0 deletions
diff --git a/lxc/debian_setup b/lxc/debian_setup
new file mode 100755
index 0000000..6cfe699
--- /dev/null
+++ b/lxc/debian_setup
@@ -0,0 +1,9 @@
+#!/bin/bash
+set -e
+
+virsh net-start default
+virsh net-autostart default
+
+echo "kernel.unprivileged_userns_clone=1" > /etc/sysctl.d/80-lxc-userns.conf
+echo "tom veth virbr0 2" > /etc/lxc/lxc-usernet
+echo "you should reboot now."