Changes

Jump to: navigation, search

Virtual Ethernet device

1 byte added, 00:36, 12 September 2009
m
Configure device and add route in CT0: add -> adds
You can automatize this at VPS creation by using a mount script <tt>$VEID.mount</tt>.
The problem here is that the ''veth'' interface appears in CT0 '''after''' VPS has started, therefore we cannot directly use the commands in the mount script. We launch a shell script (enclosed by { }) in background (operator '''&''') that waits for the interface to be ready and then add adds the IP route.
Contents of the mount script <tt>/etc/vz/conf/101.mount</tt>:
8
edits

Navigation menu