OpenVZ Forum


Home » General » Support » howto auto add VE veth to a HN bridge upon VE startup?[Solved]
Re: howto auto add VE veth to a HN bridge upon VE startup? [message #16426 is a reply to message #16419] Thu, 06 September 2007 10:19 Go to previous messageGo to previous message
xinhes is currently offline  xinhes
Messages: 6
Registered: August 2006
Location: Sundsvall, Sweden
Junior Member
Yes there is a similar interface. But oddly it's not constructed in exactly the same way as vps.mount/vps.umount. There might be some reason for this that I don't know.

I would have liked something like vps.ifup vps.ifdown where you can add your own stuff (per interface which is $1 to the script) like "brctl addif <bridge> $1"

Instructions on how to use the startup mechanisms can be found here: http://wiki.openvz.org/Virtual_Ethernet_device

Basically you have to create a script to do your stuff and add this script to the file: /etc/vz/vznet.conf like this:
#!/bin/bash
EXTERNAL_SCRIPT="/etc/sysconfig/vz-scripts/veth.ifup"

I tried to add this to vps.mount but oddly enough vps.mount is run before any virtual ethernet devices are created.

/Hans Eric Sandström

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Audit issues
Next Topic: private vs root
Goto Forum:
  


Current Time: Mon Oct 21 06:33:09 GMT 2024

Total time taken to generate the page: 0.06137 seconds