Changes between Version 18 and Version 19 of Eucalyptus-1.6.2-Setup

Show
Ignore:
Timestamp:
06/04/10 17:20:35 (9 years ago)
Author:
shuang (IP: 152.54.6.53)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Eucalyptus-1.6.2-Setup

    v18 v19  
    3232   a. edit /etc/xen/xend-config.sxp, make sure '(xend-unix-server yes)' and '/var/lib/xend/xend-socket' set, use lsof to verify xend-socket is open 
    3333 
    34 === Network configuration === 
     34=== Configuring Network === 
    3535The notes here are either for the head node [HN], the compute nodes [CN], or for all [ALL] 
    3636 
     
    7676$ ifconfig eth0 up 
    7777}}} 
    78  
    79 == CentOS5.4 == 
    80 === Installing Eucalyputs 1.6.2 === 
    81  1. export VERSION=1.6.2 
    82  1. yum install -y ntp 
    83  1. yum install -y java-1.6.0-openjdk ant ant-nodeps dhcp bridge-utils httpd 
    84  1.  
    85 {{{ 
    86 yum install -y xen 
    87 sed --in-place 's/#(xend-http-server no)/(xend-http-server yes)/' /etc/xen/xend-config.sxp  
    88 sed --in-place 's/#(xend-address localhost)/(xend-address localhost)/' /etc/xen/xend-config.sxp 
    89 /etc/init.d/xend restart 
    90 }}} 
    91  
    92  
    93 == Setting up stock Eucalyptus 1.5.2 == 
    94  
    95 === Hardware setup === 
    96  
    97 You will need several hosts with dual interfaces - one interface on 'management' network and one on 'data plane' that will be stitched into ORCA slices. At RENCI this setup is implemented by having each host its eth1 on BEN management network (192.168.xx.xx address space) and eth0 connected into BEN with unassigned IP addresses. 
    98  
    99 Each host should support hardware virtualization and be able to run KVM or Xen. The cluster will consist of a single head node and multiple compute nodes. The head node requires substantial disk space to store all VM filesystem images (if you plan to support many options).  
    100  
    101 The dataplane interfaces of the cluster should be plugged in into an ORCA-controllable switch (a Cisco 6509 in our case) to allow for the mapping of Euca-created vlans to other vlan segments. 
    102  
    103 === Software pre-requisutes === 
    104   
    105  1. Ubuntu jaunty basic server install 
    106  1. kvm and libvirt (including libvirt-bin). Ubuntu favors kvm over Xen. KVM requires hardware virtualization support in your CPU! 
    107  1. ntp (Euca instructions suggest using open-ntp, however there is no reason not to use the Ubuntu 9.04 stock ntpd3 server 
    108  1. vconfig tools (to enable creating tagged interface) 
    109  1. brctl tools (to enable creating bridges) 
    110  
    111 ==== Testing software pre-requisites ==== 
    112  
    113 The notes here are either for the head node [HN], the compute nodes [CN], or for all [ALL] 
    114  
    115  1. [ALL] Install and test ntp. Run ntpdc and verify the output is sane (substitute your own NTP server):  
    116 {{{ 
    117 $ apt-get install ntp 
    118 $ echo server clock3.unc.edu >> /etc/ntp.conf 
    119 $ /etc/init.d/ntp restart 
    120 $ ntpdc 
    121 }}} 
    122 line to /etc/ntp.conf and restarting ntpd 
    123  1. [ALL] Test vconfig and brctl: 
    124 {{{ 
    125 $ vconfig add eth0 10 
    126 $ ifconfig eth0.10 
    127 $ vconfig rem eth0.10 
    128 $ brctl show  
    129 }}} 
    130  1. [CN] Make sure kvm is OK. If you receive a message about a problem with a kernel module either your CPU does not support hardware virtualization, or it is disabled in the BIOS. In the latter case, edit the BIOS setting and try again: 
    131 {{{ 
    132 $ /etc/init.d/kvm restart 
    133 }}} 
    134  1. [CN] Make sure libvirtd is running: 
    135 {{{ 
    136 $ /etc/init.d/libvirt-bin restart 
    137 $ virsh list 
    138 }}} 
    139  1. Make sure the dataplane interface (although unconfigured) is UP 
    140 {{{ 
    141 $ ifconfig eth0 
    142 }}} 
    143  1. [CN] identify or create a default bridge for kvm/xen to use. Xen by default creates a bridge (xenbr0). KVM requires that a bridge is manually setup. On Ubuntu this means adding 
    144 {{{ 
    145 auto br0 
    146 iface br0 inet manual 
    147         bridge_ports eth0 
    148         bridge_stp off 
    149         bridge_maxwait 0 
    150 }}}  
    151 to /etc/network/interfaces. NOTE: in this setup eth0 is the dataplane interface facing into BEN. It remains unconfigured. The management interface is eth1 and is not shown here - it has a static configuration. Restart networking and verify that bridge br0 exists and eth0 is part of it, verify that br0 and eth0 are in the UP: 
    152 {{{ 
    153 $ brctl show 
    154 $ ifconfig br0 
    155 $ ifconfig eth0 
    156 }}} 
    157 Refer to the discussion [http://open.eucalyptus.com/wiki/EucalyptusNetworking_v1.5.2 here] about the significance of having the correct bridge setup.  
    158  1. [HN] Install DHCP server. It does not have to be configured or running. Euca will start it when needed. 
    159 {{{ 
    160 $ apt-get install dhcp3-server 
    161 }}} 
    162  
    163 === Installing Eucalyptus === 
    164  
    165 Follow the instructions [http://open.eucalyptus.com/wiki/EucalyptusInstallationUbuntuJaunty_v1.5.2 here]. Be sure to select the right packages for your architecture. BEN cluster uses amd64 packages for eucalyptus and euca2ools.  
    16678 
    16779=== Configuring Eucalyptus === 
     
    191103#VNET_MODE="SYSTEM" 
    192104}}} 
     105 
     106== CentOS5.4 == 
     107=== Installing Eucalyputs 1.6.2 === 
     108 1. export VERSION=1.6.2 
     109 1. yum install -y ntp 
     110 1. yum install -y java-1.6.0-openjdk ant ant-nodeps dhcp bridge-utils httpd 
     111 1.  
     112{{{ 
     113yum install -y xen 
     114sed --in-place 's/#(xend-http-server no)/(xend-http-server yes)/' /etc/xen/xend-config.sxp  
     115sed --in-place 's/#(xend-address localhost)/(xend-address localhost)/' /etc/xen/xend-config.sxp 
     116/etc/init.d/xend restart 
     117}}} 
     118 
     119 
    193120 
    194121=== Running Eucalyptus ===