Running LibreNMS applicance on Hyper V. Once the librenms_ubuntu_1604.ova file was downloaded I change the extension to a tar so I could unarchive. Reference
Convert the vmdk in the folder to .vhd. Virtualbox was used in this scenario. VBoxManage clonehd --format VHD yourdisk.vmdk yourdisk.vhd VBoxManage clonehd --format VHD LibreNMS Ubuntu 16.04-disk1.vmdk LibreNMS Ubuntu 16.04-disk1.vhd
Setup your virtual server and select the virtual hard disk file that was converted to vhd.
Make sure to edit virtual disk to desired size for growth by choosing expand. You will also have to expand the LVM volume after editing disk. The raw drive space or partition can be formatted using GParted GUI. Expansion has to be done in terminal.
Select raw drive space or raw disk.
Create partiton and format as LVM.
Add LVM to pool then expand LVM.
To expand the LVM use the -r switch with lvextend, so you don't need the resize2fs call. sudo lvextend -r -l +100%FREE librenms-vg/root
Connect to your LibreNMS server by SSH and update the confi.php for auto discovery. Example $config['nets'][] = '172.2.4.0/22';
In your librenms directory run the php file in terminal. Prefix script with php. php snmp-scan.php
I got an error:
Error: Missing dependencies! Run the following command to fix:
./scripts/composer_wrapper.php install --no-dev
Go to /scripts folder and run command. I had to prefix the script with php for it to run. php composer_wrapper.php install --no-dev
There was another error so I had to add the module below. The error was
Your requirements could not be resolved to an installable set of packages.
Problem 1
Install or enable PHP's mbstring extension.
In terminal find out what your php version is by typing: php -v
I am running: PHP 7.0.32-0ubuntu0.16.04.1 I ran the following sudo apt-get install php7.0-mbstring
Validate your setup using the command in librenms folder: php validate.php run ./daily.sh if you have any DB errors
To scan network: If you have Python 3 version you have to run this command
python3 snmp-scan.py
Enabling SNMP on Hyper V core Server 2008 and 2008 R2 using dism command. Once installed use MMC to configure agent from services.
Dism /online /enable-feature /featurename:SNMP-SC
Hyper v core 2012 R2 command. Once installed run MMC as administrator to be able to configure the service. Dism /online /enable-feature /featurename:SNMP
Setting system timezone command as root user: timedatectl set-timezone time_zone In this example, set timezone to US/Eastern timedatectl set-timezone US/Eastern Verify new settings by typing the following command: ls -l /etc/localtime
The following command will find location of php.ini file on the server. php -i | grep php.ini
SSH username: librenms password: CIne3fwdfds
MySQL/MariaDB
username: root password: NIfceu3fqfd username: librenms password: D42nf23rewD
WebUI
username: librenms password: D32fwefwef