#방화벽과 sellinux 비활성화
systemctl stop firewalld
systemctl disable firewalld
sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config
init 6
#kvm 설치 패키지 및 nfs 패키지 설치
yum -y update
yum -y install qemu-kvm libvirt virt-install virt-manager virt-viewer nfs-utils
systemctl start libvirtd
systemctl enable libvirtd
#vi /etc/libvirt/qemu.conf 파일 수정 user와 group 앞에 주석 해제
systemctl restart libvirtd
#cirros와 centos7 이미지 다운로드
cd /tmp
wget <http://download.cirros-cloud.net/0.5.2/cirros-0.5.2-x86_64-disk.img>
wget <http://mirror.kakao.com/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso>
mv ./CentOS-7-x86_64-Minimal-2009.iso ./centos7.iso
mv ./cirros-0.5.2-x86_64-disk.img ./cirros-org
#NFS-server 확인
showmount -e 192.168.102.204
#마운트 디렉터리 생성 및 마운트
mkdir /remote
mount -t nfs 192.168.102.204:/shared /remote
#재시작 해도 자동 마운트 하도록 설정
vi /etc/fstab
192.168.102.204:/shared /remote nfs defaults 0 0
#마운트 확인
df -h
#cirros와 centos7 이미지를 nfs 연결된 디렉토리로 이동
cd /tmp
chmod 775 centos7.iso
chmod 775 cirros-org.img
mv /tmp/cirros-org /remote
mv /tmp/centos7.iso /remote