(Lab Series)
+------- Host ---------+
| +----- Container -+ |
| | +- VM ---+ | |
| | | | | |
| | +--------+ | |
| +-----------------+ |
+----------------------+host$ git clone https://github.com/thachmpham/lab.githost$ cd lab/alpine/1-node
host$ docker compose build
host$ docker compose up --detachhost$ docker exec -it apk bashcont$ cd /ws
cont$ ./create_vm.shOn the VM, create a file named ans with the same content as lab/alpine/1-node/ans.
Install Alpine to the VM.
vm$ setup-alpine -e -f ansvm$ poweroffcont$ ./start_vm.shvm$ vi /etc/ssh/sshd_config
# ------------------------------ #
PermitRootLogin yes
PasswordAuthentication yes
PermitEmptyPasswords yes
# ------------------------------ #
vm$ rc-service sshd restartcont$ ssh vmvm$ vi /etc/apk/repositories
http://dl-cdn.alpinelinux.org/alpine/v3.24/main
http://dl-cdn.alpinelinux.org/alpine/v3.24/communityQEMU keys: