1) Server에서 dnf -y install dhcp-server tftp-server vsftpd
ㄴ dhcp, tftp, ftp 설치
2) vi /etc/dhcp/dhcpd.conf
subnet 192.168.111.0 netmask 255.255.255.0
{
option routers 192.168.111.2;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.111.120 192.168.111.199;
option domain-name-servers 192.168.111.2;
allow booting;
allow bootp;
next-server 192.168.111.130;
filename “pxelinux.0”;
}
3) vi /etc/vsftpd/vsftpd.conf
12번째 행 no를 yes로
4) umount /dev/cdrom
5) mount /dev/cdrom /var/ftp/pub/
6)
cp /var/ftp/pub/images/pxeboot/vmlinuz /var/lib/tftpboot/
cp /var/ftp/pub/images/pxeboot/initrd.img /var/lib/tftpboot
cp /var/ftp/pub/isolinux/ldlinux.c3s /var/lib/tftpboot
7)
cd /usr/share >> mkdir syslinux
8) cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
9) vi
DEFAULT CentOS8_Auto_Install
LABEL CentOS8_Auto_Install
kernel vmlinuz
APPEND initrd=initrd.img repo=ftp://192.168.111.130/pub
10) systemctl restart dhcpd, vsftpd, tftp
systemctl enable dhcpd, vsftpd, tftp
11) Test 가상 머신 생성
RAM 2GB
하드디스크, cd롬 삭제
하드디스크 추가(SCSI, 20GB single file)
12) Server 방화벽 설정 필요!
일단 수업때는 편의상 그냥 방화벽 꺼버림.
'가상머신' 카테고리의 다른 글
[가상머신] 리눅스 방화벽 구축 실습 (1) | 2024.11.20 |
---|---|
[가상머신] 프록시 서버 실습 (0) | 2024.11.19 |
[가상머신] 가상머신 설치 (OS설치) / VMware Workstation 17 / CentOS 8 (0) | 2024.11.19 |