Posts

Showing posts with the label ubuntu

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 build Ansible provision server for VMware ?

Ansible is a great automation tool for infrastructure as a code and using ansible modules to automate VMware platform is really easy. In order to start the automation, need to configure a provision server where ansible and some of its dependencies need to be installed. A provision server can be on any operating system. But in this document we have focused on the following two opensource operating systems: Ubuntu 20.04 LTS CentOS 8.x  Following steps need to be performed to configure Ubuntu 20.04 LTS as a provision server: a. Install python3-pip:     # apt-get  install  python3-pip  -y    Upgrade pip3 to the latest version:   # pip3  install  --upgrade  pip b. Install & check latest ansible  version:       # pip3 install ansible   # pip3 show ansible      c.  Install & check  pyVmomi :       # pip3 install pyvmomi ...

How to configure Linux KVM bridge on Ubuntu 18.04 & 20.04 LTS ?

Image
1. Install all the required KVM packages:    # apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager   -y 2. Start and enable 'libvirtd' daemon:    # systemctl start libvirtd     # systemctl enable libvirtd    # systemctl status libvirtd 3. Login to the KVM host using console or do SSH:    ➤  ssh -l root kvmhost.example.com    The default config file will look like below: # cat  /etc/netplan/50-cloud-init.yaml network:     ethernets:         eno1:             addresses:             - 192.168.0.3/24             dhcp4: false             gateway4: 192.168.0.1             nameservers:                 addresses:       ...

xRDP configuration on Ubuntu 16.04, 18.04 & 20.04 LTS Server and Desktop

Image
xRDP is one of the most commonly used opensource remote desktop protocol (rdp). By following the below steps it can easily be configured on different flavors of Ubuntu system. Configuration : a. Login to the Ubuntu server as 'root' and run the update: # apt-get update && apt-get upgrade -y b. Install the 'xfce4' desktop environment: # apt-get install xfce4 xfce4-goodies -y c. Install the 'xrdp' package: # apt-get install xorgxrdp xrdp -y d. Enable the 'xfce4-session' for both 'ubuntu' and 'root' user: # echo xfce4-session >~/.xsession # su - ubuntu $ echo xfce4-session >~/.xsession Now the system is ready. You can login to the system using RDP via 'root' or 'ubuntu' user along with their own password. NOTE : If 'ufw' is enabled, make sure to allow the network access to RDP this system. To check the 'ufw' status: # ufw status To allo...