日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

1. CloudStack 4.4+KVM之管理服務(wù)器安裝 | 田埂上的夢(mèng)

 亭下走馬 2015-12-15

1. CloudStack 4.4+KVM之管理服務(wù)器安裝

發(fā)布時(shí)間:2015-12-15 00:31 90root [CloudStack] Go to comment

一、CloudStack介紹

     和 OpenStack, OpenNebula 類(lèi)似,CloudStack 是另一款開(kāi)源云計(jì)算平臺(tái)。CloudStack 的前身是 Cloud.com 家的一款商業(yè)云計(jì)算產(chǎn)品(也有開(kāi)源版本),2011年 Cloud.com 被 Citrix 收購(gòu),2012年的時(shí)候 Citrix 將收購(gòu)的云平臺(tái) CloudStack 全部捐給了 Apache 基金會(huì),自己則以 Citrix CloudPlatform (powered by Apache CloudStack) 的形式為客戶提供商業(yè)化的云計(jì)算解決方案。

二、CloudStack服務(wù)器網(wǎng)絡(luò)準(zhǔn)備

     1、主機(jī)規(guī)劃
1
2
3
4
nfs 192.168.15.10 
CloudStack 192.168.15.15
node1 192.168.15.13
node2 192.168.1.14
    2、修改主機(jī)名
1
2
3
4
[root@node5 ~]# vim /etc/hosts          \\新增以下內(nèi)容
192.168.15.15   cloudstack cloudstack.centos6.com
[root@node5 ~]# vim /etc/sysconfig/network     \\修改主機(jī)名
HOSTNAME=cloudstack.centos6.com
     3、關(guān)閉iptables、selinux
1
2
3
4
5
[root@node5 ~]# vim /etc/sysconfig/selinux
SELINUX=disabled
[root@node5 ~]# /etc/init.d/iptables stop
[root@node5 ~]# chkconfig iptables off
[root@node5 ~]# reboot
     4、添加cloudstack軟件包的官方源
1
2
3
4
[root@node5 ~]# cd /etc/yum.repos.d/
[root@node5 yum.repos.d]# cp epel-6.repo epel-6.repo.20151214
[root@node5 yum.repos.d]# vim epel-6.repo
baseurl=http://cloudstack./rhel/4.4/
     5、安裝Management Server
1
2
[root@cloudstack yum.repos.d]# yum -y install cloudstack-management
筆者虛擬機(jī)在這ping不通cloudstack.域名.  拿自己物理機(jī)ping cloudstack.域名, 將得出的ip地址寫(xiě)入到linux的hosts文件里.
     6、安裝mysql并配置數(shù)據(jù)庫(kù)
         ①. 安裝mysql-server
1
[root@cloudstack yum.repos.d]# yum -y install mysql-server
         ②. 修改mysql配置并加入以下幾行
1
2
3
4
5
6
7
[root@cloudstack ~]# vim /etc/my.cnf
[mysqld]
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = 'ROW'
         ③. 重啟mysql, 并加入開(kāi)機(jī)自啟動(dòng)
1
2
[root@cloudstack ~]# /etc/init.d/mysqld start
[root@cloudstack ~]# chkconfig mysqld on
         ④. 執(zhí)行mysql的安全配置, 并設(shè)置密碼等過(guò)程, 如需要簡(jiǎn)單可直接全選Y
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[root@cloudstack ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
Set root password? [Y/n] y
New password: 123qwe
Re-enter new password: 123qwe
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] n
... skipping.
By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MySQL
installation should now be secure.
Thanks for using MySQL!
         ⑤. 安裝CloudStack數(shù)據(jù)庫(kù)
1
[root@cloudstack ~]# cloudstack-setup-databases cloud:cloud@localhost --deploy-as=root:123qwe
     7.、初始化CloudStack管理節(jié)點(diǎn)
1
2
3
4
5
6
[root@cloudstack ~]# cloudstack-setup-management
Starting to configure CloudStack Management Server:
Configure sudoers ...         [OK]
Configure Firewall ...        [OK]
Configure CloudStack Management Server ...[OK]
CloudStack Management Server setup is Done!
     8、啟動(dòng)CloudStack-management
1
[root@cloudstack ~]# /etc/init.d/cloudstack-management start

三、配置NFS存儲(chǔ), 該內(nèi)容可以獨(dú)立配置。

     1、安裝服務(wù)端所需軟件
1
[root@nfs-server ~]# yum -y install nfs-utils protmap
     2、配置共享目錄
1
2
[root@nfs-server ~]# vim /etc/exports
/nfs *(rw,fsid=1,async,no_root_squash,no_subtree_check)
     3、啟動(dòng)nfs服務(wù)
1
2
[root@nfs-server ~]# /etc/init.d/nfslock start
[root@nfs-server ~]# /etc/init.d/nfs start
     4、配置Cloudstack nfs客戶端
1
2
3
[root@cloudstack ~]#  yum -y install nfs-utils protmap
[root@cloudstack ~]#  mkdir /nfs
[root@cloudstack ~]#  mount -t nfs 192.168.15.10:/nfs /nfs/

四、導(dǎo)入系統(tǒng)虛擬機(jī)模板

說(shuō)明: 系統(tǒng)虛擬機(jī)模板按要求要存放在輔助存儲(chǔ)上的,我們可以先手動(dòng)掛載nfs輔助存儲(chǔ), 然后把290M KVM虛擬化模板先下載到輔助存儲(chǔ)目錄下,然后在導(dǎo)入, 導(dǎo)入系統(tǒng)虛擬機(jī)模板步是必須要配置的內(nèi)容。本例采用KVM虛擬化,下載導(dǎo)入KVM虛擬機(jī)模板。
1
2
3
4
5
6
7
8
[root@cloudstack ~]# cd /nfs/
[root@cloudstack nfs]# wget http://cloudstack./systemvm/4.4/systemvm64template-4.4.0-6-kvm.qcow2.bz2
[root@cloudstack nfs]# /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /nfs -f systemvm64template-4.4.0-6-kvm.qcow2.bz2 -h kvm -F
Uncompressing to /usr/share/cloudstack-common/scripts/storage/secondary/36245427-d76a-4b2a-b2e9-8552ccdd5f93.qcow2.tmp (type bz2)...could take a long time
Moving to /nfs/template/tmpl/1/3///36245427-d76a-4b2a-b2e9-8552ccdd5f93.qcow2...could take a while
Successfully installed system VM template systemvm64template-4.4.0-6-kvm.qcow2.bz2 to /nfs/template/tmpl/1/3/
ps:錯(cuò)誤提示
Insufficient free disk space for local temporary folder /usr/share/cloudstack-common/scripts/storage/secondary: avail=4749888k req=5120000k   \\出現(xiàn)這種錯(cuò)誤說(shuō)明根分區(qū)(/)不夠用

五、訪問(wèn)CloudStack

1 2

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類(lèi)似文章 更多