<div dir="ltr"><div><div><div><div>To setup a test cluster, you do not need VMs.  You can run multiple nodes on the same computer.  Here is the process on any computer with bash and Tahoe-LAFS already installed:<br><br></div>

cd $directoryWithSpace<br></div>tahoe create-introducer test-introducer<br></div>tahoe start test-introducer<br>export introducerFURL=$(cat test-introducer/introducer.furl)<br>for testNode in $(seq 0 9);<br>do<br>  tahoe create-node testNode${testNode}<br>

  sed -i -e 's#^introducer.furl.*#introducer.furl = '$introducerFURL'#g' -e 's#web.port = tcp:3456:interface=127.0.0.1#web.port = tcp:345'${testNode}':interface=127.0.0.1#g'   testNode${testNode}/tahoe.cfg<br>

  tahoe start testNode${testNode}<br>done;<br>tahoe -d testNode0/ webopen<br><br></div>Running the 11 nodes takes a bit of memory, but only ~65 MB a piece.  It's quick and responsive on my 4 year old laptop with 3GB of RAM.  It uploaded a 20MB file in a second and you can even see the files that it creates:<br>

find . -type f| grep shares                                                                                                                                <br>./testNode9/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/1<br>

./testNode8/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/2<br>./testNode6/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/9<br>./testNode7/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/0<br>./testNode1/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/7<br>

./testNode5/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/3<br>./testNode4/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/4<br>./testNode3/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/6<br>./testNode2/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/5<br>

./testNode0/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/8<br><br>xxd ./testNode7/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/0 | head<br>0000000: 0000 0001 006d 7428 0000 0001 0000 0001  .....mt(........<br>0000010: 0000 aaab 006c afce 0000 0024 006c aff2  .....l.....$.l..<br>

0000020: 006c efd2 006d 2fb2 006d 6f92 006d 703c  .l...m/..mo..mp<<br>0000030: 6898 cc73 63a2 4466 f2e8 b797 b53e aafd  h..sc.Df.....>..<br>0000040: 8420 c211 37ec 1e5c d4ea 20c9 e2f6 63a2  . ..7..\.. ...c.<br>0000050: cdaf e031 7e1b ff59 1590 e438 320a a2df  ...1~..Y...82...<br>

0000060: 0524 1bdb c3e3 11ec eccc 7720 8c58 59c4  .$........w .XY.<br>0000070: 783e 7464 e32f 0a85 0c8d 975d 8b8b fa4e  x>td./.....]...N<br>0000080: 9271 6cc7 656e 4570 ad8a fa24 b41b 1532  .ql.enEp...$...2<br>0000090: 7526 3068 3dab 8974 4928 b1a4 8ad6 a1ee  u&0h=..tI(......<br>

<br></div>