웹 UI 에서 이미지 확인
랩 실행 → Edit Node
이미지가 없는 경우, INVALID 라고 표시됨
랩 파일에서 확인
# cd '/opt/unetlab/labs/Your labs from PNETLab Store' # ls -1 'INE CCIE RS Lab Modified for PNETLab Ver_1.unl'
# cd '/opt/unetlab/labs/Your labs from PNETLab Store' # LAB='INE CCIE RS Lab Modified for PNETLab Ver_1.unl' # grep -oE 'image=.[^"]*.' $LAB | sort | uniq image="x86_64bi_linux-adventerprise-ms.154-2.S.bin" image="L2-ADVENTERPRISEK9-M-15.2-IRON-20151103.bin"
랩 파일에 있는 이미지 일괄 다운로드
ishare2 labs all
# ishare2 labs all
Starting to download images for 1 lab
Lab 1/1
File selected: /opt/unetlab/labs/Your labs from PNETLab Store/INE CCIE RS Lab Modified for PNETLab Ver_1.unl
===================================
List of images found on lab
===================================
==========================
List of IOL images
==========================
File 1 : L2-ADVENTERPRISEK9-M-15.2-IRON-20151103.bin
File 2 : x86_64bi_linux-adventerprise-ms.154-2.S.bin
===============================
List of DYNAMIPS images
===============================
No dynamips images found
===========================
List of QEMU images
===========================
No qemu images found
=============================
List of DOCKER images
=============================
No docker images found
=================================================
Start downloading IOL images for this lab
=================================================
Image 'L2-ADVENTERPRISEK9-M-15.2-IRON-20151103.bin' found in JSON data. ID: 2
Download...
Image 'x86_64bi_linux-adventerprise-ms.154-2.S.bin' not found in JSON data.
======================================================
Start downloading DYNAMIPS images for this lab
======================================================
No dynamips images found
==================================================
Start downloading QEMU images for this lab
==================================================
No qemu images found
====================================================
Start downloading DOCKER images for this lab
====================================================
- Nothing to download
Done
이미지가 없는 경우
비슷한 이미지 검색
x86_64bi_linux-adventerprise-ms.154-2.S.bin 이미지가 없어서 비슷한 이미지로 검색
# ishare2 search adventerprise
=============================
Available QEMU images
=============================
ID NAME SIZE
-- ---- ----
919 vios-adventerprisek9-m-15.4-1.3.0-181 116.0 MiB
...
17 QEMU images found for the term: "adventerprise"
============================
Available IOL images
============================
ID NAME SIZE
-- ---- ----
15 i86bi_linux-adventerprisek9-ms.154-1.T_AntiGNS3.bin 145.6 MiB
...
5 IOL images found for the term: "adventerprise"
=================================
Available DYNAMIPS images
=================================
ID NAME SIZE
-- ---- ----
1 c1710-[1]-adventerprisek9-mz.124-25d.image 54.8 MiB
...
12 DYNAMIPS images found for the term: "adventerprise"
이미지 대체
웹 UI 에서 랩을 실행하고 Edit Node 를 하나씩 하여 변경하는 것도 방법
다음은 랩 파일에서 이미지를 찾아 sed 를 활용하여 일괄적으로 변경하는 예제임. 랩 파일에서 이미지를 대체하고 이미지 다운로드를 다시 실행하면 됨
cd '/opt/unetlab/labs/Your labs from PNETLab Store' LAB='INE CCIE RS Lab Modified for PNETLab Ver_1.unl' A="x86_64bi_linux-adventerprise-ms.154-2.S.bin" B="i86bi_linux-adventerprisek9-ms.154-1.T_AntiGNS3.bin" sed -i "s/$A/$B/g" $LAB
