I have asked this question elsewhere (Reddit) to no avail so thought I would try here. I run an instance of Microsoft SQL Server on a privileged Ubuntu 20.04 Standard Template LXC on Proxmox 7.1-12 to store the point of sale database for a small retail business (1-5 users connected at a time max). I’m very happy with the setup and have been trying to add the machine learning services to let me run python scripts in database. I’m following the: Install SQL Server Machine Learning Services (Python and R) on Linux guide from microsoft.
The install goes fine however I cannot get the service started, the mssql-launchpadd.service fails with this error: [launchpadd] ERROR: [RG] Failed to create new V1 cgroups: cgroups: cgroup mountpoint does not exist . I found this error by running journalctl -u mssql-launchpadd.service -b . It appears to be something with systemd not liking being stuck in an LXC or possibly a permissions issue. As a hobbyist I can’t get much further than that.
I have tried the exact same guide on an Ubuntu 20.04 VM on the same proxmox instance and everything spins up fine. I have also replicated the error on a completely separate fresh proxmox install.
Any help at this stage would be greatly appreciated. If the answer is to just transition to a VM setup I can live with that.
1 Like
I might be wrong, but did you enable nesting and switch back to cgroups v1?
Since Proxmox 7 (I believe) they switched to cgroupsv2 and that might break compatibility.
LXC is a hack around cgroups, so I’m not sure if you can change that. You may be able to set your container to privileged mode, but even then, I’m not sure it will work properly. I haven’t messed around with it enough to know.
UPDATE: Also turned on nesting and the error went away. Service seems to be working now! however there is now an issue with the python service directly but It’s no longer a proxmox issue I don’t think. Thanks for your help.
Thanks for the hint!
I did some digging in the Proxmox documentation and worked out how to set cgroups to legacy mode using: GRUB_CMDLINE_LINUX_DEFAULT="quiet systemd.unified_cgroup_hierarchy=0"
That totally worked! only to lead to another error this time apparently permission related: [launchpadd_init_ns] ERROR: Failed to initialize namespace because: Failed to do PivotRoot: permission denied. Running on a VM it looks like the successful outputs are:
[launchpadd_init_ns] INFO: Create Symbolic Links for device files
[launchpadd_init_ns] INFO: Waiting for signal to continue
Any idea what could be causing that? I guess the important other question in my mind is what kind of affect does going to cgroupsv1 have on other LXC i’m running on the same machine. They are not running anything exotic mind you, just don’t want to be nuking other stuff.
My best guess would be that it’s trying to create a device node with mknod. But since I have no idea what this services is doing, I am not sure.
Have you tried using their docker based mssql? Docker should now work with nesting enabled.
Yeah I think it is going to be more trouble than it’s worth. I am going to transition to a VM for now and possibly Docker in the future. Thanks for your help.
1 Like