Archive for 'Virtulization' Category

Copying or Backing up an image of an LVM-based Virtual Machine

By jbayer - Last updated: Wednesday, October 2, 2013

If you are using virtual machines on a Linux system, you may be storing the VM image in an LVM partition.  This can make it difficult to copy or backup an image of the VM. The attached script will do just that.  It displays the list of VMs running on the system and allows you […]


Adding Space to Linux Partitions

By jbayer - Last updated: Thursday, August 8, 2013

Sometimes after you make a virtual machine, you find that you need to add more space to it.  You are left with two options: Build a new VM and copy everything over Expand the existing VM The first option is slow and subject to error.  It is very easy to miss copying over a file […]


Detecting hardware virtualization in Linux

By jbayer - Last updated: Friday, May 10, 2013

For historical reasons, most systems which ship have the virtualization flag turned off.  If you aren’t expecting this, and try to install KVM in a Linux system, you can get unusual errors which don’t necessarily indicate the problem. This script performs a few simple tests to see if virtualization is active or not.  I can’t […]


Ganeti 2.6.2

By jbayer - Last updated: Friday, December 21, 2012

RPMs for RHEL6/CentOS6/SL6 are available here:     Also, I’ve uploaded my set of scripts which I wrote and use in administering Ganeti. They are available at: I’d appreciate any feedback.  Suggestions, patches, etc are welcome. This is a description of the scripts: The following are additional shell scripts to support the use of […]


Installing latest virt-manager on RHEL6/CentOS6

By jbayer - Last updated: Monday, March 5, 2012

The virt-manager which comes with RHEL6/CentOS6 is somewhat old, being version 0.8.6, which was released on 1/14/2011.  The attached script will take a basic system and download/install all necessary RPMs, and then download and install the latest virt-manager, version 0.9.1 released 1/31/2012 There are a lot of nice improvements which make this a very worthwhile […]


Install latest virt-manager on RHEL6+, CentOS6+, SL6+

By jbayer - Last updated: Monday, February 27, 2012

RedHat ships an old version of virt-manager on RHEL 6.  This script will install the latest version of virt-manager and virtinst onto a clean RHEL 6 (or CentOS, SL, etc) system. Just download it and run as root.


Easy remote virt-manager

By jbayer - Last updated: Monday, October 24, 2011

First, some background: We have a number of large hosts which run KVM for virtual machines.  All these machines are remote, as in more than 1000 miles away.  The host systems all run Redhat 5.6.  We access our systems remotely using putty. The problem is in how to run virt-manager remotely, easily.   Solution First, […]


How to setup a bridge on Redhat, CentOS, or Scientific Linux

By jbayer - Last updated: Thursday, July 14, 2011

This has been tested on a RHEL 5.6 system.  These instructions should work on any clone.  While not tested, they should work on any 6.0 system as well.   These instructions are taken from the following page, with some additions:     Assuming that the NIC the bridge is to connect to is eth0: […]


Run virt-manager remotely without logging in as root

By jbayer - Last updated: Thursday, July 7, 2011

The following little script will allow a normal user to run virt-manager (used for KVM, Xen and Qemu) without having to log in as root. This assumes that the user is allowed to sudo;  while the topic of the sudoers file is a whole article by itself, the following is an example which should allow […]


Proxmox VE

By jbayer - Last updated: Tuesday, June 7, 2011

This article will cover the Proxmox VE product in some depth. 1.  Intro 2.  Initial install 3.  Setting up a cluster 4.  Convert server to RAID-1 5. Template Naming Conventions 6. Installing a Lucid container 7. Installing a RedHat, Centos or Scientific Linux container 8. Add additional storage to Proxmox VE 9. Available templates 10. […]