这篇文章给大家分享的是有关OpenStack中Liberty如何连接vCenter的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。
OpenStack连接vCenter,通过其的API发送指令,datastore作为glance和cinder的存储后端,nova将其整个集群作为虚拟化后端,一个nova-compute只能连接一个vCenter,但是可以指定多个vCenter下的集群。
CentOS Linux release 7.2.1511
OpenStack Liberty
vCenter6.0.0
[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=True
# 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 = Volumes
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
通过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
感谢各位的阅读!关于“OpenStack中Liberty如何连接vCenter”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。