Hello all!
This is my first post here, and I am since a couple of days back, a user of proxmox in my home environment. Let me say that im seriously impressed with how this behaves, is setup and simply just works out of the box.
Yesterday, I started fiddling with the CT templates, and downloaded and started a ubuntu template.
It all seemed to work fine, so I started to mess around with zerotier inside the ct container. However, I could not get it to work properly(when trying to join a network, I get a 500 respons), but after som googling, I realized that TUN is not working out of the box. This was due to the fact that a CT uses the hosts kernel, since it does not have it's own(from what I could understand atleast). This led me further down the rabbit how, and then realizing that I had to do a small configuration inside the .conf file for that specific container.
What I did was on my proxmox host, was editing this file "/etc/pve/lxc/ctxxx.conf" with these 2 lines which enabled me to get zerotier working on the container, and connect to my zerotier network. After adding the lines, I simply rebooted the ct.
Ok, this is super good to get it working, but Im wondering if there is a way of modifiying the origin of this file(which i guess is generated when i create a new CT from a template), to contain these 2 extra rows, to make them always exist when I create a new ct.
Do anyone know if this is possible?
This is my first post here, and I am since a couple of days back, a user of proxmox in my home environment. Let me say that im seriously impressed with how this behaves, is setup and simply just works out of the box.
Yesterday, I started fiddling with the CT templates, and downloaded and started a ubuntu template.
It all seemed to work fine, so I started to mess around with zerotier inside the ct container. However, I could not get it to work properly(when trying to join a network, I get a 500 respons), but after som googling, I realized that TUN is not working out of the box. This was due to the fact that a CT uses the hosts kernel, since it does not have it's own(from what I could understand atleast). This led me further down the rabbit how, and then realizing that I had to do a small configuration inside the .conf file for that specific container.
What I did was on my proxmox host, was editing this file "/etc/pve/lxc/ctxxx.conf" with these 2 lines which enabled me to get zerotier working on the container, and connect to my zerotier network. After adding the lines, I simply rebooted the ct.
Code:
lxc.cgroup.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
Ok, this is super good to get it working, but Im wondering if there is a way of modifiying the origin of this file(which i guess is generated when i create a new CT from a template), to contain these 2 extra rows, to make them always exist when I create a new ct.
Do anyone know if this is possible?