Setting up hosts on VM1 and VM2, example:
vim /etc/hosts Add:
192.168.57.201 saka.id 192.168.57.202 sira.id Configuration on VM1: mysql mysql> GRANT REPLICATION SLAVE ON *.* TO 'repl_user'@'%' IDENTIFIED BY 'secretpassword'; mysql> FLUSH PRIVILEGES; Configuration MySQL, disable config like (expire_logs_days, max_binlog_size dan bind-address).