(Lab Series)
VM1 Container VM2
+ + +
191.0.0.10 eth1 +----br1----+ eth1 191.0.0.20
192.0.0.10 eth2 +----br2----+ eth2 192.0.0.20
193.0.0.10 eth3 +----br3----+ eth3 193.0.0.20
+ +host$ git clone https://github.com/thachmpham/lab.git
host$ cd lab/alpine/2-nodeshost$ docker compose build
host$ docker compose up --detachhost$ docker exec -it apk bashcont$ ./create_vm1.shOn VM1, create a file named ans_vm1 with the same content as lab/alpine/2-node/ans_vm1.
Install Alpine to VM1.
vm1$ setup-alpine -e -f ans_vm1
vm1$ poweroffcont$ ./start_vm1.shvm1$ vi /etc/ssh/sshd_config
# ------------------------------ #
PermitRootLogin yes
PasswordAuthentication yes
PermitEmptyPasswords yes
# ------------------------------ #
vm1$ rc-service sshd restartcont$ ssh vm1vm$ vi /etc/apk/repositories
http://dl-cdn.alpinelinux.org/alpine/v3.24/main
http://dl-cdn.alpinelinux.org/alpine/v3.24/communitycont$ ./create_vm2.shOn VM2, create a file named ans_vm2 with the same content as lab/alpine/2-node/ans_vm2.
Install Alpine to VM2.
vm2$ setup-alpine -e -f ans_vm2
vm2$ poweroffcont$ ./start_vm2.shvm2$ vi /etc/ssh/sshd_config
# ------------------------------ #
PermitRootLogin yes
PasswordAuthentication yes
PermitEmptyPasswords yes
# ------------------------------ #
vm2$ rc-service sshd restartcont$ ssh vm2vm$ vi /etc/apk/repositories
http://dl-cdn.alpinelinux.org/alpine/v3.24/main
http://dl-cdn.alpinelinux.org/alpine/v3.24/communityQEMU keys: