LXC Containers

hci

Verified User
Joined
Jun 15, 2004
Messages
372
Is anyone running Directadmin inside an LXC container? Any issues? Proxmox is switching too LXC now.
 
LXC not yet support quota in container.


This is error when changing password
Code:
Error changing password

Click here to return to the main page

Details

Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
Unable to connect to the database


Error with system Quotas
setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota.
Debug Guide

Error with system Quotas
setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota.
Debug Guide

I have fix quota problem by replace /usr/sbin/setquota with a blank file
( thank to this post -> https://forum.directadmin.com/showthread.php?t=29577&p=250974#post250974 )
Code:
# cd /usr/sbin
# mv setquota setquota.old
# touch setquota
# chmod 755 setquota

and fix mysql.sock error from this thread
https://forum.proxmox.com/threads/directadmin-mysql-and-centos-lxc-container.25365/
Code:
Shutdown container

# zfs get -r acltype /rpool/subvol-100-disk-1
NAME                     PROPERTY  VALUE     SOURCE
rpool/subvol-100-disk-1  acltype   posixacl  local

# zfs inherit acltype rpool/subvol-100-disk-1

# zfs get -r acltype /rpool/subvol-100-disk-1
NAME                     PROPERTY  VALUE     SOURCE
rpool/subvol-100-disk-1  acltype   off       default

Start container

Now change password not show any error
Code:
Password Changed

Click here to return to the main page

Details

Account password changed
 
It would be so nice if Directadmin supported LXC out of box. Any chance we can get changes implemented directly in Directadmin?
 
Back
Top