| 1 | = Linux Hands - On = |
| 2 | |
| 3 | Through this hands-on you will install Ubuntu Server on a vm. |
| 4 | |
| 5 | |
| 6 | == Setting up virtualbox == |
| 7 | === Installation of virtualbox and Downloading Ubuntu iso image === |
| 8 | - Download and install virtualbox 6.x |
| 9 | - [https://ubuntu.com/download/server] Ubuntu image from the website (Ubuntu Server 20.04.2 LTS) |
| 10 | |
| 11 | |
| 12 | === Creating the VM === |
| 13 | - Start virtualbox and Click on '''New''' button to create new virtual machine |
| 14 | - Enter name of the VM as: '''LibreNMS Or iCinga'''. |
| 15 | |
| 16 | |
| 17 | - Select OS Type: '''Linux''' |
| 18 | - Select Version: '''Ubuntu (64-bit)''' |
| 19 | - Then click on '''Continue''' button |
| 20 | - Set VM's memory size to '''4096MB''' and click on Continue button |
| 21 | - Set VM's hard disk option to '''Create a virtual hard disk now''' and then click on '''Continue''' |
| 22 | - Select disk type to '''VDI''' |
| 23 | - Select storage type to '''Fixed size''' and '''Continue''' |
| 24 | - adjust the disk size to '''50.0GB''' and click on '''Create''' to create the VM |
| 25 | |
| 26 | This might take couple of minutes |
| 27 | |
| 28 | (Note down the location of vdi image file when virtualbox flashes it on the screen) |
| 29 | |
| 30 | === Setting up Network Interface === |
| 31 | |
| 32 | - Select the VM from left panel on Virtual box, right click and open '''Settings''' |
| 33 | - Click on the '''Network''' title |
| 34 | - On '''Adapter 1''' While ''Enable'' Network Adapter selected choose Attached to be '''Bride Adapter''', then select the name of the network (please select only LAN connection, later it will help you to access switches) This virtual interface will work as the WAN port of the firewall (Can be connect from out side). |
| 35 | |
| 36 | [[Image(network_bidge_adapter.png, 600px, nolink)]] |
| 37 | |
| 38 | === Setting up boot device and Booting=== |
| 39 | |
| 40 | - Click on '''Storage''' title and select '''CD ROM icon''' with Caption "Empty" under the '''Controller:IDE''', Click on CD ROM icon under the '''Attribute''' on the left side to select |
| 41 | - Choose '''Virtual Optical Disk File''' |
| 42 | - Locate the '''Ubuntu CD Image''' file you downloaded from the above mentioned link. Press OK to close the settings window. |
| 43 | - Right click on VM and select Start to make a '''Normal Start'''. You should now see a separate window with Installation screen" |
| 44 | [[Image(storage.png, 600px, nolink))]] |
| 45 | |
| 46 | == Installation == |
| 47 | |
| 48 | === Initial Installation options === |
| 49 | |
| 50 | - Select '''English''' as language for the installation wizard |
| 51 | - Select '''Continue without updating''' |
| 52 | - Select '''Done''' for keyboard configuration |
| 53 | - Select '''Done'''' for Network connection (it will automatically assign an IP address) |
| 54 | - Select '''Done''' for Proxy settings |
| 55 | - Select '''Done''' for Guided storage configuration (check if it uses the entire disk) |
| 56 | - Select '''Continue''' for confirm destructive actions |
| 57 | |
| 58 | |
| 59 | Note that it configure network with DHCP |
| 60 | |
| 61 | - Type host name as: '''LibreNMS or iCinga''' |
| 62 | - When it asked, add a User by entering Your '''Name, your username, password''' (Please give a strong password. This VM will be directly exposed to the internet) |
| 63 | |
| 64 | |
| 65 | === Final Configuration === |
| 66 | SSH Setup |
| 67 | |
| 68 | - Select only |
| 69 | OpenSSH server (select by pressing space) |
| 70 | - Select '''Done''' to continue |
| 71 | |
| 72 | Features server snaps |
| 73 | |
| 74 | Select '''Done''' as the final setup of installation |
| 75 | |
| 76 | Select '''Reboot''' |
| 77 | |
| 78 | VM now should restart with the newly installed OS. |
| 79 | |
| 80 | You may now login using your credentials |