OpenStack Liberty 连接vCenter
2019獨角獸企業重金招聘Python工程師標準>>>
OpenStack連接vCenter,通過其的API發送指令,datastore作為glance和cinder的存儲后端,nova將其整個集群作為虛擬化后端,一個nova-compute只能連接一個vCenter,但是可以指定多個vCenter下的集群。
本文涉及到的環境
- CentOS Linux release 7.2.1511
- OpenStack Liberty
- vCenter6.0.0
OpenStack連接VC拓撲圖
Nova連接VC配置
[default] compute_driver=vmwareapi.VMwareVCDriver [vmware] host_ip=192.168.4.99 host_username=administrator@vsphere.local host_password=!QAZ2wsx cluster_name=cluster datastore_regex=datastore1 wsdl_location=https://192.168.4.99/sdk/vimService.wsdl insecure=TrueCinder連接VC配置
# Storage backend default_volume_type = vmware enabled_backends = vmware # volume driver configuration [vmware] volume_driver=cinder.volume.drivers.vmware.vmdk.VMwareVcVmdkDriver vmware_host_ip=192.168.4.99 vmware_host_username=administrator@vsphere.local vmware_host_password=!QAZ2wsx vmware_wsdl_location=https://192.168.4.99/sdk/vimService.wsdl # vmware_cluster_name = cluster vmware_insecure = True vmware_volume_folder = VolumesGlance配置
-
glance-api配置
[glance_store] default_store=vsphere stores=vmware,http vmware_server_host=192.1681.4.99 vmware_server_username=administrator@vsphere.local vmware_server_password=!QAZ2wsx vmware_datastores = datacenter:datastore1 vmware_api_insecure = True vmware_task_poll_interval = 5 vmware_store_image_dir = /openstack_glance [paste_deploy] flavor=keystone config_file=/usr/share/glance/glance-api-dist-paste.ini
-
glance-registry配置
[paste_deploy] flavor=keystone config_file=/usr/share/glance/glance-registry-dist-paste.ini
[glance_store] default_store = vsphere stores = vmware,http vmware_server_host=192.168.4.99 vmware_server_username=administrator@vsphere.local vmware_server_password=!QAZ2wsx vmware_datacenter_path=datacenter vmware_datastore_name=datastore1
上傳鏡像到datestore
-
通過glance上傳鏡像,用head -n 20 *.vmdk查看那鏡像的格式,如果是從qcow2/raw轉成vmdk鏡像,用如下命令上傳鏡像到datastore
glance image-create --progress --name centos_vmdk --container-format bare --disk-format vmdk --property vmware_adaptertype=ide --property vmware_disktype=sparse < centos.vmdk
轉載于:https://my.oschina.net/xiaojiuge/blog/729772
總結
以上是生活随笔為你收集整理的OpenStack Liberty 连接vCenter的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: canvas 绘制跟随鼠标移动的线条
- 下一篇: Spring静态资源访问配置