Version 5 (modified by 2 years ago) ( diff ) | ,
---|
Linux Hands - On
Through this hands-on you will install Ubuntu Server on a vm.
Setting up virtualbox
Installation of virtualbox and Downloading Ubuntu iso image
- Download and install virtualbox 6.x
- https://ubuntu.com/download/server Ubuntu image from the website (Ubuntu Server 20.04.2 LTS)
Creating the VM
- Start virtualbox and Click on New button to create new virtual machine
- Enter name of the VM as: LibreNMS Or iCinga.
- Select OS Type: Linux
- Select Version: Ubuntu (64-bit)
- Then click on Continue button
- Set VM's memory size to 4096MB and click on Continue button
- Set VM's hard disk option to Create a virtual hard disk now and then click on Continue
- Select disk type to VDI
- Select storage type to Fixed size and Continue
- adjust the disk size to 50.0GB and click on Create to create the VM
This might take couple of minutes
(Note down the location of vdi image file when virtualbox flashes it on the screen)
Setting up Network Interface
- Select the VM from left panel on Virtual box, right click and open Settings
- Click on the Network title
- 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).
Setting up boot device and Booting
- 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
- Choose Virtual Optical Disk File
- Locate the Ubuntu CD Image file you downloaded from the above mentioned link. Press OK to close the settings window.
- Right click on VM and select Start to make a Normal Start. You should now see a separate window with Installation screen"
Installation Method 1
Initial Installation options
- Select English as language for the installation wizard
- Select Continue without updating
- Select Done for keyboard configuration
- Select Done' for Network connection (it will automatically assign an IP address)
- Select Done for Proxy settings
- Select Done for Guided storage configuration (check if it uses the entire disk)
- Select Continue for confirm destructive actions
Note that it configure network with DHCP
- Type host name as: LibreNMS or iCinga
- 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)
Final Configuration
SSH Setup
- Select only
OpenSSH server (select by pressing space)
- Select Done to continue
Features server snaps
Select Done as the final setup of installation
Select Reboot
VM now should restart with the newly installed OS.
You may now login using your credentials
Installation Method 2
- Select English as language for the installation wizard
- Select Continue without updating
- Select Done for keyboard configuration
- Select Done' for Network connection (it will automatically assign an IP address)
- Select Done for Proxy settings
- Select Custom storage layout to create LVM
Storage configuration window will now appear. Here, we will find FILE SYSTEM SUMMERY, AVAILABLE DEVICES and USED DEVICES sections. In AVAILABLE DEVICES section, we will find our devices. In the following image, we can see our available device is /dev/sda or VBOX_HARDDISK_ and its storage size is 50GB.
Now we will do LVM partition on this disk drive. In Linux system, we need to create minimum (/boot) boot, swap and (/) root partition. But we will do more two partitions also – (/home) and (/var) because these two partitions are frequently used in Enterprise Linux System.
Among these partitions, /boot and swap should be out of LVM. So, at first we will do these two partitions before creating LVM.
create boot partition
- Select the available device by pressing Up and Down arrow key and then hit Enter key. A popup option will appear.
- Select Add GPT Partition option and hit Enter key. Now options will appear to manage a GPT Partition.
- From Adding GPT Partition to freespace section, Put size (for example: 512M) for the boot partition in Size input box.
- Choose partition format (for example: ext4) from Format drop down menu.
- Choose /boot from Mount drop down menu.
- Now select Create option and hit Enter key.
Attachments (13)
- network_bidge_adapter.png (698.7 KB ) - added by 2 years ago.
- storage.png (636.6 KB ) - added by 2 years ago.
- boot.png (12.9 KB ) - added by 2 years ago.
- 512m boot.png (11.8 KB ) - added by 2 years ago.
- swap.png (12.5 KB ) - added by 2 years ago.
- unformat.png (15.0 KB ) - added by 2 years ago.
- lvm.png (13.4 KB ) - added by 2 years ago.
- lvm_root_creation.png (16.1 KB ) - added by 2 years ago.
- after_creation.png (23.9 KB ) - added by 2 years ago.
- continue.png (21.3 KB ) - added by 2 years ago.
- profile_setup.png (11.1 KB ) - added by 2 years ago.
- ssh_setup.png (10.1 KB ) - added by 2 years ago.
- installing.png (28.4 KB ) - added by 2 years ago.
Download all attachments as: .zip