#!/bin/bash
# Program:
#   DRBL virt module
# Author: 
#   Jazz, Rock {jazz, rock}@nchc.org.tw
# Version:
#    1.0
# History:                                                                                          
#   2010/07/20  Rock    First release (1.0) 

# [Source]
source /opt/drbl-virt/conf/drbl-virt.conf
source /opt/drbl-virt/sbin/functions_drbl_virt
# [Main]
install_drbl-virt_dir
cpu_check
check_systemInfo
VMM_select
#check_root

# [Install VMM/Hypervisior] 1=Xen, 2=KVM
if [ $VMM_select == 1 ]; then
    source xen_install.sh
else
    source kvm_install.sh
fi

# [DRBL Environment Configuration]

