Getting ntsync in LXC

Jul 15, 2023
8
0
6
Was looking at the recent Wine released and realized that ntsync is probably why i have bad performance in one of my game servers (Enshrouded). Looks like the
Code:
/dev/ntsync
is showing up on the host so I tried to pass it into the LXC like I do with any other device like a GPU, USB, etc. but it is not showing up inside of the LXC.

Here what I put into the .conf
Code:
lxc.cgroup2.devices.allow: c 10:261 rwm
lxc.mount.entry: /dev/ntsync /dev/ntsync none bind,optional,create=file
lxc.hook.pre-start: sh -c "chown 100000:100000 /dev/ntsync"
  • Host
    • Linux 6.17.4-2-pve
    • pve-manager/9.1.4
  • LXC
    • debian Trixie
    • unprivileged
 
I think you have a / too many in your lxc.mount.entry. Have you tried the much easier way, using the recent way in the Proxmox web GUI, by adding a Device Passthrough to the container (instead of the low-level lxc lines)?
 
Interestingly, I realized today that in some LXCs i have that first slash and others i don't. Doesn't seem to make a difference somehow. I'll have to spin up another LXC and manually verify that.

Also I can't use the GUI to add device passthrough. I totally forgot why but its grey'ed out on all of my nodes. i know i looked it up once.
 
The second path is relative. Can you share pct config CTIDHERE and pveversion as code block and a picture of the greyed out option as well as node > Summary?
 
Last edited: