[SOLVED] LXC with /dev/ppp

mokaz

Member
Nov 30, 2021
85
18
13
Hi all,

I would like to know how should I setup the following PVE Host instructions to be automatically fired/ran at PVE Host boot time?
Code:
chown 100000:100000 /dev/ppp
What's the best practice way to achieve this?

Let me know,
Thanks,
m.
 
Last edited:
Hey,

you can pass the device (/dev/ppp) through to the container("Resources" > "Add" > "Device Passthrough") and set the owner permissions it should have within the container. Is there a reason this is not an option for you?
 
  • Like
Reactions: mokaz
Hi Hannes,

Thanks a lot for your time !!! Well TBH firing this from the host worked usually so I haven't really spent time on the question, let me test out this way, it looks clean. I'll let you know, cheers and thanks !

M.

UPDATE: hummm...
Code:
DEBUG    utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-autodev-hook 100 lxc autodev produced output: Could not mknod /usr/lib/x86_64-linux-gnu/lxc/rootfs/dev/ppp: File exists
 
Last edited:
Hi Hannes, team,

This works all fine -- just needed to edit my LXC and shuffle a few things around and now with the passthrough it's working great !!!

Thanks,
Cheers,
m.