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