source: drbl-virt/sbin/kvm_install.sh @ 213

Last change on this file since 213 was 213, checked in by rock, 14 years ago

Add: support KVM (continue...)

File size: 969 bytes
Line 
1#!/bin/bash
2# Program:
3#   DRBL virt module (kvm_install.sh)
4# Author:
5#   Jazz, Rock {jazz, rock}@nchc.org.tw
6# Version:
7#    1.0
8# History:                                                                                         
9#   2010/07/20  Rock    First release (1.0)
10
11source /opt/drbl-virt/conf/drbl-virt.conf
12source $Work_Path/functions_drbl_virt
13
14# [ Intall ]
15case $Linux_Distribution in
16    # for Ubuntu
17    "Ubuntu")
18        echo "please check kernel (KVM enabled)" 
19        echo "Push [Enetr] to install KVM package..."
20        aptitude update ; aptitude install kvm bridge-utils
21    ;;
22    # for Debian
23    "Debian")
24        echo "please check kernel (KVM enabled)"
25        echo "Push [Enetr] to install KVM package..."
26        aptitude update ; aptitude install kvm bridge-utils
27    ;;
28    # for Fedora
29    "Fedora")       
30        echo "Only support Debain."
31        exit
32    ;;
33    *)
34        echo "Only support Debain."
35        exit
36    ;;
37esac
Note: See TracBrowser for help on using the repository browser.