Custom shell scripts and configuration files for patching various issues that may appear when using waydroid. The currently uploaded scripts may help with the following issues;
LXC bridge interface (lxcbr0) binds to port 53 on boot. This may interfere if you have a DNS server running. The files provided under LXC-net folder have example settings that fix this problem by disabling the bind and using certain DNS public servers. You may further configure them to your preferences.
Note
After changing these files, don't forget to run sudo systemctl restart lxc-net, in order for changes to take place!
Note
In order for changes to take place, you have to restart waydroid. A way to do that is the following;
$ waydroid session stop $ sudo systemctl restart waydroid-containerIf you read the default waydroid-net.sh, usually located under /usr/lib/waydroid/data/scripts, you may see that dnsmasq binds again port 53 in order to run the local DNS resolver, which may interfere if you already have a DNS server running. The waydroid-net-without-dns-port-bind.sh script, solves exactly this issue by disable port binding and setting custom DNS servers.
In addition it updates and creates the required the firewall rules using the following precedence order;
nftablesiptables-legacyiptables
If you use iptables primarily (e.g. running other containerization software) and have the other programs installed as well, this will mess up your firewall tables, ending up to more networking problems. The waydroid-net-force-iptables-and-without-dns-port-bind.sh script forces the uses of iptables and again disable port binding by setting custom DNS.
In this case, a Wayland compositor is required. I used and recommend Weston for this job. You may find example weston config file, startup script and desktop entry unter weston-fullscreen folder.
Note
weston.ini must be placed under ~/.config in order for weston to read it. You may find more configuration option in weston.ini manpage.