您好,登錄后才能下訂單哦!
這篇文章給大家分享的是有關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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。