Hi,
It's me posting in this forum after a long time.
I registered for a free
OpenVZ based VPS (Virtual Private Server) yesterday & tried to configure OpenVPN on it. Earlier, I did the same with a Xen based VPS solution. Everything worked like a charm. When I attempted to start VPN server, below is the error I encountered:
Tue May 22 01:04:47 2012 Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Tue May 22 01:04:47 2012 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Tue May 22 01:04:47 2012 Cannot allocate TUN/TAP dev dynamically
Tue May 22 01:04:47 2012 Exiting
I didn't find any TUN/TAP adapter by issuing
ifconfig
To load the TUN module manually, I did this, but nothing was loaded.
modprobe tun
Then I tried to find whether any TUN related module is present in the kernel
lsmod | grep tun
No result returned.
I did all the steps listed
here
Enter mknod /dev/net/tun c 10 200
Enter chmod 600 /dev/net/tun
Enter cat /dev/net/tun to test whether the TUN/TAP device is available:
If you receive the message cat: /dev/net/tun: File descriptor in bad state your TUN/TAP device is ready for use
If you receive the message cat: /dev/net/tun: No such device the TUN/TAP device was not successfully created: contact VPSLink Support for assistance
Please note that the TUN/TAP device will be removed if you reinstall your operating system template.
But no luck.
At this point I am sure that the OpenVZ kernel is not complied with the support for required modules. What I am asking is whether there any alternative to having native support for TUN/TAP drivers, i.e. can any third-party drivers be installed for creation of TUN/TAP devices to be used in conjunction with OpenVPN?
Reference 1
Reference 2
Reference 3
OpenVZ-Users-Guide: Page 69