User Tools

Site Tools


pnetlab

This is an old revision of the document!


Install pnetlab and more

pnetlab install

  • Extract ova: tar xvf PNET_4.2.10.ova
  • convert to qcow: qemu-img convert -O qcow2 PNET_4.2.10-disk1.vmdk PNET_4.2.10-disk1.qcow2
  • Move it to a safe place for virsh images: mv PNET_4.2.10-disk1.qcow2 /home/jaime/Documents/images-libvirt''
  • virt-manager > cree new virtual machine > import existing dik image#
  • Select: Ubuntu 18.04 LTS » all default and do not click customize before install
  • wizard: dhcp and direct connection
  • once up, force down vm and change settings (memory and cpu)
  • enter 192.168.122.56 in web browser, select online mode
  • Install eveng integration to use console instead of html-guacamole

now install iol devices

scp i86bi_linux-adventerprisek9-ms.156-3.M3a.bin root@192.168.122.56:/opt/unetlab/addons/iol/bin/
scp L2-ADVENTERPRISEK9-M-15.2-IRON-20151103.bin root@192.168.122.56:/opt/unetlab/addons/iol/bin/
ssh root@192.168.122.56    # password pnet
! in pnetlab
/opt/unetlab/wrappers/unl_wrapper -a fixpermissions
python2 /opt/unetlab/addons/iol/bin/CiscoIOUKeygen.py
cd /opt/unetlab/addons/iol/bin
touch NETMAP
LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/<iosname.bin> 1    # do it with each IOL image before testing them in UI

now install fortigate: mkdir /opt/unetlab/addons/qemu/fortinet-FGT-v6-4-build1579 scp ./fortinet-FGT-v6-4-build1579/virtioa.qcow2 root@192.168.122.56:/opt/unetlab/addons/qemu/fortinet-FGT-v6-4-build1579/ /opt/unetlab/wrappers/unl_wrapper -a fixpermissions ! go to UI and start the FW ! Now go the FGT cli: admin no password, then password admin too config system interface

edit port1
set ip 192.168.1.2/24
set allowaccess (http https ping ssh telnet)

end

Install ubuntu machine: http://192.168.122.56/store/public/admin/devices/store get device ubuntu desktop docker

— References: - http://dl.nextadmin.net/dl/EVE-NG-image/iol/bin/ - https://www.eve-ng.net/index.php/documentation/howtos/howto-add-cisco-iol-ios-on-linux/0/ - https://www.eve-ng.net/index.php/documentation/howtos/howto-add-fortinet-images/ - https://wiki.hackzine.org/sysadmin/kvm-import-ova.html

pnetlab.1710020185.txt.gz · Last modified: by jotasandoku