#!/bin/bash
# Generate vm configuration file for already running vms
#
# Execute 'xm new -F test.cfg' to create vm using generated config
#
# By feisky
vms=`xm li | grep -v Name | grep -v Domain-0 | awk '{print $1}'`
for vm in $vms
do
xm li -l $vm > $vm.cfg
done