Changes between Version 18 and Version 19 of NeoContainers
- Timestamp:
- Oct 2, 2015 2:53:22 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NeoContainers
v18 v19 4 4 5 5 === HOWTO run neo-containers === 6 7 Note that much of the guts are still on over for these instructions. Much of the guts though are wrapped up in scripts that will themselves be wrapped in a single neo-containers script once everything has been more thoroughly tested. 6 8 7 9 1. Checkout the containers repository and switch to the {{{configdb}}} branch: … … 34 36 tb-add-node-attribute $c3po containers:image_type vagrant 35 37 tb-add-node-attribute $c3po containers:image_name ubuntu/trusty64 36 tb-add-node-attribute $ r2d2containers:image_url http://scratch/containers/deter_ub1404_64_vb.box38 tb-add-node-attribute $c3p0 containers:image_url http://scratch/containers/deter_ub1404_64_vb.box 37 39 }}} 38 40 … … 52 54 source tb_compat.tcl 53 55 54 tb-make-soft-vtype container0 { pc2133 MicroCloud}56 tb-make-soft-vtype container0 {dl380g3 pc2133 MicroCloud} 55 57 set pnode(0000) [$ns node] 56 58 tb-set-node-os ${pnode(0000)} PNODE-CONT … … 62 64 }}} 63 65 64 5. Populate the configuration database that runs on {{{chef.isi.deterlab.net}}} by running the database population scripts. (This will automated in the future.) This should be run from a physical node in the experiment. I use {{{pnode-0000}}} in the example below. 66 5. Swap in the experiment. 67 68 6. Populate the configuration database that runs on {{{chef.isi.deterlab.net}}} by running the database population scripts. (This will automated in the future.) This should be run from a physical node in the experiment. I use {{{pnode-0000}}} in the example below. 65 69 66 70 {{{ … … 71 75 }}} 72 76 73 6. Swap in the experiment and wait a long time. There is no great way to tell when the containers are up, unfortunately. Tail the start-cmd output on the {{{config}}} node and look for the "complete" message. 74 {{{ 75 users: > ssh config.GID.PID 76 config: > tail -F /local/logs/config_startcmd.out 77 }}} 78 77 At this point, the Chef server and configuration database knows everything it needs to about your experiment and the nodes within it. 78 79 7. Let Chef configure the nodes. Bootstrap and configure the pnodes. To configure/bootstrap the node use the {{{bootstrap_node.sh}}} script. The script needs to know which role the node plays in the experiment. There are currently three roles: {{{pnode}}}, {{{container}}}, and {{{win-container}}}. 80 81 On your pnodes: 82 {{{ 83 > ssh pnode-0000.${EXPID}.${PROJID} 84 > cd [your container repository] 85 > ./bootstrap_node.sh -r pnode 86 }}} 87 88 The {{{pnode}}} role will spawn the containers and configure them. 89 90 Once nodes are bootstrapped, simply running {{{sudo chef-client}}} will re-configure the nodes if something should go wrong. 79 91 80 92 Fun things to do after the containers are running.