Last change
on this file since 223 was
215,
checked in by rock, 14 years ago
|
Add: KVM support (check KVM kernel)
|
File size:
1005 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 | |
---|
11 | source /opt/drbl-virt/conf/drbl-virt.conf |
---|
12 | source $Work_Path/functions_drbl_virt |
---|
13 | |
---|
14 | # [ Main ] |
---|
15 | check_systemInfo |
---|
16 | |
---|
17 | # = 1. Intall KVM = |
---|
18 | case $Linux_Distribution in |
---|
19 | # for Ubuntu |
---|
20 | "Ubuntu") |
---|
21 | echo "please check kernel (KVM enabled)" |
---|
22 | echo "Push [Enetr] to install KVM package..." |
---|
23 | aptitude update ; aptitude install kvm bridge-utils |
---|
24 | ;; |
---|
25 | # for Debian |
---|
26 | "Debian") |
---|
27 | echo "please check kernel (KVM enabled)" |
---|
28 | echo "Push [Enetr] to install KVM package..." |
---|
29 | aptitude update ; aptitude install kvm bridge-utils |
---|
30 | ;; |
---|
31 | # for Fedora |
---|
32 | "Fedora") |
---|
33 | echo "Only support Debain." |
---|
34 | exit |
---|
35 | ;; |
---|
36 | *) |
---|
37 | echo "Only support Debain." |
---|
38 | exit |
---|
39 | ;; |
---|
40 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.