- Create a virtual machine
- Change the network to bridge mode
- Install Ubuntu Server OS
- Setup the hostname to something like “node-01”
- Boot up the new virtual machine
- Remove some network rules
sudo rm -rf /etc/udev/rules.d/70-persistent-net.rules
- Clone the virtual machine
- Initialize with a new MAC address
- Boot up the cloned virtual machine
- Edit /etc/hostname: change “node-01” to “node-02”
- Edit /etc/hosts: change “node-01” to “node-02”
- Reboot the cloned virtual machine
- Repeat step 7 to 13 until there are enough nodes
Note: the ip address of each node should start with “192.168.” unless you don’t have a router.