Skip to main content

Cisco Catalyst 9000 - NetBeez App Hosting (IOS-XE 16.9.x)

Install and register the NetBeez KVM virtual service agent on Cisco Catalyst 9000 Series switches running legacy Cisco IOS-XE 16.9.x.

Written by Panickos Neophytou

Note — Legacy IOS-XE 16.9.x KVM Procedure: This article covers the KVM virtual-machine hosting workflow exclusively for Cisco Catalyst 9000 switches running legacy IOS-XE 16.9.x. For switches running IOS-XE 16.12.1 or 17.x+, follow Cisco Catalyst 9000 - NetBeez Docker App Hosting (IOS-XE 16.12+/17.x) instead. For Cisco ISR routers, see Cisco ISR - Running the NetBeez Agent as a Virtual Service.

In this article:

Requirements

  • An active NetBeez NextGen dashboard and your Server Secret Key, located by Administrators in Settings → Information & Health under Server Information.

  • A Cisco Catalyst 9000 Series switch running Cisco IOS-XE 16.9.x.

  • A FAT32-formatted Cisco SSD or USB flash drive inserted in usbflash0: to store the hosted application package.

Switch Resources to Configure

To provide network reachability to the hosted NetBeez virtual machine on IOS-XE 16.9.x, you will configure:

  • A GigabitEthernet interface assigned to the management VRF (Mgmt-vrf).

  • An IOS-XE DHCP pool in Mgmt-vrf to assign a dynamic IPv4 address to the NetBeez guest interface (eth0).

Step-by-Step Installation Configuration

  1. Connect to your Cisco Catalyst 9000 switch via SSH or Telnet.

  2. Configure the management VRF interface and DHCP scope (adjust IP addressing and DNS servers for your network):

    configure terminal
    interface GigabitEthernet0/0
     vrf forwarding Mgmt-vrf
     ip address 192.168.1.1 255.255.255.0
     speed 1000
     negotiation auto
    exit
    ip dhcp excluded-address vrf Mgmt-vrf 192.168.1.1 192.168.1.10
    ip dhcp pool iox-apps2
     vrf Mgmt-vrf
     network 192.168.1.0 255.255.255.0
     default-router 192.168.1.1
     domain-name domain.com
     dns-server 8.8.8.8
    end
  3. Verify that your FAT32-formatted Cisco SSD or USB drive is readable on the switch with dir usbflash0: (on IOS-XE versions prior to 16.12.1, internal flash storage can also be used if space permits).

  4. Enable Cisco IOx App Hosting and confirm the iox directory is created on usbflash0::

    configure terminal
    iox
    end
    dir usbflash0:
  5. Download the NetBeez Catalyst 9000 KVM package (netbeez-cisco-9k.tar) onto usbflash0::

    copy http://storage.googleapis.com/netbeez-public/netbeez-cisco-9k.tar usbflash0:
  6. Install the NetBeez virtual service package:

    app-hosting install appid netbeez package usbflash0:netbeez-cisco-9k.tar
  7. Bind guest interface 0 to the management vNIC, then activate and start the virtual machine:

    configure terminal
    app-hosting appid netbeez
     vnic management guest-interface 0
    end
    app-hosting activate appid netbeez
    app-hosting start appid netbeez
  8. Verify that the virtual service state is RUNNING with show app-hosting detail, then attach to the guest VM console and sign in with username netbeez and password netbeez (press Ctrl+C three times to detach from the console later):

    app-hosting connect appid netbeez con
  9. Inside the NetBeez VM console, download the NetBeez agent setup script:

    curl -L -O https://raw.githubusercontent.com/netbeez/agent-installation/master/agent_setup.sh
  10. Run the setup script as sudo, replacing <secret_key> with the Server Secret Key from Settings → Information & Health:

    sudo bash agent_setup.sh --secret=<secret_key>

Once registration completes, confirm that the switch-hosted sensor appears online under Agents → Network Agents in your NetBeez NextGen dashboard.

Did this answer your question?