[lxc-users] LXD network access on wifi-only host witout bridge	adapter
    Jeff Kowalczyk 
    jeff.kowalczyk at gmail.com
       
    Tue Oct 11 18:50:22 UTC 2016
    
    
  
On Fri, Oct 7, 2016 at 10:25 PM, Jeff Kowalczyk
<jeff.kowalczyk at gmail.com> wrote:
> % lxc network create network0
> error: Failed to list ipv6 rules for network0 (table nat)
The problem was fixed by adding Linux kernel config I had overlooked:
DUMMY: needed for network commands
IP6_NF_NAT: needed for network commands
IP6_NF_TARGET_MASQUERADE: needed for network commands
NET_IPGRE: needed for network commands
NET_IPGRE_DEMUX: needed for network commands
NF_NAT_MASQUERADE_IPV6: needed for network commands
I can now add networks without error.
$ lxc network show network0
name: network0
config:
  ipv4.address: 10.76.73.1/24
  ipv4.nat: "true"
  ipv6.address: fd42:a3b6:96a3:6e7e::1/64
  ipv6.nat: "true"
managed: true
type: bridge
usedby:
- /1.0/containers/ubuntu-dev
I can also use the LXD network commands to bridge to eth0 without a
wired connection active. This completely solves my original question,
Thanks!
Network interfaces as follows in this configuration:
% sudo ifconfig
eth0: flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC>  mtu 1500
        ether (snip)  txqueuelen 1000  (Ethernet)
lo: (snip)
network0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 10.76.73.1  netmask 255.255.255.0  broadcast 0.0.0.0
        inet6 fd42:a3b6:96a3:6e7e::1  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::fcae:caff:fe4c:9a9c  prefixlen 64  scopeid 0x20<link>
        ether (snip)  txqueuelen 1000  (Ethernet)
veth1C0VGX: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 169.254.55.40  netmask 255.255.0.0  broadcast 169.254.255.255
        inet6 fe80::fcae:caff:fe4c:9a9c  prefixlen 64  scopeid 0x20<link>
        ether (snip)  txqueuelen 1000  (Ethernet)
wlan0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.1.100  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::76e5:bff:fe10:e842  prefixlen 64  scopeid 0x20<link>
        ether (snip)  txqueuelen 1000  (Ethernet)
    
    
More information about the lxc-users
mailing list