亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
12345下一頁
最近訪問板塊 發(fā)新帖
查看: 95201 | 回復(fù): 45
打印 上一主題 下一主題

[OpenStack] 圖解openstack [復(fù)制鏈接]

論壇徽章:
26
CU十二周年紀(jì)念徽章
日期:2013-10-24 15:41:34技術(shù)圖書徽章
日期:2014-07-11 16:27:52辰龍
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55雙子座
日期:2014-09-26 11:00:042014年中國(guó)系統(tǒng)架構(gòu)師大會(huì)
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辭舊歲徽章
日期:2015-03-03 16:54:15NBA常規(guī)賽紀(jì)念章
日期:2015-05-04 22:32:03IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-01-29 06:20:00
1 [報(bào)告]
發(fā)表于 2014-08-15 15:01 |只看該作者
本帖最后由 cryboy2001 于 2014-08-15 15:50 編輯

四、openstak使用
密碼在/root/下
-rw------- 1 root root 183 Aug 12 17:12 keystonerc_admin
-rw------- 1 root root 180 Aug 12 17:12 keystonerc_demo
這兩個(gè)文件中,自帶的2個(gè)用戶admin與demo。



項(xiàng)目與管理員及下面的目錄



1、在dashboard中,管理員下修改網(wǎng)絡(luò)功能、加鏡像、改云主機(jī)類型,云硬盤。然后要部署應(yīng)用在項(xiàng)目中進(jìn)行。

加外網(wǎng)(浮動(dòng)ip段)




上傳鏡像

云硬盤


下面生成一臺(tái)虛擬實(shí)例,能夠上網(wǎng),能通過外面的電腦ssh進(jìn)入
進(jìn)入項(xiàng)目----網(wǎng)絡(luò) 添加私有網(wǎng)絡(luò)



加路由加接口


得到的網(wǎng)絡(luò)拓?fù)?br />

加安全規(guī)責(zé)


創(chuàng)建云主機(jī)



瀏覽器直接用的novnc  自動(dòng)得到的IP與ping openstack服務(wù)器 外網(wǎng)的一臺(tái)主機(jī),表明完全通了



外網(wǎng)ssh進(jìn)入虛擬主機(jī)



掛載云硬盤


在云主機(jī)中掛載操作


論壇徽章:
7
天蝎座
日期:2013-08-16 23:19:32丑牛
日期:2014-01-08 09:20:14寅虎
日期:2014-01-11 11:03:44午馬
日期:2014-04-28 11:02:40天秤座
日期:2014-05-16 23:24:24摩羯座
日期:2014-07-20 10:46:04卯兔
日期:2014-08-08 15:21:41
2 [報(bào)告]
發(fā)表于 2014-08-15 22:19 |只看該作者
不錯(cuò)不錯(cuò),希望版主繼續(xù)更新。

論壇徽章:
7
天蝎座
日期:2013-08-16 23:19:32丑牛
日期:2014-01-08 09:20:14寅虎
日期:2014-01-11 11:03:44午馬
日期:2014-04-28 11:02:40天秤座
日期:2014-05-16 23:24:24摩羯座
日期:2014-07-20 10:46:04卯兔
日期:2014-08-08 15:21:41
3 [報(bào)告]
發(fā)表于 2014-08-15 22:20 |只看該作者
問一下版主,vmware vcloud suite和openstack有什么區(qū)別嗎

論壇徽章:
26
CU十二周年紀(jì)念徽章
日期:2013-10-24 15:41:34技術(shù)圖書徽章
日期:2014-07-11 16:27:52辰龍
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55雙子座
日期:2014-09-26 11:00:042014年中國(guó)系統(tǒng)架構(gòu)師大會(huì)
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辭舊歲徽章
日期:2015-03-03 16:54:15NBA常規(guī)賽紀(jì)念章
日期:2015-05-04 22:32:03IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-01-29 06:20:00
4 [報(bào)告]
發(fā)表于 2014-08-16 08:42 |只看該作者
www_xylove 發(fā)表于 2014-08-15 22:20
問一下版主,vmware vcloud suite和openstack有什么區(qū)別嗎


vmware vcloud suite和openstack是同一類產(chǎn)品,都是建立云的系統(tǒng),但vmware vcloud suite是商業(yè)產(chǎn)品,而openstack是開源產(chǎn)品,就與ms windows與linux的區(qū)別是一樣的,有非常多的其它公司的云操作系統(tǒng)也建立在openstack之上的如:HP Helion,華為的FusionCloud。

有人說openstack就是下一個(gè)linux,將成為未來開源的代表。

論壇徽章:
26
CU十二周年紀(jì)念徽章
日期:2013-10-24 15:41:34技術(shù)圖書徽章
日期:2014-07-11 16:27:52辰龍
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55雙子座
日期:2014-09-26 11:00:042014年中國(guó)系統(tǒng)架構(gòu)師大會(huì)
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辭舊歲徽章
日期:2015-03-03 16:54:15NBA常規(guī)賽紀(jì)念章
日期:2015-05-04 22:32:03IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-01-29 06:20:00
5 [報(bào)告]
發(fā)表于 2014-08-16 11:08 |只看該作者
本帖最后由 cryboy2001 于 2014-08-16 11:11 編輯

用linux總是離不開用命令行操作

加鏡像

glance add name="<Image name>" is_public=true container_format=ovf disk_format=qcow2 < <filename>.img
nova image-list  查看
查看虛擬機(jī)類型
nova flavor-list
查看可用網(wǎng)絡(luò)
nova network-list


生成一個(gè)實(shí)例要用到以上的鏡像、虛擬機(jī)類型、和可用網(wǎng)絡(luò)

nova boot --flavor 1 --image cirros --nic net-id=037c1fa2-3f35-4cab-a229-c236380f4a7b  cmdtest

為虛擬機(jī)加浮動(dòng)ip

nova add-floating-ip cmdtest 192.168.10.24

查看生成的虛擬機(jī)

nova show cmdtest





利用浮動(dòng)ip,從公網(wǎng)ssh進(jìn)入



加一10G云盤

nova volume-create --display_name vdisk10 10

nova volume-list

nova volume-attach cmdtest vdisk10 /dev/vdb

可看到已加成功,可分區(qū)掛載使用了



附其它命令

nova     
     absolute-limits     Print a list of absolute limits for a user
     actions             Retrieve server actions.
     add-fixed-ip        Add new IP address to network.
     add-floating-ip     Add a floating IP address to a server.
     add-secgroup        Add a Security Group to a server.
     aggregate-add-host  Add the host to the specified aggregate.
     aggregate-create    Create a new aggregate with the specified details.
     aggregate-delete    Delete the aggregate by its id.
     aggregate-details   Show details of the specified aggregate.
     aggregate-list      Print a list of all aggregates.
     aggregate-remove-host    Remove the specified host from the specified  aggregate.
     aggregate-set-metadata Update the metadata associated with the aggregate.
     aggregate-update    Update the aggregate's name and optionally  availability zone.
     boot                Boot a new server.
     cloudpipe-create    Create a cloudpipe instance for the given project
     cloudpipe-list      Print a list of all cloudpipe instances.
     cloudpipe-update Update a cloudpipe instance
     console-log         Get console log output of a server.
     credentials         Show user credentials returned from auth
     delete              Immediately shut down and delete a server.
     diagnostics         Retrieve server diagnostics.
     dns-create          Create a DNS entry for domain, name and ip.
     dns-create-private-domain  Create the specified DNS domain.
     dns-create-public-domain  Create the specified DNS domain.
     dns-delete          Delete the specified DNS entry.
     dns-delete-domain   Delete the specified DNS domain.
     dns-domains         Print a list of available dns domains.
     dns-list            List current DNS entries for domain and ip or domain and name.
     endpoints           Discover endpoints that get returned from the  authenticate services
     fixed-ip-get        Show information for a fixed IP
     fixed-ip-reserve    Reserve a fixed IP
     fixed-ip-unreserve  Unreserve fixed IP
     flavor-create       Create a new flavor
     flavor-delete       Delete a specific flavor
     flavor-key          Set or unset extra_spec for a flavor.
     flavor-list         Print a list of available 'flavors' (sizes of servers).
     flavor-show         Show details about the given flavor.
     floating-ip-create  Allocate a floating IP for the current tenant.
     floating-ip-delete  De-allocate a floating IP.
     floating-ip-list    List floating ips for this tenant.
     floating-ip-pool-list List all floating ip pools.
     get-vnc-console     Get a vnc console to a server.
     host-action         Perform a power action on a host.
     host-describe       Describe a specific host
     host-list           List all hosts by service
     host-update         Update host settings.
     hypervisor-list     List hypervisors.
     hypervisor-servers  List instances belonging to specific hypervisors.
     hypervisor-show     Display the details of the specified hypervisor.
     hypervisor-stats    Get hypervisor statistics over all compute nodes.[cpu,mem]
     hypervisor-uptime   Display the uptime of the specified hypervisor.
     image-create        Create a new image by taking a snapshot of a running server.
     image-delete        Delete an image.
     image-list          Print a list of available images to boot from.
     image-meta          Set or Delete metadata on an image.
     image-show          Show details about the given image.
     keypair-add         Create a new key pair for use with instances
     keypair-delete      Delete keypair by its id
     keypair-list        Print a list of keypairs for a user
     list                List active servers.
     list-extensions List available extensions
     live-migration      Migrates a running instance to a new machine.
     lock                Lock a server.
     meta                Set or Delete metadata on a server.
     migrate             Migrate a server.
     network-list        Print a list of available networks.
     network-show        Show details about the given network.
     pause               Pause a server.
     quota-class-show    List the quotas for a quota class.
     quota-class-update  Update the quotas for a quota class.
     quota-defaults      List the default quotas for a tenant.
     quota-show          List the quotas for a tenant.
     quota-update        Update the quotas for a tenant.
     rate-limits         Print a list of rate limits for a user
     reboot              Reboot a server.
     rebuild             Shutdown, re-image, and re-boot a server.
     remove-fixed-ip     Remove an IP address from a server.
     remove-floating-ip  Remove a floating IP address from a server.
     remove-secgroup     Remove a Security Group from a server.
     rename              Rename a server.
     rescue              Rescue a server.
     reset-state         Reset the state of an instance
     resize              Resize a server.
     resize-confirm      Confirm a previous resize.
     resize-revert       Revert a previous resize (and return to the previous VM).
     resume              Resume a server.
     root-password       Change the root password for a server.
     secgroup-add-group-rule
     Add a source group rule to a security group.
     secgroup-add-rule   Add a rule to a security group.
     secgroup-create     Create a security group.
     secgroup-delete     Delete a security group.
     secgroup-delete-group-rule
     Delete a source group rule from a security group.
     secgroup-delete-rule
     Delete a rule from a security group.
     secgroup-list       List security groups for the current tenant.
     secgroup-list-rules
     List rules for a security group.
     service-list        List nova services
     show                Show details about the given server.
     ssh                 SSH into a server.
     start               Start a server.
     stop                Stop a server.
     suspend             Suspend a server.
     unlock              Unlock a server.
     unpause             Unpause a server.
     unrescue            Unrescue a server.
     usage-list          List usage data for all tenants
     volume-attach       Attach a volume to a server.
     volume-create       Add a new volume.
     volume-delete       Remove a volume.
     volume-detach       Detach a volume from a server.
     volume-list         List all the volumes.
     volume-show         Show details about a volume.
     volume-snapshot-create      Add a new snapshot.
     volume-snapshot-delete      Remove a snapshot.
     volume-snapshot-list      List all the snapshots.
     volume-snapshot-show       Show details about a snapshot.
     volume-type-create  Create a new volume type.
     volume-type-delete  Delete a specific flavor.
     volume-type-list    Print a list of available 'volume types'.
     x509-create-cert    Create x509 cert for a user in tenant.
     x509-get-root-cert  Fetches the x509 root cert.

論壇徽章:
7
天蝎座
日期:2013-08-16 23:19:32丑牛
日期:2014-01-08 09:20:14寅虎
日期:2014-01-11 11:03:44午馬
日期:2014-04-28 11:02:40天秤座
日期:2014-05-16 23:24:24摩羯座
日期:2014-07-20 10:46:04卯兔
日期:2014-08-08 15:21:41
6 [報(bào)告]
發(fā)表于 2014-08-16 18:57 |只看該作者
感覺openstack非常復(fù)雜,vmware vcloud也很復(fù)雜。
期待版主持續(xù)更新openstack,可以寫一個(gè)openstack的系列,從最簡(jiǎn)單的介紹,再慢慢深入。

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2014-08-18 08:43 |只看該作者
如果只有一種hypervisor,感覺沒必要用openstack

論壇徽章:
26
CU十二周年紀(jì)念徽章
日期:2013-10-24 15:41:34技術(shù)圖書徽章
日期:2014-07-11 16:27:52辰龍
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55雙子座
日期:2014-09-26 11:00:042014年中國(guó)系統(tǒng)架構(gòu)師大會(huì)
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辭舊歲徽章
日期:2015-03-03 16:54:15NBA常規(guī)賽紀(jì)念章
日期:2015-05-04 22:32:03IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-01-29 06:20:00
8 [報(bào)告]
發(fā)表于 2014-08-18 10:08 |只看該作者
zzpiggy 發(fā)表于 2014-08-18 08:43
如果只有一種hypervisor,感覺沒必要用openstack


以現(xiàn)在來說,一個(gè)信息中心用一種hypervisor機(jī)率的很大,以后可能會(huì)有改變。

openstack包含的東西太多了,包含交互界面,權(quán)限管理,虛擬化服務(wù)器(hypervisor)、網(wǎng)絡(luò)(含虛擬與實(shí)體,更象是sdn)、存儲(chǔ)(塊、對(duì)象、文件)、安全(防火墻等)。更關(guān)鍵的是它可以很方便的出售服務(wù),還有openstack是開放性的,以后有新的功能,都能通過api集成進(jìn)去。

如果,只是幾臺(tái)服務(wù)器,十幾臺(tái)虛擬機(jī)則根本不用考慮openstack或vm vsphere等,直接用hypervisor就可以了。openstack號(hào)稱百萬服務(wù)器千萬虛擬機(jī)級(jí)別的信息中心,前幾年國(guó)內(nèi)大公司已達(dá)到2000臺(tái)服務(wù)器的集成。

論壇徽章:
26
CU十二周年紀(jì)念徽章
日期:2013-10-24 15:41:34技術(shù)圖書徽章
日期:2014-07-11 16:27:52辰龍
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55雙子座
日期:2014-09-26 11:00:042014年中國(guó)系統(tǒng)架構(gòu)師大會(huì)
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辭舊歲徽章
日期:2015-03-03 16:54:15NBA常規(guī)賽紀(jì)念章
日期:2015-05-04 22:32:03IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-01-29 06:20:00
9 [報(bào)告]
發(fā)表于 2014-08-20 14:26 |只看該作者
本帖最后由 cryboy2001 于 2014-08-20 14:29 編輯

管理openstack

1、服務(wù)
在控制臺(tái)系統(tǒng)信息中也能看到

OpenStack中Nova相關(guān)的服務(wù)
nova-compute:運(yùn)行虛擬機(jī)實(shí)例最主要的服務(wù)。
nova-scheduler:管理調(diào)度服務(wù)器滿足對(duì)運(yùn)行虛擬機(jī)的請(qǐng)求。
nova-api:處理對(duì)OpenStack的請(qǐng)求,并運(yùn)行相應(yīng)的服務(wù)。
neutron:控制DHCP、DNS、路由的網(wǎng)絡(luò)服務(wù)。
nova-objectstore:文件存儲(chǔ)服務(wù)。
nova-common:OpenStack環(huán)境的基礎(chǔ)Python庫(kù)。
nova-cert:Nova證書管理服務(wù),用來為Nova提供身份驗(yàn)證。
glance:鏡像注冊(cè)與傳輸服務(wù)。
rabbitmq-server:消息隊(duì)列服務(wù)。
mysql-server:保存所有OpenStack服務(wù)數(shù)據(jù)的數(shù)據(jù)庫(kù)服務(wù),例如可用的計(jì)算節(jié)點(diǎn)、實(shí)例狀態(tài)等。
ntp:網(wǎng)絡(luò)時(shí)間協(xié)議,它在多節(jié)點(diǎn)的環(huán)境中十分重要,可以讓計(jì)算節(jié)點(diǎn)保持相同的時(shí)鐘。
dnsmasq:前向DNS和DHCP服務(wù),用來為實(shí)例分配地址。




2、日志
與openstack相關(guān)的日志都在
#ll  /var/log
drwxr-x--- 2 rabbitmq rabbitmq 4096 Aug 17 03:47 rabbitmq
drwxr-xr-x 2 root root 4096 Aug 17 03:47 openvswitch
drwxr-x--- 2 nova nova 4096 Aug 17 03:47 nova
drwxr-xr-x 2 neutron neutron 4096 Aug 17 03:47 neutron
drwxr-x--- 2 keystone keystone 4096 Aug 17 03:47 keystone
drwxr-xr-x 2 glance nobody 4096 Aug 17 03:47 glance
drwxr-x--- 2 cinder root 4096 Aug 17 03:47 cinder
drwxr-xr-x 2 ceilometer root 4096 Aug 17 03:47 ceilometer
drwxr-xr-x 2 mongodb root 4096 Aug 17 03:47 mongodb
drwx------ 5 root root 4096 Aug 14 10:20 libvirt

要查看一個(gè)實(shí)例日志


3、監(jiān)控與nagios
管理員---資源使用情況    中有服務(wù)器的監(jiān)控



系統(tǒng)也已安裝好了nagios
http://192.168.0.218/nagios/
密碼在下面的位置
# cat /etc/nagios/passwd
nagiosadmin:eYuEUytV/nRpI
nagios相關(guān)配置文件在,可以修改參數(shù)已達(dá)到資源使用到一定成度時(shí)或服務(wù)停止運(yùn)行時(shí)報(bào)警。
#ll /etc/nagios
total 96
-rw-rw-r-- 1 root root 11658 Aug 31 2013 cgi.cfg
drwxr-x--- 2 root nagios 4096 Aug 31 2013 conf.d
-rw------- 1 nagios root 141 Aug 14 10:30 keystonerc_admin
-rw-rw-r-- 1 root root 44650 Aug 14 10:30 nagios.cfg
-rw-r--r-- 1 nagios nagios 1016 Aug 14 10:30 nagios_command.cfg
-rw-r--r-- 1 nagios nagios 331 Aug 14 10:30 nagios_host.cfg
-rw-r--r-- 1 nagios nagios 1295 Aug 14 10:30 nagios_service.cfg
-rw-r--r-- 1 nagios nagios 8077 Aug 14 10:30 nrpe.cfg
drwxr-x--- 2 root nagios 4096 Aug 14 10:30 objects
-rw-r----- 1 root apache 27 Aug 14 10:30 passwd
drwxr-x--- 2 root nagios 4096 Aug 14 10:30 private


nogias界面



nogias監(jiān)控內(nèi)容

在命令行方式下也可以看到使用情況:



在數(shù)據(jù)庫(kù)中也能找到



論壇徽章:
3
白羊座
日期:2014-08-25 15:04:112014年中國(guó)系統(tǒng)架構(gòu)師大會(huì)
日期:2014-10-14 15:59:002015元宵節(jié)徽章
日期:2015-03-06 15:52:30
10 [報(bào)告]
發(fā)表于 2014-08-25 09:24 |只看該作者
你安裝過程中有那么多的錯(cuò)誤,是如何處理的,怎樣完成安裝啊。
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP