From eb9a6331835669d94bb038f8d3f94602c1d32576 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Thu, 21 Nov 2019 07:15:07 -0600 Subject: root things for lxc --- lxc_setup | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 lxc_setup (limited to 'lxc_setup') diff --git a/lxc_setup b/lxc_setup new file mode 100755 index 0000000..9c9199c --- /dev/null +++ b/lxc_setup @@ -0,0 +1,10 @@ +#!/bin/bash + +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." +# lxc-create -n name -t download -- --dist archlinux --release current --arch amd64 -- cgit v1.2.3