Changeset 161
- Timestamp:
- Aug 2, 2010, 5:23:40 PM (14 years ago)
- Location:
- drbl-virt
- Files:
-
- 3 added
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/sbin/drbl_virt.sh
r158 r161 9 9 # 2010/07/20 Rock First release (1.0) 10 10 11 # [PATH] 12 Work_Home="/opt/drbl-virt" 13 Work_Path="/opt/drbl-virt/sbin" 14 PATH=${PATH}:$Work_Path 15 11 16 # [Source] 12 source drbl_virt_funs17 source funs_drbl_virt 13 18 14 19 # [Main] 20 install_drbl-virt_dir 15 21 cpu_check 16 22 check_systemInfo 17 23 VMM_select 18 24 19 # [Install VMM/Hypervisior] 25 # [Install VMM/Hypervisior] 1=Xen, 2=KVM 20 26 if [ $VMM_select == 1 ]; then 21 27 source xen_intall.sh -
drbl-virt/sbin/funs_drbl_virt
r159 r161 19 19 function check_root(){ 20 20 if [ $USER != "root" ]; then 21 echo "Please change user to root !!!" 22 exit 21 echo -e "Please input root password to run it!" 22 su -c "$0" "$@" 23 23 24 fi 24 25 } … … 46 47 read -p "Which VMM/Hypervisior will be used in DRBL (1)Xen (2)KVM: " VMM_select 47 48 done 49 echo "Xen" > $Work_Home/.tmp/hypervisior 48 50 else 49 51 echo "Xen will be the only Hypervisior in your DRBL" 50 52 echo -e "Because CPU don't support virtualization, \nit can't choose KVM to be the Hypervisior" 51 53 VMM_select=2 54 echo "KVM" > $Work_Home/.tmp/hypervisior 52 55 fi 53 56 } 54 57 58 # [create drbl-virt path] 59 function install_drbl-virt_dir(){ 60 mkdir -p $Work_Home/.tmp 61 } 62 63 # [check Hypervisior] 64 function check_hypervisior(){ 65 return $(cat $Work_Home/.tmp/hypervisior) 66 } 67 55 68 # [DRBL Check] 56 69
Note: See TracChangeset
for help on using the changeset viewer.