scripting

Posts related to scripting, mainly using shell scripts.

Simplifying VM Management: Executing Commands in Guest VMs using Virsh

If you are using virsh/qemu for Virtual machine management, then there are many occasions when an administrator requires to run some commands on the guest VM. This is made very simple by “Quem-guest-agent.” This post demos two approaches to running a command in the Virtual guest machine. Prerequisite:(Teststed for Ubuntu Host and Guest Machine) Approach-1: …

Simplifying VM Management: Executing Commands in Guest VMs using Virsh Read More »

An Amazingly fast way to create Virtual machines

If you create Virtual machines often and manually install the same tools repeatedly, this post is for you. Using ansible, I have written a simple playbook to create the virtual machines within seconds. The playbook would automatically install any desired software you want. The playbook would also run any command you would like to execute …

An Amazingly fast way to create Virtual machines Read More »

How to use callback plugins in ansible

Ansible is highly configurable and extendable for users. This post will show us how to use the callback plugins(shipped with ansible) to extend the playbooks. Ansible ships with many great callback plugins, a majority of these plugins are to control the output format of the playbook or to generate some sort of notification. Some examples …

How to use callback plugins in ansible Read More »

Why not use the script module in ansible?

In most cases, ansible inbuilt modules are enough to do the job. However, in some cases, it’s either highly complex or impossible to achieve the goal using ansible inbuilt modules. In such cases, many users write their scripts(Eg: bash or python,Etc.), which is fine for most cases. However, there are some downsides to using scripts. …

Why not use the script module in ansible? Read More »

Create a Virtual Machine with cloud-init using libvert(Automated)

In this post, we will see an automated approach to creating a guest VM with cloud-init using libvert/virt-install. In the Previous post described here, we have seen the manual procedure. Now, we will use a shell script wrapper to do the same for our convenience. For your convenience, the script is loaded with comments, so …

Create a Virtual Machine with cloud-init using libvert(Automated) Read More »

Scroll to Top