Changeset 188 for drbl-virt/sbin


Ignore:
Timestamp:
Aug 26, 2010, 6:17:08 PM (14 years ago)
Author:
rock
Message:

BugFix?:

Location:
drbl-virt/sbin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • drbl-virt/sbin/drbl_xen_patch.sh

    r187 r188  
    2424check_xen_nu
    2525Xen_Kernel=$(echo $Xen_Kernel | sed 's/^vmlinuz-//g' )
    26 
     26echo $Xen_Kernel > $Work_Home/etc/Xen_Kernel
    2727# == Copy xen image to /tftpboot/nbi_img/ ==
    2828echo "copy Xen image & Kernel to /tftpboot/nbi_img/"
  • drbl-virt/sbin/drbl_xen_repush.sh

    r187 r188  
    7777# = 2. Re-deploy drbl client =
    7878# == Cheange Xen Kernel ==   
     79Xen_Kernel=$(cat $Work_Home/etc/Xen_Kernel)
     80read -p "Xen_Kernel=$Xen_Kernel"
    7981echo "/opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel"
    8082/opt/drbl/sbin/drblsrv-offline -s $Xen_Kernel                                                                                                                       
  • drbl-virt/sbin/functions_drbl_virt

    r187 r188  
    105105    declare -i j=1
    106106    echo ""
    107    
     107    echo "Choose Xen-enabled Kernel"
    108108    if [ $Kernels_nu -gt 1  ]; then
    109109        for Kernel in $Kernels
     
    272272
    273273function 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"
    278278
    279279# /opt/drbl-virt/etc/macadr-VM-ethX.txt
     
    287287
    288288# backup
     289if [ -e /opt/drbl-virt/etc/macadr-VM-$eth.txt ]; then
    289290mv -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
     291fi
    290292
    291293# generate MAC
Note: See TracChangeset for help on using the changeset viewer.