bunnybooboo / learning-path

1 stars 1 forks source link

Arch Linux LXC status outputs #1

Open bunnybooboo opened 6 years ago

bunnybooboo commented 6 years ago

via https://github.com/bunnybooboo/learning-path/blob/master/sandbox/lxc/fresh-start.md I get the following status output:

NetworkManager.service

dnsmasq.service

lxc-net.service

bunnybooboo commented 6 years ago

Additionally edited the container config file with lxc.net.0.veth.pair = arch-test-001, installed bridge-utils pacman -S bridge-utils, then brctl show outputs:

bridge name bridge id STP enabled interfaces
lxcbr0 8000.00163e000000 no arch-test-001
bunnybooboo commented 6 years ago

Tried setting up another basic dnsmasq:

listen-address=127.0.0.1
port=53
bind-interfaces
pid-file=/var/run/dnsmasq.d

and again the error failed to create listening socket for 127.0.0.1: Address already in use

Switched the listen address to 127.0.1.1 and the error goes away.

bunnybooboo commented 6 years ago

AHHHH! Just spotted a file called dnsmasq.conf.pacsave which was using the same listen address. Renamed it and the error stays away if I switch back to 127.0.0.1

bunnybooboo commented 6 years ago

Now going back through what I had previously setup, it appears the wiki https://wiki.archlinux.org/index.php/Dnsmasq#NetworkManager defines creating the connection for dnsmasq. This could be where the duplication comes in. Other people trying to help me have not spotted that as they don't use NetworkManager.

bunnybooboo commented 6 years ago

Meh. There STILL is something overriding these listening settings in dnsmasq.

bunnybooboo commented 6 years ago

Switching the bind-interfaces back to bind-dynamic seems to fix. I now, finally, have green statuses for NetworkManager, Dnsmasq, and lxc-net. Active & running Dnsmasq