Hello:
Swap space on the host is ok:
manager@andromeda:~$ sudo swapon --show
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 2G 256K 5
/dev/zram1 partition 2G 256K 5
/dev/zram2 partition 2G 256K 5
/dev/zram3 partition 2G 0B 5
/swapfile file 2G 0B -2
manager@andromeda:~$ free -h
total used free shared buff/cache available
Mem: 15G 11G 807M 53M 3.0G 3.5G
Swap: 9.8G 768K 9.8G
But there is no swap space available for containers:
manager@andromeda:~$ lxc exec sombrero -- free -h
total used free shared buff/cache available
Mem: 15G 622M 14G 164K 102M 14G
Swap: 0B 0B 0B
manager@andromeda:~$ lxc exec backward -- free -h
total used free shared buff/cache available
Mem: 15G 53M 15G 236K 69M 15G
Swap: 0B 0B 0B
manager@andromeda:~$
I´m using Ubuntu 18.04. It only happens with snap version of LXD. With the default LXD installation (package) that comes with Ubuntu swap space inside containers works just fine.
Any pointers?
Thanks a lot!