Memory detection in Docker and LXC containers

#1
Hi,

I'm looking at deploying Litespeed in LXC (ideally) or Docker (if LXC won't work) containers, but when I try to install LSWS Enterprise to test it in either option the server/hypervisor memory is detected and the licensing part won't let me proceed. I've tried both Ubuntu and Centos 8 LXC containers, and Docker from within Cyberpanel with the offical litespeedtech/litespeed container image.

Example error message, in a 2GB container on a hypervisor with 16GB RAM:

[NOTICE] Memory size is 16366692KB
[ERROR] [LICENSE] License key operation failure: ERR LR.R: Free Starter license cannot be used on server with more than 2GB memory.

top reports the memory in the container correctly as 2GB.

Please note that this is a test environment only, we'd be looking at purchasing licenses for larger containers.

Is there a way that licensing can work correctly for containers?
 

Unique_Eric

Administrator
Staff member
#2
In some cases that LSWS detects LXC's memory instead of the container may be due to some LXC settings. I'm not sure how to fix it, but for testing purposes, you can use a trial license.
 
Top