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

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

Modify: The smae

  • 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
34    # == Get VM number, IP range & prefix name ==
35    declare -i VM_IP_range=""
36    declare -i Host_last_IP_4=""
37    VM_first_IP=""
38    VM_last_IP=""
39    VM_prefix_name=""
40    get_VM_IP_range_and_prefix_name
41    create_VM_IP_table
42
43done
44
45
46
47# = 1. Copy VM fs =
48# Kernel & initrd -> /home/domains
49
50
51# = 2. Add NFS config =
52
53# = 3. Add DHCP config =
54
55# = 4. Add hosts and cp it to all drbl client =
56
57# = 5. generate guest config file =
Note: See TracBrowser for help on using the repository browser.