Ignore:
Timestamp:
Aug 19, 2010, 4:15:44 PM (14 years ago)
Author:
rock
Message:

Modify: Collect host & guest IP/number.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • drbl-virt/sbin/drbl_PXE_PV-VM_deploy.sh

    r179 r180  
    1515# [Main]
    1616# = 0. Variables setup =
    17 # == Get Host IP range/number  == #
    18 Host_first_IP=""
    19 Host_final_IP=""
    20 get_Host_IP_range
    21 # == Get VM IP range/number  == #
    22 VM_IP_range=""
    23 VM_first_IP=""
    24 VM_final_IP=""
    25 get_VM_IP_range
    26 # == Get VM IP prefix hostname  == #
     17# == Get DRBL eth ==
     18eths=""
     19declare -i eth_nu=""
     20get_DRBL_eth
     21
     22if [ $eth_nu -gt "1" ]; then
     23    echo ""
     24    echo "DRBL environment has muiltpule netwrok card(NIC)."
     25fi
     26
     27for eth in $eths
     28do
     29
     30    # == Get Host IP range/number  ==
     31    Host_first_IP=""
     32    Host_last_IP=""
     33    get_Host_IP_range $eth
     34    # == Get VM number & IP range  ==
     35    VM_IP_range=""
     36    VM_first_IP=""
     37    VM_last_IP=""
     38    get_VM_IP_range $eth
     39    # == Get VM IP prefix hostname  ==
     40    VM_prefix_name=""
     41    get_VM_prefix_name $eth
     42   
     43done
    2744
    2845
    2946# = 1. Copy VM fs =
     47# Kernel & initrd -> /home/domains
     48
    3049
    3150# = 2. Add NFS config =
Note: See TracChangeset for help on using the changeset viewer.