#!/bin/bash
#1. cockpit 구동
systemctl start cockpit.socket --now
# 2. pci passthrough 커널 설정
sed -i "s/quiet/quiet intel_iommu=on/g" /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
# 3. selinux 비활성화
echo "SELINUX=disabled" > /etc/selinux/config
# 4. 불필요한 서비스 중지
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl stop sshd.service
systemctl disable sshd.service
systemctl stop rpcbind.socket
systemctl disable rpcbind.socket
systemctl stop cups.socket
systemctl disable cups.socket
# 5. IEEE1394 passthrough를 위한 설정 진행
IEEE1394=$(lspci -nn | grep 1394 | awk -F[]] '{ print $2 }' | awk -F[[] '{ print $2 }')
echo 'blacklist firewire-ohci' > /etc/modprobe.d/vfio.conf
echo -e "options vfio-pci ids=${IEEE1394}" >> /etc/modprobe.d/vfio.conf
echo 'vfio-pci' > /etc/modules-load.d/vfio-pci.conf
#6. 결과값 화면에 출력
echo "IEEE1934 code - ${IEEE1394}"
echo "만약 코드가 보이지 않는다면 개발팀으로 문의해주세요."
echo
echo "웹브라우저를 연 후, 옆의 주소로 이동해주세요. 이후 진행은 매뉴얼을 참고해주세요. http://localhost:9090"
여기에 파일을 끌어 놓거나 왼쪽의 버튼을 클릭하세요.
파일 용량 제한 : 0MB (허용 확장자 : *.*)
업로드 중... (0%)
#!/bin/bash
#1. cockpit 구동
systemctl start cockpit.socket --now
# 2. pci passthrough 커널 설정
sed -i "s/quiet/quiet intel_iommu=on/g" /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
# 3. selinux 비활성화
echo "SELINUX=disabled" > /etc/selinux/config
# 4. 불필요한 서비스 중지
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl stop sshd.service
systemctl disable sshd.service
systemctl stop rpcbind.socket
systemctl disable rpcbind.socket
systemctl stop cups.socket
systemctl disable cups.socket
# 5. IEEE1394 passthrough를 위한 설정 진행
IEEE1394=$(lspci -nn | grep 1394 | awk -F[]] '{ print $2 }' | awk -F[[] '{ print $2 }')
echo 'blacklist firewire-ohci' > /etc/modprobe.d/vfio.conf
echo -e "options vfio-pci ids=${IEEE1394}" >> /etc/modprobe.d/vfio.conf
echo 'vfio-pci' > /etc/modules-load.d/vfio-pci.conf
#6. 결과값 화면에 출력
echo "IEEE1934 code - ${IEEE1394}"
echo "만약 코드가 보이지 않는다면 개발팀으로 문의해주세요."
echo
echo "웹브라우저를 연 후, 옆의 주소로 이동해주세요. 이후 진행은 매뉴얼을 참고해주세요. http://localhost:9090"