From 6b6fee4fc1dbbce5057e7c97f7e309e7120e0f9b Mon Sep 17 00:00:00 2001 From: Gasper Spagnolo Date: Sun, 9 Oct 2022 10:20:26 +0200 Subject: [PATCH] Lxc --- lxc.md | 8 ++++++++ wl-mirror.md | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 wl-mirror.md diff --git a/lxc.md b/lxc.md index fae9e2b..3e50f04 100644 --- a/lxc.md +++ b/lxc.md @@ -66,5 +66,13 @@ Then set privileges for docker to have ability to call syscalls. or read [this](https://ubuntu.com/tutorials/how-to-run-docker-inside-lxd-containers#2-create-lxd-container) tutorial. +## Troubleshooting +### No ipv4 in container?? + +```bash +# for ipt in iptables iptables-legacy ip6tables ip6tables-legacy; do $ipt --flush; $ipt --flush -t nat; $ipt --delete-chain; $ipt --delete-chain -t nat; $ipt -P FORWARD ACCEPT; $ipt -P INPUT ACCEPT; $ipt -P OUTPUT ACCEPT; done +# systemctl reload snap.lxd.daemon +``` +read [this](https://discuss.linuxcontainers.org/t/containers-do-not-have-outgoing-internet-access/10844/4) article. diff --git a/wl-mirror.md b/wl-mirror.md new file mode 100644 index 0000000..b2f0d64 --- /dev/null +++ b/wl-mirror.md @@ -0,0 +1,9 @@ +# WL-mirror + +## To list all outputs + +`swaymsg -t get_outputs` + +# Then just execute: + +`wl-mirror `