source: drbl-virt/sbin/drbl_PXE_PV-VM_deploy.sh @ 180

Last change on this file since 180 was 180, checked in by rock, 14 years ago

Modify: Collect host & guest IP/number.

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash                                                                                                         
2# Program:
3#   Path DRBL evironment to support Xen/KVM
4# Author:
5#   Jazz, Rock {jazz, rock}@nchc.org.tw
6# Version:
7#    1.0
8# History:                                                                                         
9#   2010/08/13  Rock    First release (1.0)
10 
11# [Source]
12source /opt/drbl-virt/conf/drbl-virt.conf
13source $Work_Path/functions_drbl_virt
14
15# [Main]
16# = 0. Variables setup =
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
44
45
46# = 1. Copy VM fs =
47# Kernel & initrd -> /home/domains
48
49
50# = 2. Add NFS config =
51
52# = 3. Add DHCP config =
53
54# = 4. Add hosts and cp it to all drbl client =
55
56# = 5. generate guest config file =
Note: See TracBrowser for help on using the repository browser.