Posts

How to install KVM on Ubuntu Server 20.04 LTS ?

Image
KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). It consists of a loadable kernel module, kvm.ko, that provides the core virtualization infrastructure and a processor specific module, kvm-intel.ko or kvm-amd.ko. Run the below command to check whether the system supports virtualization:     # egrep -c  '(vmx|svm)' /proc/cpuinfo       16 If the above count is non zero, that indicates that system supports virtualization. Install 'cpu-checker' to make sure that your system is supported for KVM based virtualization.     # apt-get install cpu-checker -y Install all required package to configure KVM:     # apt-get install -y qemu qemu-kvm libvirt-daemon libvirt-clients bridge-utils virt-manager qemu-kvm: A software that provides hardware emulation for the kvm hypervisor. libvirt-daemon: A virtualization daemon that manages the lifecycle o...

How to deploy Jenkins on Ubuntu 20.04 LTS ?

Image
Build, Deploy & Automate anything using Jenkins . Its an opensource automation tool and have hundreds of plugins to support the continuous integration and continuous delivery. To install Jenkins in Ubuntu 20.04 LTS, following steps will be helpful: a) Add the key and the jenkins repo on the ubuntu 20.04 LTS Server and update the repo list:      # wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -      # echo "deb https://pkg.jenkins.io/debian-stable binary/" >> /etc/apt/sources.list      # apt-get update b) Install openjdk latest version:       # apt install openjdk-11-jre-headless       # java -version c) Install the jenkins and enable it across reboot:       # apt-get install jenkins -y       # systemctl enable jenkins       # systemctl status jenkins d) If you will check, port 8080 is open for jenkins by ja...

How to integrate the GitHub code in blog post on blogger.com ?

 Its easy to integrate the codes from GutHub  to the blog posts in blogger.com   as keeping code directly on the blog post is always not a good idea and some time tough to manage the formatting as well. A big thanks to Robert Krimen for developing such a wonderful tool for this integration. You can get more details on his GitHub  http://github.com/robertkrimen/gist-it Let say your GitHub link is  http://github.com/Udayendu/cPlatform99  and you would like to integrate it in your blog post in blogger.com, then use the following syntax in HTML mode in your blog: Syntax: <script src="http://gist-it.appspot.com/<Your_GitHub_Link>"></script> Example: <script src="http://gist-it.appspot.com/https://github.com/Udayendu/cPlatform99/blob/main/README.md"></script> And the page view will look like below:

How to build Ubuntu Server 20.04 LTS OVA with vAPP Properties ?

Image
This document will explain how to build an Ubuntu Server 20.04 LTS ova with vAPP properties enabled. Requirement: VM Deployment access required in vCenter environment. We have used the vCenter Server 6.7 and ESXi 6.5 while documented the below steps 1. Install a ubuntu server 20.04 lts vm with minimal cpu, ram and HDD(as needed). Make your own partition. 2. Use apt-get to upgrade all the packages along with the additional packages that required to install in the vm:      $ sudo apt-get update && apt-get upgrade -y 3. Make sure that 'open-vm-tools' and 'ifupdown' package is installed in the vm:       $ sudo apt-get install open-vm-tools  -y       $ sudo apt-get install ifupdown  -y 4. Take the console of the vm and stop, disable and mask the Network Manager service:       $ systemctl  stop  NetworkManager.service       $ systemctl  disable NetworkManager.service     ...

Docker Cheat Sheet

1. Either use pip3 on an ubuntu server and install docker:         # apt-get install python3-pip -y    # pip3 install docker    # pip3 install --upgrade docker 2. Or use apt-get on ubunytu to install docker:         # apt-get install docker.io -y 3. Start and enable docker service:         # systemctl start docker    # systemctl enable docker    Check the status of docker:    # systemctl status docker 4. To check the docker version and docker system wide information:         # docker -v    # docker info 5. To search docker image in docker registry:          # docker search httpd    To check a specific version of image:      # docker search ubuntu:18.04 6. To download docker images:     # docker pull ubuntu:18.04     18.04: Pulling from library/...

VMware OVA deployment using ansible

To deploy OVA on VMware platform using ansible a provision server is required from where ansible playbooks need to be executed. Follow the steps as mentioned in  how to build ansible provision server for VMware  and make the provision server ready. With the help of vmware_deploy_ovf  module ansible can deploy VMware OVA. Let say the requirement is to deploy the OVA in a vm folder and under a resource pool in hosts view, then it should go through the following check points: Create vm folder and resource pool if not present OVA should be available in the provision server Before deploying the OVA, extract the OVA and check the custom section of .ovf file to see what all variable need to pass in the playbook at the time of deployment. We will create three yml files to keep: vmware ova deployment code ( vsphere_ova_deploy.yml ) vmware environment login details ( vsphere_creds.yml ) variables used for the guest deployment ( vsphere_var.yml ) In m...

VMware guest deployment using Ansible

To deploy VMware guest using ansible a provision server is required from where ansible playbooks need to be executed. Follow the steps as mentioned in  how to build ansible provision server for VMware  and make the provision server ready. We will create three yml files to keep: vmware guest deployment code ( vsphere_guest_deploy.yml ) vmware environment login details ( vsphere_creds.yml ) variables used for the guest deployment ( vsphere_var.yml ) This vsphere_guest_deploy.yml playbook will perform the following tasks: Make sure to have a template in the vCenter Server VM need to be deployed in a dedicated vm folder and resource pool VM folder and resource pool will be created if not available For this deployment an application user is needed in vCenter which should have required privilege to perform all the above tasks.  Content of vCenter credentials yml file: Content of vCenter variable file: Content of vmware guest d...