Posts

Showing posts from 2020

Ansible role based deployment for windows guest along with os customization, WinRM and AD integration

Image
 In enterprise level, just deploying the windows vm is always not enough. The vm need to connect AD to support enterprise logins and many guest os level changes needed like configuring DNS, NTP, adding multiple hard disks, applying the disk labels etc. Using ansible modules these steps can be done easily. Its always a good practice to write role based ansible playbooks and using tags so that when needed a specific role can be called using its respective tag. In this example we will perform the below tasks using ansible roles: VM Deployment Guest OS customization Windows Updates Software Upload Software Installation VM Deletion Lets go through the following example to understand how these requirements can be achieved: Each role consists of multiple tasks in it which will be performed sequentially. These roles will use specific ansible modules which are part of ansible collections . Under roles folder we have subfolders for each role which will have atleast 2 folders in it. task...

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     ...