小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

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

 亭下走馬 2015-12-15

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

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

一、CloudStack介紹

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

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

     1、主機規(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、修改主機名
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     \\修改主機名
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
筆者虛擬機在這ping不通cloudstack.域名.  拿自己物理機ping cloudstack.域名, 將得出的ip地址寫入到linux的hosts文件里.
     6、安裝mysql并配置數(shù)據(jù)庫
         ①. 安裝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, 并加入開機自啟動
1
2
[root@cloudstack ~]# /etc/init.d/mysqld start
[root@cloudstack ~]# chkconfig mysqld on
         ④. 執(zhí)行mysql的安全配置, 并設(shè)置密碼等過程, 如需要簡單可直接全選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ù)庫
1
[root@cloudstack ~]# cloudstack-setup-databases cloud:cloud@localhost --deploy-as=root:123qwe
     7.、初始化CloudStack管理節(jié)點
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、啟動CloudStack-management
1
[root@cloudstack ~]# /etc/init.d/cloudstack-management start

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

     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、啟動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)虛擬機模板

說明: 系統(tǒng)虛擬機模板按要求要存放在輔助存儲上的,我們可以先手動掛載nfs輔助存儲, 然后把290M KVM虛擬化模板先下載到輔助存儲目錄下,然后在導(dǎo)入, 導(dǎo)入系統(tǒng)虛擬機模板步是必須要配置的內(nèi)容。本例采用KVM虛擬化,下載導(dǎo)入KVM虛擬機模板。
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:錯誤提示
Insufficient free disk space for local temporary folder /usr/share/cloudstack-common/scripts/storage/secondary: avail=4749888k req=5120000k   \\出現(xiàn)這種錯誤說明根分區(qū)(/)不夠用

五、訪問CloudStack

1 2

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

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多