|
Last change
on this file since 223 was
216,
checked in by rock, 15 years ago
|
|
Add: KVM support (KVM env repush)
|
|
File size:
1011 bytes
|
| Rev | Line | |
|---|
| [156] | 1 | #!/bin/bash |
|---|
| 2 | # Program: |
|---|
| 3 | # DRBL virt module |
|---|
| 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] |
|---|
| [171] | 12 | source /opt/drbl-virt/conf/drbl-virt.conf |
|---|
| [175] | 13 | source $Work_Path/functions_drbl_virt |
|---|
| [156] | 14 | # [Main] |
|---|
| [186] | 15 | check_root |
|---|
| [156] | 16 | cpu_check |
|---|
| 17 | check_systemInfo |
|---|
| 18 | VMM_select |
|---|
| 19 | |
|---|
| [187] | 20 | # = 1.[Install VMM/Hypervisior] 1=Xen, 2=KVM = |
|---|
| [156] | 21 | if [ $VMM_select == 1 ]; then |
|---|
| [213] | 22 | # install Xen |
|---|
| [187] | 23 | $Work_Path/xen_install.sh start |
|---|
| [213] | 24 | # patch drbl to suuport Xen environment |
|---|
| 25 | $Work_Path/drbl_xen_patch.sh |
|---|
| 26 | # drbl re-push Xen environment |
|---|
| 27 | $Work_Path/drbl_xen_repush.sh |
|---|
| [156] | 28 | else |
|---|
| [213] | 29 | # install KVM |
|---|
| [187] | 30 | $Work_Path/kvm_install.sh |
|---|
| [213] | 31 | # patch drbl to suuport KVM environment |
|---|
| [215] | 32 | $Work_Path/drbl_kvm_patch.sh |
|---|
| [213] | 33 | # drbl re-push KVM environment |
|---|
| [216] | 34 | $Work_Path/drbl_kvm_repush.sh |
|---|
| [156] | 35 | fi |
|---|
| 36 | |
|---|
| [157] | 37 | |
|---|
| [213] | 38 | # = 2. Create User(drbl-virter) and mv drbl-virt.wat to tomcat = |
|---|
| [207] | 39 | #creat_drbl-virter |
|---|
| 40 | #install_tomcat_and_mv_drbl-virt |
|---|
| 41 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.