This tutorial is referenced from NEM’s tutorial website.
Step 1: Set up your own virtual machine
For most users who are stuck on Windows 10 Home version, docker and docker-compose are not available for you, hence you have to create your own Linux Machine using a VM (it is not hard, trust me on this). Link to download here. Select Windows Installer and run the installer.
We are going to run a Linux Machine, so here’s an iso file for you to load ur Linux.
After finish installing, open your Oracle VM and click new.
Next, give a name to ur VM and select the OS to be Linux
Put at least 1GB of RAM, I put 2 GB cause I want my browser to run smoother, but it is up to you.
Go through the following steps:
I put 20 GB hard disk space because your private-chain will eat up ur hard disk quite fast, but it won’t crash the system so it is alright.After you create the virtual machine, select your disk image.Go to settings, and click the Network tabs.Click port forwarding, so we can set our localhost to retrieve block information easier.
Create a rule by clicking on the green icon, and make sure both host port and guest port are 3000. And click ok then hit the Start button on your VM.
Step 2: Running the catapult-service-bootstrap aka private chain on localhost.
As long as your focus is on the screen, you will be able to access the Linux machine just like you owned a Linux Laptop (hooray!). Open the terminal and run these command lines:
sudo apt install git docker docker-compose
Run your private-chain!
git clone https://github.com/tech-bureau/catapult-service-bootstrap.git cd catapult-service-bootstrap sudo ./cmds/start-all -d
Congratulations! You have run your first private-chain!
To access the block information, just open a browser in your Linux Machine or your local machine, and type in the address http://localhost:3000/block/1, you should see something like this:
As time goes by, your block heights will slowly increase, my highest height is 304, but I am out of disk space so it doesn’t increase anymore 😦