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