Skip to content

Instantly share code, notes, and snippets.

View kevteljeur's full-sized avatar

Kevin Teljeur kevteljeur

  • andAgile Ltd
  • Dublin, Ireland
View GitHub Profile
@kevteljeur
kevteljeur / virt-addr.sh
Last active January 21, 2018 00:56 — forked from tensorfields/virt-addr.sh
Get a KVM guest's IP address
#!/bin/bash
# Returns the IP address of a running KVM guest VM
# Assumes a working KVM/libvirt environment
#
# Install:
# Add this bash function to your ~/.bashrc and `source ~/.bashrc`.
# Usage:
# $ virt-addr vm-name
# 192.0.2.16
#