个人工具

UbuntuHelp:UEC/NodeInstallation

来自Ubuntu中文

Wikibot讨论 | 贡献2010年5月20日 (四) 00:38的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

Installing the Eucalyptus Node Service on a running Ubuntu system consists of doing the following on one or more systems:

  1. Install Ubuntu 10.04 Server
  2. Update to the most current state in the Ubuntu archive:
sudo apt-get update
sudo apt-get dist-upgrade
  1. Install the eucalyptus-nc package
sudo apt-get install eucalyptus-nc
  1. Configure the system's primary ethernet interface as a bridge. The node controller will attach virtual network interfaces to this bridge for VM that is started before it to enable network connectivity.
  • Note: Remember the name of your node's bridge device (we assume the name of your bridge device is "br0" for the rest of this document).
  • For details on configuring a bridge, see: [1]
  • The following script should configure your bridge correctly in most setups:
interface=eth0
bridge=br0
sudo sed -i "s/^iface $interface inet \(.*\)$/iface $interface inet manual\n\nauto br0\niface $bridge inet \1/" /etc/network/interfaces
sudo tee -a /etc/network/interfaces <<EOF
        bridge_ports $interface
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off
EOF
sudo /etc/init.d/networking restart
  1. Configure /etc/eucalyptus/eucalyptus.conf with the name of the bridge, and restart the node controller:
sudo sed -i "s/^VNET_BRIDGE=.*$/VNET_BRIDGE=$bridge/" /etc/eucalyptus/eucalyptus.conf
sudo /etc/init.d/eucalyptus-nc restart
  • Note that there are several ways to configure a node to have a bridge as its primary interface, depending on the configuration of your machine. We show an example set of steps here but you will need to take care to ensure that this example configuration does not conflict with your local configuration if you wish to use it.
  1. Finally, you need to install the Cloud Controller's eucalyptus user's public ssh key into the Node Controller's eucalyptus user's authorized_keys file. The easiest way to do this:
  • On the Node Controller, temporarily set a password for the eucalyptus user:
sudo passwd eucalyptus
  • Then, on the Cloud Controller:
sudo -u eucalyptus ssh-copy-id -i ~eucalyptus/.ssh/id_rsa.pub eucalyptus@<IP_OF_NODE>
  • You can now remove the password of the eucalyptus account on the Node:
sudo passwd -d eucalyptus

The following diagram depicts what your setup should now resemble: 模板:Http://pompone.cs.ucsb.edu/~nurmi/images/euca-topo.png