IOS-XE config when cloning a lab

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
sven
Posts: 17
Joined: Wed Nov 15, 2017 8:44 am

IOS-XE config when cloning a lab

Post by sven » Tue May 12, 2020 11:22 am

Hi,

is there any possible way (even if it's some dark arcana magic) to keep the IOS-XE configs in the nodes when cloning a lab? I have a huge lab and copy&paste every time is way too much work. Especially as I'm using an SDWAN lab so the certificates are lost every time.

Maybe by copying the files in the tmp directory or something?

root@LABUSRAEVENG01:/opt/unetlab/tmp/0/c8229749-4056-4d3a-b470-423cb02da712/55# ls -l
total 1414672
-rw-rw-r-- 1 root unl 0 May 7 16:57 l1down_3
-rw-rw-r-- 1 root unl 0 May 7 15:03 l1down_4
-rw-rw-r-- 1 root unl 0 May 7 15:03 l1down_5
-rw-rw-r-- 1 root unl 0 May 7 15:03 l1down_6
-rw-rw-r-- 1 root unl 0 May 7 15:03 l1down_7
-rw-rw-r-- 1 root unl 0 May 7 16:06 l1up_0
-rw-rw-r-- 1 root unl 0 May 7 16:27 l1up_1
-rw-rw-r-- 1 root unl 0 May 7 15:03 l1up_2
srwxrwxr-x 1 root unl 0 May 7 15:03 mon2-sock
srwxrwxr-x 1 root unl 0 May 7 15:03 mon-sock
srwxrwxr-x 1 root unl 0 May 7 15:03 qmp-sock
-rw-rw-r-- 1 root unl 0 May 7 16:57 suspend_3
-rw-rw-r-- 1 root unl 1448673280 May 12 14:19 virtioa.qcow2
-rw-rw-r-- 1 root unl 0 May 7 15:03 wrapper.txt

Thanks,
Sven.

sven
Posts: 17
Joined: Wed Nov 15, 2017 8:44 am

Re: IOS-XE config when cloning a lab

Post by sven » Wed May 13, 2020 2:50 pm

Soooo...

I did what I proposed.. I cloned the lab and the did a
cp -R /opt/unetlab/tmp/0/<running lab id>/* /opt/unetlab/tmp/0/<new lab id>

The new IOS-XE nodes booted up with their configs. Is there anything else I need to do?

Thanks,
Sven.

Post Reply