Month: February 2016

DNS – simple and effective guide with history

Here is link to a very nice and definitive guide to DNS. Very detailed and useful. There is a pdf version as well to download 🙂

Thanks to Andrijana Nikolic for providing a valuable resource to share with you all.

virsh – show ip address of all running VMs

If you are using the libvirt and associated tools, then you must be aware about virt-manager. However this being a GUI tools, it is not possible to always use this. “virsh” is a good option for this.

To start with, if you need to know all the VMs all the running VMs, then you can use (to only view the names):

virsh list --name

Extending this to make it more useful is the case if you need to know the IP address for the running VMs. Here is a simple code that you can put in alias or function that can be used to get the IP address of the running VM’s.

virsh list --name | \
while read line 
      [[ ! -z $line ]] && virsh domifaddr $line

Bonus note:
If you want to start the VM, then you can use

virsh start