Setup CloudLinux OS on AlmaLinux Based VPS to better control limits management

·

Step 1 — prepare the system

Run on shell as root (or with sudo):

# update system
dnf update -y

# install tools
dnf install -y wget curl

(If dnf prompts about restarting services, handle per your routine — but don’t interrupt the conversion once it starts.)

Step 2 — download the CloudLinux conversion script

cd /root
wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
chmod +x cldeploy

Official CloudLinux docs reference the cldeploy converter for AlmaLinux → CloudLinux.

Step 3 — run the conversion (use your license key)

Replace YOUR_LICENSE_KEY below with the key you received from CloudLinux. If you purchased via cPanel/WHM check how the license is provided (sometimes IP-based licenses are used).

# with license key
sh cldeploy -k YOUR_LICENSE_KEY

Step 4 — verify conversion

After reboot, SSH back in and check:

# OS release
cat /etc/os-release

# check kernel (CloudLinux kernel shows in uname -r)
uname -r

# check CloudLinux packages installed
rpm -qa | grep -i cloudlinux

You should see CloudLinux OS 9 references in /etc/os-release and a CloudLinux kernel active.

Step 5 — enable and check LVE tools

CloudLinux includes command-line utilities like lvetop, lveps, lvectl. Quick checks:

# show live LVE usage
lvetop

# list processes inside LVE for a user (interactive)
lveps -p

# example: show package list for cloudlinux
lvectl list

CloudLinux docs show how to monitor and manage LVEs with these tools.

Step 6 — set sensible default LVE limits (recommended for your VPS)

CloudLinux LVE CPU limits are expressed as SPEED (%) where 100% = 1 CPU core. So on a 6-vCPU VPS, 600% = all cores. (Docs explain 100% → 1 core). docs.cloudlinux.com+1

Recommended starting defaults for a multi-site cPanel (you can tighten/loosen later):

  • SPEED (CPU): 50% (half a core) — default for small sites
  • PMEM (Physical memory): 512M
  • IO: 1024 (KB/s)
  • EP (Entry processes): 20
  • NPROC (Processes): 200 (or leave default)

You can set using lvectl (example for username exampleuser):

# set limits for a specific user (exampleuser)
lvectl set exampleuser --speed=50% --pmem=512M --io=1024 --ep=20 --nproc=200

# verify
lvectl limits exampleuser

Or you can set defaults in WHM → LVE Manager → Packages and Profiles (preferred for many accounts). Guidance on units and typical values is in CloudLinux docs.