-- Leo's gemini proxy

-- Connecting to iceworks.cc:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

20210210 Setting up LXD

Created: 2021-02-10T17:28:37-06:00

Return to the Index


Spin up a container from an image:

$ sudo lxc launch images:alpine/3.10/amd64 demo


Run a shell in the container:

$ sudo lxc exec demo sh


How TF do you ping / update?

Enable forwarding at the kernel level

# echo 1 > /proc/sys/net/ipv4/ip_forward
# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding

Enable forwarding to and from the network bridge

iptables -A FORWARD -o lxdbr0 -j ACCEPT
iptables -A FORWARD -i lxdbr0 -j ACCEPT

TODO you may have to set up masquerade and shit if you want to poke holes in the NAT between the scary outside and the safe LXD network


lxc network attach lxdbr0 c1 eth0

lxc config device set c1 eth0 name eth0

lxc config device set c1 eth0 host_name veth000001

lxc config device set c1 eth0 ipv4.address 10.38.15.11


-- Response ended

-- Page fetched on Thu May 23 17:41:24 2024