Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Disable venet interface

363 bytes added, 06:31, 7 June 2015
added category
If you have configure configured [[veth]] correctly and want to get rid of [[venet]] interface modify ''/etc/init.d/vz'' following this step: '''Note: In Debian systems (Ubuntu and more) for disable venet interface it's enough with the next second step'''(Comment line ''VZDEV=venet0'' (~ line 53).).''''''Don't forget edit (in Debian example) /etc/network/interface file in (/var/lib/vz/private/$VEID/ and remove venet configuration in that file''' 
1. /etc/init.d/vz stop before going further.
The start_net function should look like this:
 <codesource lang="bash">
start_net()
{
# 2009-10-29 Michael Plourde
###################################
}</codesource>
5. Modify the stop_net function (~ line 351) to look like this:
<codesource lang="bash">
stop_net()
{
/sbin/modprobe -r ${mod} > /dev/null 2>&1
done
}</codesource>
6. That's all. You can now start your VEs:''/etc/init.d/vz start''
 
[[Category:HOWTO]]