2
0
mirror of https://github.com/knorrie/network-examples synced 2025-08-28 21:18:40 +00:00

lxcbird/README: explicitly mention chmod +x

Fixes: https://github.com/knorrie/network-examples/issues/11
This commit is contained in:
Hans van Kranenburg 2021-03-07 21:04:24 +01:00
parent f000d41cb5
commit 579474e3e1

View File

@ -144,7 +144,7 @@ In the config file, instead of...
lxc.apparmor.profile = unconfined
Oh, and by the way, the lxc network script referenced is a really simple script to integrate lxc with openvswitch, which simply attaches an interface in the container to a vlan inside openvswitch based on the number after the dot. It has to be present on the host system, not in the container:
Oh, and by the way, the lxc network script referenced is a really simple script to integrate lxc with openvswitch, which simply attaches an interface in the container to a vlan inside openvswitch based on the number after the dot. It has to be present on the host system, not in the container, and it needs the executable permission bit set.
lxcbird:/etc/lxc 0-# cat lxc-openvswitch
#!/bin/sh
@ -163,6 +163,10 @@ Oh, and by the way, the lxc network script referenced is a really simple script
ovs-vsctl del-port ovs0 $5
fi
lxcbird:/etc/lxc 0-# chmod +x lxc-openvswitch
lxcbird:/etc/lxc 0-# ls -l lxc-openvswitch
-rwxr-xr-x 1 root root 314 Apr 6 2015 lxc-openvswitch
Instead of setting the container IP address and gateway in the lxc configuration file, I prefer using network/interfaces inside the container, because we'll be using that for more complex networking anyway in the tutorials:
lxcbird:/var/lib/lxc/birdbase 0-# cat rootfs/etc/network/interfaces