There’s a tutorial setting a private network in a node, with Primary and Node two “nodes” running as two directories and in two processes when brought up in a single machine. I am doing similar thing but into two physical nodes (VMs), Primary on one VM and Node on another.
What I am doing is to create the net1. Then replicate this directory to another VM.
In Primary VM, I remove net1/Node directory and bring up the network as goal network start -r net1. I mark the algod-listen.net.
In Node VM, I bring up the node with goal node start -d net1/Node -p "<publicIP+port in algod-listen.net of Primary VM>".
Both processes are running (in each VM). However I didn’t see sync between Primary and Node.
Kindly let me know if anything is missed here, OR any good document showing how to bring up a private network across two VMs.
Can you expand more on “I didn’t see a sync between Primary and Node”. I am trying to re-create your scenario. Are both VMs on the same network? Also, what is the use case for using Private network across VMs? Just curious on that one, vs two TestNet nodes?
Thanks for your reply. It is more for studying “how things work”. From the one-vm-private-network tutorial I observe that the two “nodes” are in fact two processes in a VM, reaching each other. Therefore I am thinking how to make them into two VMs such that it’s more simulating the real network.
The observation is that, once I put the Primary and Node into two VM, the blockchain is not growing up, which is different from what happens in one VM situation (block keeps increasing). Therefore I think they are not synced (guess it’s not the right term).
Guess phonebook is the right direction for me. I will explore this and try to setup.