summaryrefslogtreecommitdiff
path: root/lxc/setup
blob: 6cfe6993e7595a723afb67cfbbb6966fd7b4a3d4 (plain)
1
2
3
4
5
6
7
8
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."