pexels-pixabay-54101

Proxmox Virtual Environment is a hypervisor on which you can host Virtual Machines and containers. It is a complex environment with open-source clustering and advanced backup and network capabilities. Therefore, it is really important to have a proper network insight, and in this blog post we will show just how easy it is to set everything up. Let's get started.

First, we need to install hsflowd package. Depending on your distro (Proxmox VE - short PVE - 5, 6, 7 or other series), install it with:

 If you don't have the package in your repo, you can download the latest version from the following link: Host sFlow, and then install it.

For example, let's say you have PVE 7. The procedure would be:

To enable the app, use:

Afterward, we need to make necessary configurations on hsflowd side, by editing /etc/hsflowd.conf:

As you may have noticed, there is an OvS sFlow export. To learn more on OvS NetFlow configuration, check out our post where we have covered it in detail: Open vSwitch NetFlow configuration. However, if you are not using OvS, then you would need to set it up.

IP and port are inserted for your NetLlow Analyzer, and pcap { dev = vmbr0 } is your bridge name (it could be named differently, so keep that in mind). By default, the hsflowd process collects with a sampling rate of 400, but you can change it if you need to.

To review all configuration parameters, you can check out /etc/the hsflowd.auto

That should do it for the NetFlow configuration. Should you need a device and interface discovery, don't forget to install and enable SNMP.