`
zhangqiaoqifgdqsn
  • 浏览: 14754 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

vSphere部署Cloud Foundry V2 (3) ---- micro bosh 部署

阅读更多

Cloud Foundry V2 的文章目录在 Cloud Foundry V2 相关文章目录

我会不定期的做一些文章的更改,如有不便之处还要谅解。

在部署中遇到了什么问题可以在下面留言。

本博客的所有yml stemcell 和 release 都能在百度云上下载 http://pan.baidu.com/s/1pJHkPYV

 

如果你有对配置文件或者CF运维有什么更好的想法请联系我,我非常需要你的帮助

1、下载 stemcells

创建2个文件夹 deployments 和 stemcells。

mkdir -p deployments 
mkdir -p stemcells

 进入stemcells文件夹下载 stemcell

cd ~/stemcells

 显示stemcell 版本 

bosh public stemcells 
| Name | 
+-----------------------------------------------------------------+ 
| bosh-stemcell-2427-aws-xen-ubuntu.tgz | 
| bosh-stemcell-2652-aws-xen-centos.tgz | 
| bosh-stemcell-2739-aws-xen-centos-go_agent.tgz | 
| bosh-stemcell-2427-aws-xen-ubuntu-go_agent.tgz | 
| bosh-stemcell-2710-aws-xen-ubuntu-lucid-go_agent.tgz | 
| bosh-stemcell-2652-aws-xen-ubuntu-lucid.tgz | 
| bosh-stemcell-2739-aws-xen-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2719.1-aws-xen-centos-go_agent.tgz | 
| bosh-stemcell-2719.1-aws-xen-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2719.2-aws-xen-centos-go_agent.tgz | 
| bosh-stemcell-2719.2-aws-xen-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2719.3-aws-xen-ubuntu-trusty-go_agent.tgz | 
| light-bosh-stemcell-2427-aws-xen-ubuntu.tgz | 
| light-bosh-stemcell-2652-aws-xen-centos.tgz | 
| light-bosh-stemcell-2739-aws-xen-centos-go_agent.tgz | 
| light-bosh-stemcell-2427-aws-xen-ubuntu-go_agent.tgz | 
| light-bosh-stemcell-2710-aws-xen-ubuntu-lucid-go_agent.tgz | 
| light-bosh-stemcell-2652-aws-xen-ubuntu-lucid.tgz | 
| light-bosh-stemcell-2739-aws-xen-ubuntu-trusty-go_agent.tgz | 
| light-bosh-stemcell-2719.1-aws-xen-centos-go_agent.tgz | 
| light-bosh-stemcell-2719.1-aws-xen-ubuntu-trusty-go_agent.tgz | 
| light-bosh-stemcell-2719.2-aws-xen-centos-go_agent.tgz | 
| light-bosh-stemcell-2719.2-aws-xen-ubuntu-trusty-go_agent.tgz | 
| light-bosh-stemcell-2719.3-aws-xen-ubuntu-trusty-go_agent.tgz | 
| light-bosh-stemcell-2739-aws-xen-hvm-centos-go_agent.tgz | 
| light-bosh-stemcell-2739-aws-xen-hvm-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2427-openstack-kvm-ubuntu.tgz | 
| bosh-stemcell-2624-openstack-kvm-centos.tgz | 
| bosh-stemcell-2624-openstack-kvm-ubuntu-lucid.tgz | 
| bosh-stemcell-2739-openstack-kvm-centos-go_agent.tgz | 
| bosh-stemcell-2739-openstack-kvm-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2652-openstack-kvm-ubuntu-lucid-go_agent.tgz | 
| bosh-stemcell-2719.1-openstack-kvm-centos-go_agent.tgz | 
| bosh-stemcell-2719.1-openstack-kvm-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2719.2-openstack-kvm-centos-go_agent.tgz | 
| bosh-stemcell-2719.2-openstack-kvm-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2719.3-openstack-kvm-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2427-vcloud-esxi-ubuntu.tgz | 
| bosh-stemcell-2652-vcloud-esxi-ubuntu-lucid.tgz | 
| bosh-stemcell-2732-vcloud-esxi-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2710-vcloud-esxi-ubuntu-lucid-go_agent.tgz | 
| bosh-stemcell-2427-vsphere-esxi-ubuntu.tgz | 
| bosh-stemcell-2624-vsphere-esxi-centos.tgz | 
| bosh-stemcell-2739-vsphere-esxi-centos-go_agent.tgz | 
| bosh-stemcell-2427-vsphere-esxi-ubuntu-go_agent.tgz | 
| bosh-stemcell-2710-vsphere-esxi-ubuntu-lucid-go_agent.tgz | 
| bosh-stemcell-2624-vsphere-esxi-ubuntu-lucid.tgz | 
| bosh-stemcell-2739-vsphere-esxi-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2719.1-vsphere-esxi-centos-go_agent.tgz | 
| bosh-stemcell-2719.1-vsphere-esxi-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2719.2-vsphere-esxi-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-2719.2-vsphere-esxi-centos-go_agent.tgz | 
| bosh-stemcell-2719.3-vsphere-esxi-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-370-warden-boshlite-ubuntu-trusty-go_agent.tgz | 
| bosh-stemcell-53-warden-boshlite-ubuntu.tgz | 
| bosh-stemcell-370-warden-boshlite-centos-go_agent.tgz | 
| bosh-stemcell-64-warden-boshlite-ubuntu-lucid-go_agent.tgz | 
+-----------------------------------------------------------------+ 

 选择合适的版本下载

bosh download public stemcell bosh-stemcell-2427-vsphere-esxi-ubuntu.tgz 

 等待下载完成 

bosh-stemcell: 9% |ooo             | 35.9MB 128.5KB/s ETA: 00:46:51

 

2、配置vSphere

1、新建文件夹对虚拟机分组: 从 vCenter 的导航栏中,选择“主页”(Home) ->“清单”(Inventory) ->“虚拟机和模板”(VMs and Templates) 视图,然后按如下所示创建文件夹:

这些文件夹随后将用来对 BOSH 和 Cloud Foundry 的虚拟机进行分组。在上例中,“templatefolderbosh”用来存放 BOSH stemcell。“vmfolderbosh”用来存放 BOSH 节点。“templatefolder”用来存放 Cloud Foundry stemcell。“vmfolder”用来存放 Cloud Foundry 节点。

 

2、从“主页”(Home) ->“清单”(Inventory) ->“数据存储”(Datastores) 视图中,选择NFSDataStore数据存储,并浏览该存储。

创建一个用来存储虚拟机的子文件夹。在本例中,我们将此子文件夹命名为“boshdeployer”。此文件夹名称将成为我们部署清单中的“disk_path”参数的值

 

3、配置bosh模板

进入deployments目录创建micro01的文件夹

cd ~/deployments/ 
mkdir micro01

 编写micro_bosh的配置文件

vim micro_bosh.yml

 一下内容可以参考

---
name: micro

network:
  ip: 192.168.1.100
  netmask: 255.255.255.0
  gateway: 192.168.1.1
  dns:
  - 8.8.8.8
  cloud_properties:
    name: VM Network

resources: 
   persistent_disk: 16384
   cloud_properties:
      ram: 2048
      disk: 16384
      cpu: 2

cloud:
  plugin: vsphere
  properties:
    agent:
      ntp:
       - time.bnu.edu.cn
       - ntp02.las01.emcatmos.com
    vcenters:
      - host: 192.168.1.6
        user: administrator
        password: ******
        datacenters:
          - name: vDataCenter
            vm_folder: zhangqiaoqi_CF/vm_folder
            template_folder: zhangqiaoqi_CF/template_folder
            disk_path: boshdeployer
            datastore_pattern: NFSDataStore
            persistent_datastore_pattern: NFSDataStore
            allow_mixed_datastores: true
            clusters:
              - vCluster

 检测配置文件是否正确

bosh micro deployment ~/deployments/micro01
WARNING! Your target has been changed to `https://192.168.1.203:25555'! 
Deployment set to '/home/base/deployments/micro01/micro_bosh.yml'

 

3、部署 micro—bosh

bosh micro deploy ~/stemcells/bosh-stemcell-2427-vsphere-esxi-ubuntu.tgz
Deploying new micro BOSH instance `micro01/micro_bosh.yml' to `https://192.168.1.203:25555' (type 'yes' to continue): yes 

Verifying stemcell... 
File exists and readable OK 
Verifying tarball... 
Read tarball OK 
Manifest exists OK 
Stemcell image file OK 
Stemcell properties OK 

Stemcell info 
------------- 
Name: bosh-vsphere-esxi-ubuntu 
Version: 2427 

Started deploy micro bosh 
Started deploy micro bosh > Unpacking stemcell. Done (00:00:05) 
Started deploy micro bosh > Uploading stemcellat depth 0 - 20: unable to get local issuer certificate 
at depth 0 - 20: unable to get local issuer certificate 
. Done (00:00:38) 
Started deploy micro bosh > Creating VM from sc-10f0b41d-d477-49b7-a9bd-d4ac150d5549at depth 0 - 20: unable to get local issuer certificate 
at depth 0 - 20: unable to get local issuer certificate 
. Done (00:03:57) 
Started deploy micro bosh > Waiting for the agentat depth 0 - 20: unable to get local issuer certificate 
. Done (00:00:49) 
Started deploy micro bosh > Updating persistent disk 
Started deploy micro bosh > Create disk. Done (00:00:00)at depth 0 - 20: unable to get local issuer certificate 
at depth 0 - 20: unable to get local issuer certificate 
at depth 0 - 20: unable to get local issuer certificate 

Started deploy micro bosh > Mount disk. Done (00:00:11) 
Done deploy micro bosh > Updating persistent disk (00:00:27) 
Started deploy micro bosh > Stopping agent services. Done (00:00:01) 
Started deploy micro bosh > Applying micro BOSH specat depth 0 - 20: unable to get local issuer certificate 
. Done (00:00:57) 
Started deploy micro bosh > Starting agent services. Done (00:00:00) 
Started deploy micro bosh > Waiting for the directorat depth 0 - 20: unable to get local issuer certificate 
. Done (00:00:17) 
Done deploy micro bosh (00:07:11) 
Deployed `micro01/micro_bosh.yml' to `https://192.168.1.203:25555', took 00:07:11 to complete

 

 

分享到:
评论

相关推荐

    cloud foundry 大规模部署(bosh)及平台运营完整中文手册

    ### Cloud Foundry 大规模部署(BOSH)及平台运营完整中文手册 #### 一、基础知识与背景 **Cloud Foundry** 是一款领先的开源PaaS(Platform as a Service,平台即服务)产品,旨在为企业提供一种高效的方式去构建...

    vsphere-documentation-67u2-EN.zip

    vsphere-esxi-672-installation-setup-guide.pdf vsphere-esxi-672-upgrade-guide.pdf vsphere-esxi-vcenter-server-672-appliance-configuration-guide.pdf vsphere-esxi-vcenter-server-672-availability-guide...

    VMware vSphere的客户端安装程序VMware-viclient-all-4.1.0-258902

    VMware-viclient-all-4.1.0-258902.exe是VMware vSphere的客户端安装程序。vSphere是VMware推出的一款云计算产品,它提供了一套完整的虚拟化解决方案,包括服务器虚拟化、存储虚拟化、网络虚拟化等。 VMware-...

    vsphere-esxi-vcenter-server-51用户文档

    本文将依据"vsphere-esxi-vcenter-server-51用户文档"中的主要知识点进行深入解析。 1. **vSphere ESXi安装与设置** "vsphere-esxi-vcenter-server-51-installation-setup-guide.pdf"详述了安装和配置vSphere ESXi...

    CCIE-DC vSphere6.0专题视频.zip

    3-vSphere6.0-新功能介绍 4-vSphere6.0-授权介绍 5-vSphere6.0-课程拓扑介绍 6-vSphere6.0-设计和部署ESXi6.0 7-vSphere6.0-vCenter设计和部署 8-vSphere6.0-共享存储和FC存储介绍 9-vSphere6.0-OpenFiler安装 10-...

    vsphere-client-sdk-6.5.0-8307201.zip

    vsphere-client-sdk-6.5.0-8307201.zipvsphere-client-sdk-6.5.0-8307201.zipvsphere-client-sdk-6.5.0-8307201.zipvsphere-client-sdk-6.5.0-8307201.zip

    VMware vSphere的客户端安装程序VMware-viclient-all-5.1.0-1064113

    VMware-viclient-all-5.1.0-1064113.exe是VMware vSphere的客户端安装程序。它与之前版本的VMware vSphere客户端有所不同,版本号已经升级到5.1.0。 安装VMware-viclient-all-5.1.0-1064113.exe可以让你通过图形...

    vsphere-esxi-vcenter-server-511-host-management-guide.pdf

    ### vsphere-esxi-vcenter-server-511-host-management-guide.pdf 知识点解析 #### 一、vCenter Server 和主机管理概述 - **产品版本**:本文档涉及的产品包括 VMware ESXi 5.1 和 vCenter Server 5.1 的 Update 1...

    Cloud Foundry平台概述

    此外,Cloud Foundry还与vSphere/vCloud等本地IaaS平台深度集成,为企业提供了公共、私有或混合的PaaS/IaaS解决方案。这不仅促进了国内云计算技术的发展,也为开发者提供了更多样化的选择和便利。 #### 开始使用...

    vsphere-esxi-vcenter-server-70-vsphere-with-kubernetes-guide.pdf

    vSphere融合kubernetes平台配置手册,提供有关使用 vSphere Client 配置和管理vSphere with Kubernetes的信息。此外,还提供了有关使用 kubectl 连接到在 vSphere with Kubernetes上运行的命名空间以及在指定的命名...

    vsphere-esxi-vcenter-server-501-installation-setup-guide

    ### vsphere-esxi-vcenter-server-501-installation-setup-guide #### 关于vSphere安装与设置 vSphere是VMware公司提供的一套全面的虚拟化解决方案,它可以帮助企业简化IT基础设施并提高资源利用率。本指南主要...

    vsphere-documentation-67.zip

    "vsphere-vcenter-server-67-installation-guide.pdf"则为vCenter Server 6.7的安装指南,提供了详细的安装步骤和注意事项,帮助用户无误地部署vSphere的核心组件。 "vsphere-esxi-vcenter-server-67-platform-...

    VMware-vSphere-SDK-6.0.0.zip

    VMware vSphere SDK是 VMware 公司为开发者提供的一个强大工具集,用于构建与VMware vSphere环境交互的应用程序和服务。vSphere SDK允许开发者通过编程方式管理虚拟化基础设施,包括虚拟机、虚拟网络、存储以及其他...

    vsphere连接工具VMware-viclient-all-5.0.0-455964.exe

    在esxi 5.0版本中有多个小版本,有好多小版本通过vsphere连接的时候经常不兼容导致无法连接,这个版本VMware-viclient-all-5.0.0-455964 可以根据后面版本号和你服务器上安装的exsi进行对比,如果相同就能使用

    NVIDIA-GRID-vSphere-7.0-440.87-443.05.zip

    《NVIDIA GRID vSphere 7.0 - vGPU 驱动详解》 NVIDIA GRID vSphere 7.0 是一款专为虚拟化环境设计的强大图形处理解决方案,它结合了NVIDIA的先进技术与VMware vSphere 7.0 的强大功能,提供了高效能的vGPU(虚拟...

    vsphere-esxi-vcenter-server-55-availability-guide

    ### vsphere-esxi-vcenter-server-55-availability-guide 知识点解析 #### 关于 vSphere 可用性 vSphere 是 VMware 提供的一套全面的虚拟化平台,能够帮助企业在数据中心环境中优化资源利用效率并提升应用服务的...

    vSphere-vCenter-Esxi-Vmware虚拟机管理工具,可以连接到任何vCenter机器进行批量创建主机等操作

    vSphere-vCenter-Esxi-Vmware虚拟机管理工具,可以连接到任何vCenter机器进行批量创建主机,批量关机,批量开机,批量重启,批量删除释放等操作。后端接口Django开发,用户界面易语言开发。

    VMware vSphere 5-6-6.5-6.7.zip

    3. VMware vSphere 6.5: - vSphere 6.5改进了安全性,引入了VMware Trustpoint,增强了加密和认证机制。 - vSphere Integrated Containers (VIC) 支持运行容器化应用,实现了与传统虚拟机的无缝融合。 - 身份和...

    vmware vsphere 6.5安装配置资料(中文版).zip

    vsphere-esxi-vcenter-server-65-appliance-configuration-guide vsphere-esxi-vcenter-server-65-availability-guide vsphere-esxi-vcenter-server-65-host-management-guide vsphere-esxi-vcenter-server-65-host-...

Global site tag (gtag.js) - Google Analytics