- Timestamp:
- Aug 26, 2010, 6:17:08 PM (14 years ago)
- Location:
- drbl-virt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/install.sh
r185 r188 22 22 check_root 23 23 24 jude="no" 25 if [ -e $Work_Home ]; then 26 echo "This system already has drbl-virt." 27 read -p "Do you want to install, again (yes/no): " jude 28 29 if [ $jude == "yes" ]; then 30 rm -fr $Work_Home 31 else 32 echo "Exit" 33 exit 34 fi 35 fi 36 24 37 mkdir -p $Work_Home 25 38 mkdir $Work_Home/etc … … 28 41 cp -fr $Now_Path/conf $Work_Home/ 29 42 cp -fr $Now_Path/uninstall.sh $Work_Home/ 43 44 echo "drbl-virt install completion" 45 echo "Please go to /opt/drbl-virt/ to check" -
drbl-virt/sbin/drbl_xen_patch.sh
r187 r188 24 24 check_xen_nu 25 25 Xen_Kernel=$(echo $Xen_Kernel | sed 's/^vmlinuz-//g' ) 26 26 echo $Xen_Kernel > $Work_Home/etc/Xen_Kernel 27 27 # == Copy xen image to /tftpboot/nbi_img/ == 28 28 echo "copy Xen image & Kernel to /tftpboot/nbi_img/" -
drbl-virt/sbin/drbl_xen_repush.sh
r187 r188 77 77 # = 2. Re-deploy drbl client = 78 78 # == Cheange Xen Kernel == 79 Xen_Kernel=$(cat $Work_Home/etc/Xen_Kernel) 80 read -p "Xen_Kernel=$Xen_Kernel" 79 81 echo "/opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel" 80 82 /opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel -
drbl-virt/sbin/functions_drbl_virt
r187 r188 105 105 declare -i j=1 106 106 echo "" 107 107 echo "Choose Xen-enabled Kernel" 108 108 if [ $Kernels_nu -gt 1 ]; then 109 109 for Kernel in $Kernels … … 272 272 273 273 function generate_Xen_MAC_address(){ 274 echo "eth $eth"275 echo "VM_Host_totoal_nu $VM_Host_totoal_nu"276 echo "Host_last_IP_4 $Host_last_IP_4"277 echo "VM_prefix_eth $VM_prefix_eth"274 #echo "eth $eth" 275 #echo "VM_Host_totoal_nu $VM_Host_totoal_nu" 276 #echo "Host_last_IP_4 $Host_last_IP_4" 277 #echo "VM_prefix_eth $VM_prefix_eth" 278 278 279 279 # /opt/drbl-virt/etc/macadr-VM-ethX.txt … … 287 287 288 288 # backup 289 if [ -e /opt/drbl-virt/etc/macadr-VM-$eth.txt ]; then 289 290 mv -f /opt/drbl-virt/etc/macadr-VM-$eth.txt /opt/drbl-virt/etc/macadr-VM-$eth.txt.$(date +%Y-%m-%d-%H-%M-%S).drbl-virt_bak 291 fi 290 292 291 293 # generate MAC
Note: See TracChangeset
for help on using the changeset viewer.