8
edits
Changes
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>: