Introduce
Thank you for clicking through to my arcticle. I've been a DevOps engineer for 2 years in dev-team of 7 engineers.
My name is MINSEOK, LEE, but I use Unchaptered as an alias on the interenet. So, you can call me anythings "MINSEOK, LEE" or "Unchaptered" to ask something.
Prerequisites
STEP 1 : Install Virtual Box
STEP 2 : Install CentOS for Windows
Click your OS' Architecture.
Click your Download Link. (recommend kakao or naver)
Choose minimal iso file
STEP 3 : Create New VM
Create New.
Select ISO Image.
Check Username and Password.
Set up HW spec to Virtual MEM as 1024MB and Processor CPU 1.
Set up Disk spec to Virtual Disk 16.00GiB.
Check your VM Image.
Change Network Adaptor settings from NAT to Adaptor Bridge.
Change shortcuts from Host Key from Right Ctrl to Ctrl+Alt.
Launch "Ansible-Server" and Type enter.
Set up Machine Language English or your Native Language.
Check destination and disable for storage about KDUMP.
Set up [NETWORK & HOSTNAME] from init to Ansible-Server.
Please set-up hostname is equaled VM Image name.
And hostname can't support Uppercase.Set up password in [CONFIGURATION].
Launch "Ansible-Server" and type "root" and your password in step 13.
You can close VM usingpoweroff
Copy "Ansible-Server" to "Ansible-node1", "Ansible-node2", "Ansible-node3"
A new MAC address assignment is required.Also, since "Ansible-node*" doesn't need much disk, we'll allocate it with 1/2 the capacity.
Right-click origin VM to copy Ansible-node1, 2, 3...
Click special-mode
Change Mac Address Policy from "NAT Network Adaptor include mac address only" to "All Network Adaptor create mac address"
Click Confirm(F)
Change Virtual MEM from 1024 MiB to 514 MiB
In this practice, target machine don't needs high performance.
Launch all VM Images, such as "Ansible-Server" and "Ansible-node*".
Change hostname from ansible-server(default) to ansible-node-n
hostnamectl set-hostname ansible-node01
hostnamectl set-hostname ansible-node02
hostnamectl set-hostname ansible-node03
Set IP Address in each VM.
Because we set the network settings to Adaptor Bridge above, the VMs currently have no IPs.
SERVER_NAME | IP_ADDRESS | SUBNET_MASK | GATEWAYAnsible-Server | 192.168.1.10. | 255.255.255.0 | 192.168.1.1.
Ansible-Node01 | 192.168.1.11. | 255.255.255.0 | 192.168.1.1.
Ansible-Node02 | 192.168.1.12. | 255.255.255.0 | 192.168.1.1.
Ansible-Node03 | 192.168.1.13. | 255.255.255.0 |192.168.1.1.
Enter
nmtui
Click [Edit a Connection]
Click [Edit ...]
Type [IPv4 CONFIGURATION], [Gateway] and check [Automatically connect], after then click [OK]
Must be checked as Manual.Click [Back]
Click [OK]
Restart network settings using
systemctl restart network
Check IP Address using
ip add
Check Gateway using
ping 192.168.1.1