Hi all,
I was trying to run lxd containters in wsl2 distro(Kali linux), I will start with some steps I have taken so far:
1. Installed wsl2 Kali image from MS Store with the latest kernel.
2. Converted it to WSL2 and installed distrod from https://github.com/nullpo-head/wsl-distrod
3. Installed snapd and lxd in stable channel. (Maybe it would be worth poining that I have not done any change to my WSL network configuration)
4. Tried to run
lxd init --minimal
(I knew the default options an I was fine with it) but got following error message:
table inet lxd {
chain pstrt.lxdbr0 {
type nat hook postrouting priority 100; policy accept;
ip saddr 10.90.183.0/24 ip daddr != 10.90.183.0/24 masquerade
}
}
: Error: Could not process rule: No such file or directory
^^^^^^^^^^^^
Error: Could not process rule: No such file or directory
^^^^^^^^^^^^
I ended up with specifying my current anapter eth0 as default network, but it does not allow the containers I create to connect to the internet.
This error seems weird, due to the fact that I did not install nftables in any form or any other firewall utility.
What I tried was to create network of type bridge with ipv4 firewall disabled
lxc network createlxdbr1 ipv6.address=none ipv4.firewall=false
as well as to install nftables and add the chain manually
nft add chain inet lxd pstrt.lxdbr0 { type net hook postrouting priority 100 \; }
The same setup works for Ubuntu 20.04 in WSL2 with distrod installed, what am I missing here?