OpenVZ Forum


Home » General » Support » tun support - read wiki, can't get it to work.
tun support - read wiki, can't get it to work. [message #40557] Tue, 31 August 2010 19:52 Go to next message
vmvmvm is currently offline  vmvmvm
Messages: 51
Registered: January 2006
Member
Linux myhost.com 2.6.18-194.8.1.el5.028stab070.2PAE #1 SMP Tue Jul 6 15:30:49 MSD 2010 i686 i686 i386 GNU/Linux

CentOS release 5.5 (Final)


on host node:

# lsmod | grep tun
tun                    23168  0 


another user in this forum lists theirs as :

tun                    10148  2 vzrst,vzcpt


mine is missing the vzrst,vzcpt

do I need this? If so what should I do?

/etc/sysconfig/modules/tun:

#!/bin/sh

/sbin/modprobe tun



inside ve :

# lsmod | grep tun
# lsmod 
Module                  Size  Used by
# 


I've done all the steps listed in various how-to's. I've done:

vzctl set 101 --devices c:10:200:rw --save
vzctl set 101 --capability net_admin:on --save

vzctl exec 101 mkdir -p /dev/net
vzctl exec 101 mknod /dev/net/tun c 10 200
vzctl exec 101 chmod 600 /dev/net/tun


rebooted, etc.

My questions (as a first part of trouble shooting):

if tun is enabled on the ve, should it show up when I do an lsmod in the ve?

is it odd that lsmod on the ve shows no modules at all?

Thanks for all help!

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
KMEMSIZE="15252512:15252512"
LOCKEDPAGES="256:256"
PRIVVMPAGES="1000000000:1000000000"
SHMPAGES="21504:21504"
NUMPROC="400:400"
PHYSPAGES="0:2147483647"
VMGUARPAGES="33792:2147483647"
OOMGUARPAGES="26112:2147483647"
NUMTCPSOCK="360:360"
NUMFLOCK="188:206"
NUMPTY="16:16"
NUMSIGINFO="256:256"
TCPSNDBUF="1720320:2703360"
TCPRCVBUF="1720320:2703360"
OTHERSOCKBUF="1126080:2097152"
DGRAMRCVBUF="262144:262144"
NUMOTHERSOCK="360:360"
DCACHESIZE="3409920:3624960"
NUMFILE="9312:9312"
AVNUMPROC="180:180"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="20971520:23068680"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"


VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="centos-5-x86"
ORIGIN_SAMPLE="basic"
NAMESERVER="x.x.x.x"
IP_ADDRESS="x.x.x.x"
HOSTNAME="host.com"
DEVICES="c:10:200:rw "
CAPABILITY="NET_ADMIN:on "
IPTABLES="ip_tables iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ip_conntrack_ftp ipt_state iptable_nat ip_nat_ftp "

[Updated on: Tue, 31 August 2010 20:09]

Report message to a moderator

Re: tun support - read wiki, can't get it to work. [message #40573 is a reply to message #40557] Thu, 02 September 2010 12:04 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Quote:

if tun is enabled on the ve, should it show up when I do an lsmod in the ve?


No.
Quote:

is it odd that lsmod on the ve shows no modules at all?


Don't be afraid of this fact. What really matters is that tun is loaded on the HN and thus VE is able to use that functionality. If it is convenient for you imagine VE as a standalone box with each module compiled in a kernel.
Previous Topic: stack/X local root exploit fix?
Next Topic: CTID.mount mounts several file systems - what about quotas?
Goto Forum:
  


Current Time: Fri Oct 18 04:44:20 GMT 2024

Total time taken to generate the page: 0.05094 seconds