Ubuntu 下 的 云 计 算 UbuntuChin 互 动 社 区 王 大 亮
Outline Where is Cloud Computing from? Ubuntu & Cloud Computing Ubuntu Enterprise Cloud Reference
Where is Cloud Computing from? 远 看 有 形, 近 看 无 影
Where is Cloud Computing from? 云 计 算 的 演 化 隶 属 元 => 云 计 算 云 模 式 云 架 构 云 服 务 云 计 算 的 演 化 的 动 力 由 通 信 技 术 引 发 的 端 到 端 的 交 换 技 术 资 源 分 配 技 术
Where is Cloud Computing from? 企 业 界, 云 计 算 的 特 性 : 1) 数 据 存 储 的 可 靠 性 2) 计 算 资 源 的 有 效 利 用, 降 低 对 用 户 端 设 备 要 求, 促 使 使 用 更 为 方 便 3) 设 备 与 数 据 的 共 享 特 性 4) 接 入 方 式 多 样 化 学 术 界, 云 计 算 的 特 性 : 1) 虚 拟 特 性 2) 粒 度 计 算 3) 不 确 定 性 计 算 4) 软 件 算 云 计 算 的 外 在 表 现 是 服 务! 云 计 算 的 手 段 是 虚 拟 化!
Where is Cloud Computing from? 云 计 算 的 应 用 模 式 云 计 算 系 统 架 构 模 型
Where is Cloud Computing from?
Where is Cloud Computing from? Client & Server (C/S) Browser & Server (B/S) Browser & Cloud (B/C)
Where is Cloud Computing from?
Outline Where is Cloud Computing from? Ubuntu Cloud Computing Ubuntu Enterprise Cloud Reference
亚 马 逊 EC 2 IBM 的 蓝 云 微 软 的 Azure Sun Cloud Cloud Computing
Ubuntu Cloud Computing Google Cloud Computing Ubuntu
Ubuntu Cloud Computing Ubuntu One Ubuntu Cloud Computing service for file syncing and sharing
Ubuntu Cloud Computing Ubuntu 的 云 计 算 主 要 包 括 三 部 分 内 容 : 公 共 云 :Ubuntu 通 过 Ubuntu Server Edition on Amazon EC2 的 方 式 提 供 给 用 户 私 有 云 :Ubuntu 通 过 Ubuntu Enterprise Cloud (UEC) 的 方 式 提 供 给 用 户, UEC 已 包 含 Ubuntu 9.04 分 发 版 中, UEC 基 于 开 源 云 平 台 : Eucalyptus 构 建. 云 服 务 : Ubuntu 云 服 务 涉 及 Plan, deploy, train, support 和 manage 的 各 个 环 节
Ubuntu Cloud Computing architecture of Ubuntu Enterprise Cloud with Eucalyptus CLC :Cloud Controller; WS3:Walrus Storage Controller; EBS:Elastic Block Storage Controller; CC:Cluster Controller ;NC:Node Controller
Ubuntu Cloud Computing Cloud Management Platform Canonicals' Landscape RightScale Cohesive Flexible Techonolgies
Ubuntu Cloud Computing Conceptual Representation of the Eucalyptus Cloud
Outline Where is Cloud Computing from? Ubuntu Cloud Computing Ubuntu Enterprise Cloud Reference
Ubuntu Enterprise Cloud Deployment with Ubuntu Enterprise Cloud powered by Eucalyptus STEP 1: Prerequisites STEP 2: System Installation and Configuration STEP 3: Registering Eucalyptus Components STEP 4: Initial Login STEP 5: Obtain a Virtual Machine (VM) Image STEP 6: Running an Image
STEP 1: Prerequisites eucalyptus-cloud: includes the front-end services (Cloud Controller) as well as the Walrus storage system. eucalyptus-cc: includes the Cluster Controller that provides support for the virtual network overlay eucalyptus-nc : includes the Node Controller that interacts with KVM (Kernel-based Virtual Machine) to manage individual VMs
STEP 1: Prerequisites $ sudo apt-get install postfix # select 'Internet Site' $ sudo vi /etc/hosts # add 'mailhost' to the localhost line #127.0.0.1 localhost mailhost sudo vi /etc/network/interfaces ======================== auto lo iface lo inet loopback auto br0 iface br0 inet dhcp bridge_ports eth0 bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp offrestart the network: ======================== sudo /etc/init.d/networking restart
STEP 2: System Installation and Configuration $ sudo apt-get install eucalyptus-cloud eucalyptus-ccnext $ sudo apt-get install eucalyptus-nc $ sudo /etc/init.d/eucalyptus-nc stop $ sudo vi /etc/eucalyptus/eucalyptus.conf # set VNET_BRIDGE="br0" $ sudo /etc/init.d/eucalyptus-nc start $ sudo vi /etc/sysctl.conf # uncomment net.ipv4.ip_forward=1
STEP 3: Registering Eucalyptus Components $ sudo euca_conf -addcluster <clustername> $ sudo euca_conf -addnode <node_hostname>
STEP 4: Initial Login https://<cloud-controller-ip-address>:8443/ JAVA_HOME=/usr EC2_HOME=~/.euca/ec2 EC2_AMITOOL_HOME=~/.euca/ec2ami PATH=$PATH:$EC2_HOME/bin:$EC2_AMITOOL_HOME/bin'
STEP 5: Obtain a Virtual Machine (VM) Image Obtain a Official Virtual Machine Image $ wget http://uec-images.ubuntu.com/releases/karmic/<release>/ubuntu-uec-karmi c-i386.img.gz Bundle and upload the systems kernel $ mkdir kernel $ euca-bundle-image --image /boot/vmlinuz-$(uname -r) \ --destination./kernel --kernel true $ euca-upload-bundle --bucket kernel \ --manifest./kernel/vmlinuz-$(uname -r).manifest.xml $ EKI=`euca-register kernel/vmlinuz-$(uname -r).manifest.xml awk '{print $2}'` $ echo $EKI
STEP 5: Obtain a Virtual Machine (VM) Image Create a ramdisk with acpiphp, bundle and upload $ mkdir ramdisk $ sudo sh -c 'grep -q acpiphp printf "#acpiphp needed for ebs\nacpiphp\n" > /etc/initramfs-tools/modules' $ sudo mkinitramfs -o./ramdisk/initrd.img-$(uname -r) $ euca-bundle-image --image./ramdisk/initrd.img-$(uname -r) \ --destination./ramdisk --ramdisk true $ euca-upload-bundle --bucket ramdisk \ --manifest ramdisk/initrd.img-$(uname -r).manifest.xml $ ERI=`euca-register ramdisk/initrd.img-$(uname -r).manifest.xml awk '{print $2}'` $ Uncompress echo $ERI and bundle the image $ mkdir image $ zcat ubuntu-uec-karmic-i386.img.gz cp --sparse=always /dev/stdin ubuntu-uec-karmic-i386.img $ euca-bundle-image --image ubuntu-uec-karmic-i386.img \ --destination./image --kernel $EKI --ramdisk $ERI $ euca-upload-bundle --bucket image --manifest. /image/root.img.manifest.xml $ EMI=`euca-register image/root.img.manifest.xml awk '{print $2}'` $ echo $EMI
STEP 6: Running an Image $ euca-add-keypair mykey > ~/.euca/mykey.priv $ chmod 0600 ~/.euca/mykey.priv $ euca-run-instances $EMI -k mykey $ euca-describe-instances $ ssh -i ~/.euca/mykey.priv ubuntu@<ip_of_instance>
云 计 算 与 开 源 软 件 的 关 系
Reference 李 德 毅. 隶 属 云 和 隶 属 云 发 生 器 [J], 计 算 机 研 究 与 发 展, 1995:32(6). 尹 国 定. 云 计 算 实 现 概 念 计 算 的 方 法 [J], 东 南 大 学 学 报 ( 自 然 科 学 版 ),2003:33(4). White Paper: Ubuntu Enterprise Cloud Architecture White Paper: Eucalyptus Open-Source Cloud Computing Infrastructure
个 人 著 作
Q & A
谢 谢 大 家!!!