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-vrfto assign a dynamic IPv4 address to the NetBeez guest interface (eth0).
Step-by-Step Installation Configuration
Connect to your Cisco Catalyst 9000 switch via SSH or Telnet.
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
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).Enable Cisco IOx App Hosting and confirm the
ioxdirectory is created onusbflash0::configure terminal iox end dir usbflash0:
Download the NetBeez Catalyst 9000 KVM package (
netbeez-cisco-9k.tar) ontousbflash0::copy http://storage.googleapis.com/netbeez-public/netbeez-cisco-9k.tar usbflash0:
Install the NetBeez virtual service package:
app-hosting install appid netbeez package usbflash0:netbeez-cisco-9k.tar
Bind guest interface
0to 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
Verify that the virtual service state is
RUNNINGwithshow app-hosting detail, then attach to the guest VM console and sign in with usernamenetbeezand passwordnetbeez(pressCtrl+Cthree times to detach from the console later):app-hosting connect appid netbeez con
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
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.
