Skip to content

Instantly share code, notes, and snippets.

Michael Hampton error10

Block or report user

Report or block error10

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@error10
error10 / virt-helpers.sh
Last active Dec 4, 2015
Bash helper functions for mangling libvirt virtual machines
View virt-helpers.sh
#!/usr/bin/env bash
# Check whether a named virtual machine exists.
#
# Arguments:
# 1: virtual machine name given by virsh
#
# Returns:
# 0 if virtual machine exists
# 1 if virtual machine does not exist
You can’t perform that action at this time.