42 | | ==== Apply the Patch on All Nodes ==== |
43 | | |
44 | | In order to create VLAN interfaces on a node, you need to patch your plnet.py file. This will need to be done on each !PlanetLab node associated with your MyPLC. |
45 | | * Copy the patch file to your nodes: |
46 | | {{{ |
47 | | scp ~/plifconfig-<version>/nodes/plnet.patch root@<fqdn_of_node>:~/ |
48 | | }}} |
49 | | |
50 | | * Login to the node as root |
51 | | * Create a copy of the original plnet.py, and keep it in your home directory for safe keeping: |
52 | | {{{ |
53 | | cd /usr/lib/python2.5/site-packages/ |
54 | | cp plnet.py ~/plnet.py.orig |
55 | | }}} |
56 | | |
57 | | * Still on the node as root, apply the patch: |
58 | | {{{ |
59 | | cd /usr/lib/python2.5/site-packages/ |
60 | | patch < ~/plnet.patch |
61 | | }}} |
62 | | |
63 | | * Restart !NodeManager on the node: |
| 45 | ==== Apply the Patch to `plnet.py` File on All Nodes ==== |
| 46 | |
| 47 | In order to create VLAN interfaces on a node, you need to patch your `plnet.py` file on '''each''' !PlanetLab node associated with your MyPLC. The following instructions assume that your MyPLC machine has patch installed. |
| 48 | |
| 49 | * Log into your MyPLC-based !PlanetLab node as root and make a backup of the existing `plnet.py` file |
| 50 | {{{ |
| 51 | cp /usr/lib/<python-version>/site-packages/plnet.py ~/plnet.py.orig |
| 52 | }}} |
| 53 | |
| 54 | * From your MyPLC machine, copy the `plnet.py` file over from your MyPLC-based !PlanetLab node. |
| 55 | {{{ |
| 56 | scp root@<myplc-node>:/usr/lib/<python-version>/site-packages/plnet.py ~/ |
| 57 | }}} |
| 58 | |
| 59 | * Apply the patch from your patch machine: |
| 60 | {{{ |
| 61 | patch ~/plnet.py < ~/<plifconfig-version>/nodes/plnet.patch |
| 62 | }}} |
| 63 | |
| 64 | * If the patch succeeded, copy the newly patched file from your patch machine over to your MyPLC-based !PlanetLab node: |
| 65 | {{{ |
| 66 | scp ~/plnet.py root@<myplc-node>:~/usr/lib/<python-version>/site-packages/ |
| 67 | }}} |
| 68 | |
| 69 | * Login to the MyPLC-based !PlanetLab node as root and restart !NodeManager: |