Cisco Wireless C9800-CL

Versions this guide is based on:

EVE Image Foldername Downloaded Filename Version CPU RAM NIC Type NICs
c9800cl-17.04.01 C9800-CL-universalk9.17.04.01.iso XE IOS C9800-CL-universalk9.17.04.01 4 4096 VMXNET3 3
Instructions
Other versions should also be supported following bellow’s procedure. Successfuly tested, c9800cl-9.16.12.02, C9800-CL-universalk9.17.04.01 images.

Steps below are based on C9800-CL-universalk9.17.04.01creation, for other image deployment, use proper names respectively.

1. SSH to EVE and login as root, from cli and create image directory on the EVE:

root@eve-ng:~#  mkdir /opt/unetlab/addons/qemu/c9800cl-17.04.01
root@eve-ng:~# cd /opt/unetlab/addons/qemu/c9800cl-17.04.01
root@eve-ng:/opt/unetlab/addons/qemu/c9800cl-17.04.01# 

2. Upload the downloaded ISO CD image to the EVE using for example FileZilla or WinSCP.

3. Create new HDD for CSR installation:

root@eve-ng:/opt/unetlab/addons/qemu/c9800cl-17.04.01# /opt/qemu/bin/qemu-img create -f qcow2  virtioa.qcow2 16G
root@eve-ng:/opt/unetlab/addons/qemu/c9800cl-17.04.01# ls -l
total 878884
-rw-r--r-- 1 root root 899770368 Apr 2 02:08 C9800-CL-universalk9.17.04.01.iso
-rw-r--r-- 1 root root 197120 Apr 2 11:22 virtioa.qcow2
root@eve-ng:/opt/unetlab/addons/qemu/c9800cl-17.04.01#

4. Start C9800-CL installation: Copy paste in one line command below

/opt/qemu-2.2.0/bin/qemu-system-x86_64 -nographic -drive file=virtioa.qcow2,if=virtio,bus=0,unit=0,cache=none -machine type=pc-1.0,accel=kvm -serial mon:stdio -nographic -nodefconfig -nodefaults -rtc base=utc -cdrom C9800-CL-universalk9.17.04.01.iso -boot order=dc -m 4096

5. Once on the screen appears prompt, hit any key and choose 2nd option C9800-CL Serial Console Serial console and confirm with ENTER:

Press any key to continue.
Press any key to continue.
Press any key to continue.


         GNU GRUB  version 2.02 

 +-------------------------------------------------------------------------+
 |  C9800-CL Virtual (VGA) Console - 2020-11-27_00.00                      | 
 |  *C9800-CL Serial Console - 2020-11-27_00.00                            |  
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |  
 +-------------------------------------------------------------------------+

6. IMPORTANT ! Wait till C9800-CL installs and prompt appears:

*Aug 22 18:19:33.393: %IOSXEBOOT-4-BOOT_SRC: (rp/0): CD-ROM Boot
*Aug 22 18:19:33.417: %IOSXEBOOT-4-BOOT_CDROM: (rp/0): Using Serial console
*Aug 22 18:19:33.437: %IOSXEBOOT-4-BOOT_CDROM: (rp/0): Installing GRUB to /dev/bootflash
*Aug 22 18:19:34.130: %IOSXEBOOT-4-BOOT_CDROM: (rp/0): Copying image to /boot
*Aug 22 18:19:37.777: %IOSXEBOOT-4-BOOT_CDROM: (rp/0): Copying image to /bootflash
*Aug 22 18:19:42.965: %IOSXEBOOT-4-BOOT_CDROM: (rp/0): Creating grub configuration
*Aug 22 18:19:45.443: %IOSXEBOOT-4-BOOT_CDROM: (rp/0): Ejecting CD-ROM tray
*Aug 22 18:19:45.459: %IOSXEBOOT-4-BOOT_CDROM: (rp/0): CD-ROM Installation finished
*Aug 22 18:19:45.466: %IOSXEBOOT-4-BOOT_CDROM: (rp/0): Rebooting from HD

7. Now exit from C9800-CL installation and get to qemu prompt using key combo ctrl+a release keys and then press c, once appears (qemu) type quit.

(qemu) quit

9. Remove istallation ISO media and fix permissions:

root@eve-ng:/opt/unetlab/addons/qemu/c9800cl-17.04.01# ls                   
C9800-CL-universalk9.17.04.01.iso  virtioa.qcow2
root@eve-ng:/opt/unetlab/addons/qemu/c9800cl-17.04.01# rm C9800-CL-universalk9.17.04.01.iso
root@eve-ng:/opt/unetlab/addons/qemu/c9800cl-17.04.01# ls
virtioa.qcow2
root@eve-ng:/opt/unetlab/addons/qemu/c9800cl-17.04.01# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions

C9800-CL Image is created and ready to use, now you can open lab and your image will be visible under nodes as Cisco C9800-CL WLC