In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Cloudstack4.6 + xenserver architecture cloud environment deployment
1. A simple cloudstack-like architecture is provided as follows (for simple reference only):
Second, install cloudstack4.6+xenserver6.5
System environment: centos6.5_64
1. Modify the corresponding static ip address of each host
two。 Modify hostname
Vi / etc/sysconfig/network
3. Add dns record
Vi / etc/hosts
192.168.5.8cs01.esc.com
192.168.5.1xen01.esc.com
192.168.5.2xen02.esc.com
192.168.5.3xen03.esc.com
192.168.5.7nfs.esc.com
192.168.5.5nfs01.esc.com
192.168.5.6nfs02.esc.com
Service network restart
4. Close selinux
Temporarily shut down setenforce 0
Always allow vi / etc/sysconfig/selinux to modify SELINUX=permissive without rebooting the system
Sestatus View selinux status
Permanent shutdown: modification of the SELINUX=disabled system requires a restart to take effect
5. Turn off the firewall
Service iptables stop
Chkconfig iptables off
6. Set up a local yum source
Mount the CD
Mount-t nfs 192.168.5.6:/nfs / media/
Mkdir / mnt/cdrom
Mkdir / mnt/cloudstack
Mount-o loop / media/CentOS-6.5-x86_64-bin-DVD1.iso / mnt/cdrom/
Mount-o loop cloudstack4.6.iso / mnt/cloudstack/
Set up the yum file
Cd / etc/yum.repos.d
Mkdir bak
Mv Cen* bak
Cp bak/CentOS-Media.repo.
The modification of vi CentOS-Media.repo is as follows:
[c6-media]
Name=CentOS-$releasever-Media
Baseurl= file:///mnt/cdrom
Gpgcheck=0
Enabled=1
Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
[cloudstack]
Name=cloudstack4.6
Baseurl= file:///mnt/cloudstack
Enabled=1
Gpgcheck=0
Yum clean all
Yum repolist
Yum update
7. Install ntp
Yum-y install ntp
Chkconfig ntpd on
Service ntpd start
8. Install nfs
Yum-y install nfs-utils
Vi / etc/exports configuration shared directory
/ secondary * (rw,async,no_root_squash,no_subtree_check)
/ primary * (rw,async,no_root_squash,no_subtree_check)
Mkdir / primary
Mkdir / secondary
The default use of NFSv4,NFSv4 in version 6.x of CentOS requires that the domain settings of all clients match. Here, take setting esc.com as an example, please ensure the domain settings in the file / etc/idmapd.conf and set the domain name.
Vi / etc/idmapd.conf
Uncomment the following options in the / etc/sysconfig/nfs file:
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
RQUOTAD_PORT=875
STATD_PORT=662
STATD_OUTGOING_PORT=2020
Service rpcbind start
Service nfs start
Chkconfig rpcbind on
Chkconfig nfs on
9. Install the database
Yum-y install mysql-server
Find /-name my-medium.cnf
Cp / usr/share/doc/mysql-server-5.1.71/my-medium.cnf / etc/my.cnf
Vi / etc/my.cnf adds the following:
Innodb_rollback_on_timeout=1
Innodb_lock_wait_timeout=600
Max_connections=350
Log-bin=mysql-bin
Binlog-format = 'ROW'
Configure the database character encoding as utf-8
Service mysqld start
Chkconfig mysqld on
Security initialization of mysql
Mysql_secure_installation
The first step is to enter directly. There is no password by default.
The second step is to select Y and set the root login password
The third step is to select Y to delete anonymous users
The fourth step is to select Y to prohibit root remote login.
Step 5: select Y to delete the test database.
Step 6: select Y and now reload the privilege table
10. Install cloudstack
Yum-y install cloudstack-management
Some networks are installed directly without restrictions, while others report errors when they are limited.
If you cannot connect to http://cloudstack.apt-get.eu/systemvm/4.6/, even if the local cloudstack source is configured, it will automatically go to the official website to download three cloudstack files: if it cannot be downloaded, or if the download is very slow, you can download it from the official website in other ways and install it manually.
Cloudstack-common-4.6.0-1.el6.x86_64.rpm
Cloudstack-management-4.6.0-1.el6.x86_64.rpm
Cloudstack-cli-4.6.0-1.el6.x86_64.rpm
Downloading like this is sometimes very slow. The solution to the installation is as follows:
Go to the rpm package directory of cloudstack and install one by one
Cd / mnt/cloudstack/
Rpm-ivh cloudstack-common-4.6.0-1.el6.x86_64.rpm
Yum-y install MySQL-python ipmitool mkisofs mysql-connector-java tomcat6 ws-commons-util
Rpm-ivh cloudstack-management-4.6.0-1.el6.x86_64.rpm
Some of the following packages need to be downloaded online, so the following steps are to configure yum's original online yum source
Cp / etc/yum.repos.d/bak/CentOS-Base.repo / etc/yum.repos.d/
Rpm-ivh cloudstack-agent-4.6.0-1.el6.x86_64.rpm
Yum-y install dhcp httpd syslinux tftp-server xinetd
Rpm-ivh cloudstack-baremetal-agent-4.6.0-1.el6.x86_64.rpm
Rpm-ivh cloudstack-cli-4.6.0-1.el6.x86_64.rpm
Rpm-ivh cloudstack-management-4.6.0-1.el6.x86_64.rpm
Rpm-ivh cloudstack-mysql-ha-4.6.0-1.el6.x86_64.rpm
Rpm-ivh cloudstack-usage-4.6.0-1.el6.x86_64.rpm
After the above steps are completed:
Will be prompted to download vhd-util and upload it to the cloudstack directory
Note to modify the file permissions: chmod 0755 vhd-util:
The tips are as follows:
Please download vhd-util
From http://download.cloud.com.s3.amazonaws.com/tools/vhd-util and put it in
/ usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/
Just download it first, and the copy will be carried out later.
Initialize the cloudstack database
Cloudstack-setup-databases cloud:esc20150209@localhost-deploy-as=root:esc20150209
Cloud represents the user name that logs in to the cloudstack database, and esc20150209 is the password
Root is the user name of the login mysql this time, and esc20150209 is the login mysql password, which is the new password that was set when the mysql security was initialized.
When the process is over, you should see a similar message: "CloudStack has successfully initialized the database."
CloudStack has successfully initialized database, you can check your database configuration in / etc/cloudstack/management/db.properties
Configure and manage the cloudstack server:
Cloudstack-setup-management
11. Upload system template:
Mount-t nfs 192.168.5.6:/home/nfs / secondary/
/ usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt-m / secondary-u http://192.168.5.6/systemvm64template-4.5-xen.vhd.bz2-h xenserver-F
Will prompt:
Note finally: the installation is complete.
Umount / secondary/
twelve。 Access the user interface: http://192.168.5.8:8080/client/
Default account password: admin/password
13. Copy vhd-util to the / opt/xensource/bin/ directory of all xenserver servers
(the author downloads all the required files in advance and then mounts them to the / media directory.)
Cp / media/vhd-util / opt/xensource/bin/
14. Copy the vhd-util to the cloudstack server
Cp / media/vhd-util / usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/
15.xenserver joins the pool
16.xenserver changes the network card to bridge mode
Xe-switch-network-backend bridge
Need to restart the xenserver system to take effect!
17. Then the browser visits: http://192.168.5.8:8080/client/
Log in, and then determine whether it is the basic mode or the advanced mode according to the actual needs.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.