root@eve-ng:~# wget http://mirror.navercorp.com/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-2009.iso
CentOS-7-x86_64-DVD 100%[===================>] 4.39G 21.9MB/s in 5m 7s
root@eve-ng:~# ls CentOS-7-x86_64-DVD-2009.iso labs-202101110334.tgz r
oot@eve-ng:~# mv CentOS-7-x86_64-DVD-2009.iso /opt/unetlab/addons/qemu/CentOS-7-x86_64-DVD-2009.iso
root@eve-ng:~# cd /opt/unetlab/addons/qemu/
root@eve-ng:/opt/unetlab/addons/qemu# ls
CentOS-7-x86_64-DVD-2009.iso nxosv9k-7.0.3.I7.4
root@eve-ng:/opt/unetlab/addons/qemu# mkdir linux-centos7
root@eve-ng:/opt/unetlab/addons/qemu# mv CentOS-7-x86_64-DVD-2009.iso ./linux-centos7/cdrom.iso
root@eve-ng:/opt/unetlab/addons/qemu# cd linux-centos7/
root@eve-ng:/opt/unetlab/addons/qemu/linux-centos7# ls
root@eve-ng:/opt/unetlab/addons/qemu/linux-centos7# du -sh cdrom.iso
4.4G cdrom.iso
root@eve-ng:/opt/unetlab/addons/qemu/linux-centos7# /opt/qemu/bin/qemu-img create -f qcow2 hda.qcow2 20G
Formatting 'hda.qcow2', fmt=qcow2 size=21474836480 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
root@eve-ng:/opt/unetlab/addons/qemu/linux-centos7# ls
cdrom.iso hda.qcow2
root@eve-ng:/opt/unetlab/addons/qemu/linux-centos7# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions
root@eve-ng:/opt/unetlab/addons/qemu/linux-centos7#
생성확인
OS 설치가 완료 되고 rebooting 버튼이 나오면, 기존 iso 파일을 다른 곳으로 옮김
root@eve-ng:/opt/unetlab/addons/qemu/linux-centos7#mv cdrom.iso /tmp/cdrom.iso
파일이 옮겨지고 나면 eve-ng 의 linux "reboot" 버튼 누름
'IT-Infra' 카테고리의 다른 글
eve-ng L4 switch 설치 (0) | 2021.02.03 |
---|---|
cisco n7k + hsrp + centos linux + lacp 구성 (0) | 2021.01.15 |
eve-ng 설치 (0) | 2021.01.11 |
perfsonar 네트웍 모니터링 설치 가이드 (0) | 2020.12.11 |
사설IP, 공인IP 차이 (0) | 2020.10.26 |