diff options
Diffstat (limited to 'lxc/setup')
-rwxr-xr-x | lxc/setup | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lxc/setup b/lxc/setup new file mode 100755 index 0000000..5fdf825 --- /dev/null +++ b/lxc/setup @@ -0,0 +1,10 @@ +#!/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." + |