summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Barrett <spalf0@gmail.com>2019-11-21 07:15:07 -0600
committerTom Barrett <spalf0@gmail.com>2019-11-21 07:15:07 -0600
commiteb9a6331835669d94bb038f8d3f94602c1d32576 (patch)
treea321b93eed5d916a6e2a9703dcb266772d0e06de
parent45f9230ae50c14e20e787da39ca559dad0fd30ec (diff)
root things for lxc
-rwxr-xr-xlxc_setup10
-rwxr-xr-xrequired13
2 files changed, 23 insertions, 0 deletions
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
diff --git a/required b/required
index 8967acc..5a0c389 100755
--- a/required
+++ b/required
@@ -33,8 +33,21 @@ apt install -y \
ccrypt \
pwgen
+# lxc containers
+apt install -y \
+ lxc \
+ libvirt0 \
+ libpam-cgfs \
+ bridge-utils \
+ libvirt-clients \
+ libvirt-daemon-system \
+ iptables \
+ ebtables \
+ dnsmasq-base
+
# misc
apt install -y \
acpi \
+ lshw \
build-essential \
psmisc