Page 1 of 1

[Solved] "/dev/net/tun": no such file or directory`

Posted: Tue Feb 06, 2024 5:28 pm
by usr3

Thought i would post a something fixed an issue for me for the following error, I believe its in reference to gluetun:

Code: Select all

Error response from daemon: error gathering device information while adding custom device "/dev/net/tun": no such file or directory`

Heres the fix:

Code: Select all

sudo mkdir -p /dev/net
sudo mknod /dev/net/tun c 10 200
sudo chmod 600 /dev/net/tun

However, when I reboot the serve I need to re-add it, could someone hint why?


Re: "/dev/net/tun": no such file or directory`

Posted: Tue Feb 06, 2024 5:31 pm
by rogs

Hey!

First of all, the issue is not "Solved", so I removed the "[Solved]" flair.

Second, you should not need to create your own /dev/net/tun device. It looks like you are running YAMS in an unsupported environment. Can you give more insight on how are you running YAMS? Is it bare metal? Is it a VM? VPS? LXC? What OS are you running?

Cheers!


Re: "/dev/net/tun": no such file or directory`

Posted: Tue Feb 06, 2024 5:36 pm
by usr3

Hi, im running on proxmox using an ubuntu lxc (im new to everything .. :roll: )


Re: "/dev/net/tun": no such file or directory`

Posted: Tue Feb 06, 2024 5:39 pm
by rogs

That's what I thought :)

You need to run a Proxmox privileged LXC in order to have access to /dev/tun devices.

https://forum.proxmox.com/threads/how-t ... ner.25339/

I'm marking the issue as solved since it's not related to YAMS! :D


Re: [Solved] "/dev/net/tun": no such file or directory`

Posted: Tue Feb 06, 2024 5:44 pm
by usr3

Thanks, I think it's fixed now due to that post.


Re: [Solved] "/dev/net/tun": no such file or directory`

Posted: Thu Sep 26, 2024 10:03 pm
by 1000_Sparrows

I am dealing with this same issue. I created a container that has Unprivileged Container: No as the setting on my Proxmox server. I have not tried creating the tun item either.


Re: [Solved] "/dev/net/tun": no such file or directory`

Posted: Fri Nov 22, 2024 3:47 pm
by FireWyvern

I don't think running qbt in privileged LXC is a good idea. Is there any way to omit gluetun from the setup?

On another note, I also don't need jellyfin since i have it in another lxc but install.sh still asks me anyway, how do I omit that from the setup? should I open new issue?


Re: [Solved] "/dev/net/tun": no such file or directory`

Posted: Fri Nov 22, 2024 5:46 pm
by rogs

Hey @usr3!

To omit Gluetun you can just answer "No" to the VPN question.

Regarding the media server, it is an integral part of YAMS and we are not going to remove it from the installer. If you don't need it, feel free to manually remove it from your result docker compose file :D

Cheers!

Roger.