<liclass="toctree-l3"><aclass="reference internal"href="#adding-a-regular-linux-bridge-if-not-using-bifrost-xdp-bridge">Adding a regular Linux bridge (if not using Bifrost XDP bridge)</a></li>
<liclass="toctree-l3"><aclass="reference internal"href="#install-influxdb-optional-but-recommended">Install InfluxDB (Optional but Recommended)</a></li>
<h1>Server Setup - Pre-requisites<aclass="headerlink"href="#server-setup-pre-requisites"title="Permalink to this heading"></a></h1>
<p>Disable hyperthreading on the BIOS/UEFI of your host system. Hyperthreaading is also known as Simultaneous Multi Threading (SMT) on AMD systems. Disabling this is very important for optimal performance of the XDP cpumap filtering and, in turn, throughput and latency.</p>
<ulclass="simple">
<li><p>Boot, pressing the appropriate key to enter the BIOS settings</p></li>
<li><p>For AMD systems, you will have to navigate the settings to find the “SMT Control” setting. Usually it is under something like <codeclass="docutils literal notranslate"><spanclass="pre">Advanced</span><spanclass="pre">-></span><spanclass="pre">AMD</span><spanclass="pre">CBS</span><spanclass="pre">-></span><spanclass="pre">CPU</span><spanclass="pre">Common</span><spanclass="pre">Options</span><spanclass="pre">-></span><spanclass="pre">Thread</span><spanclass="pre">Enablement</span><spanclass="pre">-></span><spanclass="pre">SMT</span><spanclass="pre">Control</span></code> Once you find it, switch to “Disabled” or “Off”</p></li>
<li><p>For Intel systems, you will also have to navigate the settings to find the “hyperthrading” toggle option. On HP servers it’s under <codeclass="docutils literal notranslate"><spanclass="pre">System</span><spanclass="pre">Configuration</span><spanclass="pre">></span><spanclass="pre">BIOS/Platform</span><spanclass="pre">Configuration</span><spanclass="pre">(RBSU)</span><spanclass="pre">></span><spanclass="pre">Processor</span><spanclass="pre">Options</span><spanclass="pre">></span><spanclass="pre">Intel</span><spanclass="pre">(R)</span><spanclass="pre">Hyperthreading</span><spanclass="pre">Options.</span></code></p></li>
<li><p>Save changes and reboot</p></li>
</ul>
<sectionid="install-ubuntu-server">
<h2>Install Ubuntu Server<aclass="headerlink"href="#install-ubuntu-server"title="Permalink to this heading"></a></h2>
<p>We recommend Ubuntu Server because its kernel version tends to track closely with the mainline Linux releases. Our current documentation assumes Ubuntu Server. To run LibreQoS v1.4, Linux kernel 5.11 or greater is required, as 5.11 includes some important XDP patches. Ubuntu Server 22.04 uses kernel 5.13, which meets that requirement.</p>
<p>You can download Ubuntu Server 22.04 from <ahref="https://ubuntu.com/download/server">https://ubuntu.com/download/server</a>.</p>
<olclass="arabic simple">
<li><p>Boot Ubuntu Server from USB.</p></li>
<li><p>Follow the steps to install Ubuntu Server.</p></li>
<li><p>If you use a Mellanox network card, the Ubuntu Server installer will ask you whether to install the mellanox/intel NIC drivers. Check the box to confirm. This extra driver is important.</p></li>
<li><p>On the Networking settings step, it is recommended to assign a static IP address to the management NIC.</p></li>
<li><p>Ensure SSH server is enabled so you can more easily log into the server later.</p></li>
<li><p>You can use scp or sftp to access files from your LibreQoS server for easier file editing. Here’s how to access via scp or sftp using an <aclass="reference external"href="https://www.addictivetips.com/ubuntu-linux-tips/sftp-server-ubuntu/">Ubuntu</a> or <aclass="reference external"href="https://winscp.net/eng/index.php">Windows</a> machine.</p></li>
<h3>Adding a regular Linux bridge (if not using Bifrost XDP bridge)<aclass="headerlink"href="#adding-a-regular-linux-bridge-if-not-using-bifrost-xdp-bridge"title="Permalink to this heading"></a></h3>
<p>Editing the .yaml file, we need to define the shaping interfaces (here, ens19 and ens20) and add the bridge with those two interfaces. Assuming your interfaces are ens18, ens19, and ens20, here is what your file might look like:</p>
<divclass="highlight-yaml notranslate"><divclass="highlight"><pre><span></span><spanclass="c1"># This is the network config written by 'subiquity'</span>
<p>Make sure to replace 10.0.0.12/24 with your LibreQoS VM’s address and subnet, and to replace the default gateway 10.0.0.1 with whatever your default gateway is.</p>
<h3>Install InfluxDB (Optional but Recommended)<aclass="headerlink"href="#install-influxdb-optional-but-recommended"title="Permalink to this heading"></a></h3>
<p>InfluxDB allows you to track long-term stats beyond what lqos_node_manager can so far.</p>
<p>To install InfluxDB 2.x., follow the steps at <aclass="reference external"href="https://portal.influxdata.com/downloads/">https://portal.influxdata.com/downloads/</a>.</p>
<p>For high throughput networks (5+ Gbps) you will likely want to install InfluxDB to a separate machine or VM from that of the LibreQoS server to avoid CPU load.</p>
<p>Restart your system that is running InfluxDB</p>
Then upload the file <aclass="reference external"href="https://github.com/rchac/LibreQoS/blob/main/src/influxDBdashboardTemplate.json">influxDBdashboardTemplate.json</a> to InfluxDB.</p>
<p><aclass="reference external"href="https://docs.influxdata.com/influxdb/cloud/security/tokens/create-token/">Generate an InfluxDB Token</a>. It will be added to ispConfig.py in the following steps.</p>
<p>You may want to install a reverse proxy in front of the web interfaces for influx and lqos. Setting these up is outside the scope of this document, but some examples are <aclass="reference external"href="https://caddyserver.com/">Caddy</a>, and Nginx <aclass="reference external"href="https://nginxproxymanager.com/">Proxy Manager</a></p>