Minimal system requirements for the VM:
- CPU - 4 Core
- RAM - 4 Gb
- Disk - 100Gb
- Network - 1 virtual NIC
Recommended system requirements for the VM:
- CPU - 8 Core
- RAM - 16 Gb
- Disk - 100Gb
- Network - 1 virtual NIC
If KVM is not already installed, install Qemu/KVM on the host machine (example provided for Ubuntu Linux 18.04)
sudo apt-get install virt-manager
- Download the Netris Controller image. (contact Netris support for repository access permissions).
cd /var/lib/libvirt/images
sudo wget http://img.netris.io/netris-controller3.qcow2
- Download VM definition file.
cd /etc/libvirt/qemu
sudo wget http://img.netris.io/netris-controller3.xml
- Define the KVM virtual machine
sudo virsh define netris-controller3.xml
Note
Netris Controller virtual NIC will bind to the “br-mgmt” interface on the KVM host machine. See below for the network interface configuration example.
Example: Network configuration on host (hypervisor) machine.
Note
replace <Physical NIC>, <host server management IP/prefix length> and <host server default gateway> with the correct NIC and IP for your host machine.
sudo vim /etc/network/interfaces
#Physical NIC connected to the management network
auto <Physical NIC>
iface <Physical NIC> inet static
address 0.0.0.0/0
#bridge interface
auto br-mgmt
iface br-mgmt inet static
address <host server management IP/prefix length>
gateway <host server default gateway>
bridge-ports <Physical NIC>
source /etc/network/interfaces.d/*
sudo ifreload -a
- Set the virtual machine to autostart and start it.
sudo virsh autostart netris-controller
sudo virsh start netris-controller
By default, Netris Controller will obtain an IP address from a DHCP server.
Below steps describe how to configure a Static IP address for the Netris Controller.
- Connecting to the VM console.
default credentials. login: netris
password: newNet0ps
sudo virsh console netris-controller
Note
Do not forget to change the default password (using passwd command).
- Setting a static IP address.
Edit network configuration file.
sudo vim /etc/network/interfaces
Example: IP configuration file.
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address <Netris Controller IP/prefix length>
gateway <Netris Controller default gateway>
dns-nameserver <a DNS server address>
source /etc/network/interfaces.d/*
Reload the network config.
sudo ifreload -a
Note
Make sure Netris Controller has Internet access.
- Reboot the controller
sudo reboot
After reboot, the Netris Controller GUI should be accessible using a browser. Use netris/newNet0ps
credentials.
- Replace the below file with your SSL certificate file.
/etc/nginx/ssl/controller.cert.pem;
- Replace the below file with your SSL private key.
/etc/nginx/ssl/controller.key.pem;
- Restart Nginx service.
systemctl restart nginx.service