버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

...

코드 블럭
languagetext
         INTERNET
External     |
         eno1|
+------------+------------+
|                         |
|           HOST          |
|             +----------+|
|             | RDP-VM   ||
|             |172.19.0.3||
|             +----------+|
+------------+------------+
    br0(eno2)|172.19.0.1
Internal     |
             |
Servers           Servers
(IPMI,iDRAC,iKVM../172.19.0.X)


Install

코드 블럭
languagebash
themeEmacs
linenumberstrue
sudo yum -y install dnsmasq cockpit-machines httpd policycoreutils-python-utils
sudo systemctl restart cockpit.socket
sudo systemctl enable --now cockpit.socket
sudo systemctl enable --now dnsmasq
sudo systemctl enable --now httpd


Change SSH Port (if needed)

Follow instructions on the below documents

보안 / SSH 포트 변경


Network Configs

Connect to Cockpit

...

코드 블럭
languagebash
themeEmacs
linenumberstrue
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
sudo firewall-cmd --permanent --zone=public --add-service=dhcp
sudo firewall-cmd --permanent --zone=public --add-service=dns
sudo firewall-cmd --permanent --zone=public --add-service=samba
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-port=<YOUR_SSH_PORT>/tcp
sudo firewall-cmd --permanent --zone=public --add-port=<YOUR_RDP_PORT>/tcp
sudo firewall-cmd --reload

...

Modify Network (to bridge)


Install Windows on VM


Config on VM

...



Connect to VM via Remote Desktop

...

코드 블럭
languagebash
themeEmacs
linenumberstrue
sudo mkdir /ISOs
chmod 777 /ISOs
cd /ISOs
wget http://ftp.kaist.ac.kr/CentOS/8.2.2004/isos/x86_64/CentOS-8.2.2004-x86_64-minimal.iso
wget http://ftp.kaist.ac.kr/ubuntu-cd/20.10/ubuntu-20.10-desktop-amd64.iso
wget http://ftp.kaist.ac.kr/ubuntu-cd/20.10/ubuntu-20.10-live-server-amd64.iso
...

sudo chown -R nobody:nobody /ISOs
sudo chmod 644 /ISOs/*.iso
sudo chcon -t samba_share_t /ISOs
sudo semanage fcontext -a -t samba_share_t /ISOs
sudo setsebool -P samba_export_all_rw on


Change configs

코드 블럭
languagetext
themeEmacs
title/etc/samba/smb.conf
linenumberstrue
[global]
server min protocol = NT1
bind interfaces only = yes
interfaces = lo br0
workgroup = WORKGROUP
log level = 2
map to guest = Bad User
log file = /var/log/samba/log.%m

[ISOs]
path = /ISOs
public = yes
browsable = yes
read only = yes

Change configs

코드 블럭
languagetext
themeEmacs
title/etc/samba/smb.conf
linenumberstrue
sudo systemctl status smb


Change configsCheck status

코드 블럭
languagetext
themeEmacs
title/etc/samba/smb.conf
linenumberstrue
sudo systemctl status smb


Mount ISO image on BMC (iDRAC, IPMI, ...)
관리 서버에서 ISO 이미지 마운트

Image Modified

Check the logs on samba server to access the ISO file on via IPMI
삼바 서버 로그를 통해 IPMI에서 ISO 파일에 접근하였는지  확인

코드 블럭
languagetext
themeEmacs
linenumberstrue
# tail -f /var/log/samba/log.172.19.0.15

...
[2020/11/04 13:39:45.950194,  2] ../../source3/smbd/open.c:1456(open_file)
  ...... opened file CentOS-8.2.2004-x86_64-minimal.iso read=Yes write=No (numopen=1)



Change Service Initiation Order

Add [After=network-online.target] on [dnsmasq.service] in [UNIT] section
코드 블럭
languagetext
themeEmacs
title/etc/systemd/system/multi-user.target.wants/dnsmasq.service
linenumberstrue
[Unit]
Description=DNS caching server.
After=network.target
After=network-online.target
...


Add [After=dnsmasq.service] on [libvirtd.service] in [UNIT] section
코드 블럭
languagetext
themeEmacs
title/etc/systemd/system/multi-user.target.wants/libvirtd.service
linenumberstrue
[Unit]
Description=Virtualization daemon
...
After=network.target
After=dnsmasq.service