In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the steps of centos6.4 installing CloudStack 4.2". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
After installing the CentOS 6.4system, upgrade the system and modify the hostname, then restart:
The code is as follows:
# yum update
# echo "cloudstack.vpsee.com" > / etc/hostname
# vi / etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=cloudstack.vpsee.com
# echo "192.168.2.150 cloudstack cloudstack.vpsee.com" > > / etc/hosts
# reboot
Add the official source of the cloudstack package, and install ntp, cloudstack-management, mysql database servers:
# vi / etc/yum.repos.d/cloudstack.repo
[cloudstack]
Name=cloudstack
Baseurl= http://cloudstack.apt-get.eu/rhel/4.2/
Enabled=1
Gpgcheck=0
# yum update
# yum install ntp
# yum install cloudstack-management
# yum install mysql-server
Modify the mysql configuration file, add the following lines, start the ntp, mysql service, and run mysql_secure_installation to set the password for mysql:
The code is as follows:
# vi / etc/my.cnf
...
[mysqld]
...
Innodb_rollback_on_timeout=1
Innodb_lock_wait_timeout=600
Max_connections=350
Log-bin=mysql-bin
Binlog-format = 'ROW'
[mysqld_safe]
...
# service ntpd start
# chkconfig ntpd on
# service mysqld start
# chkconfig mysqld on
# mysql_secure_installation
Modify the SELINUX settings and configure the firewall to allow access to port 3306 of mysql:
The code is as follows:
# vi / etc/selinux/config
...
SELINUX=permissive
...
# setenforce permissive
# vi / etc/sysconfig/iptables
...
-An INPUT-p tcp-- dport 3306-j ACCEPT
...
# service iptables restart
Initialize the ClouStack database with cloudstack-setup-databases, and then run cloudstack-setup-management:
# cloudstack-setup-databases cloud:cloud@localhost-- deploy-as=root:root-I 192.168.2.150
# 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!
The control node should be separated from the storage. For convenience, we install NFS on this control node and mount our own NFS partition:
The code is as follows:
# yum install nfs-utils
# mkdir-p / export/primary
# mkdir-p / export/secondary
# vi / etc/exports
/ export * (rw,async,no_root_squash,no_subtree_check)
# exportfs-a
# vi / etc/sysconfig/nfs
...
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 nfs on
# chkconfig rpcbind on
# reboot
# mkdir-p / mnt/primary
# mkdir-p / mnt/secondary
# mount-t nfs 192.168.2.150:/export/primary / mnt/primary
# mount-t nfs 192.168.2.150:/export/secondary / mnt/secondary
Modify the firewall configuration to open some of the following ports:
The code is as follows:
# vi / etc/sysconfig/iptables
...
-An INPUT-s 192.168.2.0 ACCEPT 24-m state-- state NEW-p udp-- dport 111j ACCEPT
-An INPUT-s 192.168.2.0 ACCEPT 24-m state-- state NEW-p tcp-- dport 111j ACCEPT
-An INPUT-s 192.168.2.0 ACCEPT 24-m state-- state NEW-p tcp-- dport 2049-j ACCEPT
-An INPUT-s 192.168.2.0 ACCEPT 24-m state-- state NEW-p tcp-- dport 32803-j ACCEPT
-An INPUT-s 192.168.2.0 ACCEPT 24-m state-- state NEW-p udp-- dport 32769-j ACCEPT
-An INPUT-s 192.168.2.0 ACCEPT 24-m state-- state NEW-p tcp-- dport 892-j ACCEPT
-An INPUT-s 192.168.2.0 ACCEPT 24-m state-- state NEW-p udp-- dport 892-j ACCEPT
-An INPUT-s 192.168.2.0 ACCEPT 24-m state-- state NEW-p tcp-- dport 875-j ACCEPT
-An INPUT-s 192.168.2.0 ACCEPT 24-m state-- state NEW-p udp-- dport 875-j ACCEPT
-An INPUT-s 192.168.2.0 ACCEPT 24-m state-- state NEW-p tcp-- dport 662-j ACCEPT
-An INPUT-s 192.168.2.0 ACCEPT 24-m state-- state NEW-p udp-- dport 662-j ACCEPT
...
# service iptables restart
# service iptables save
To create a virtual machine, you need to have a template, which can be made by yourself or downloaded from the official one. It is important to note that / usr/lib64/cloud/common/ in the official document. The path is wrong, it should be / usr/share/cloudstack-common/... :
The code is as follows:
# / usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt-m / mnt/secondary-u http://d21ifhcun6b1t2.cloudfront.net/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2-h kvm-s-F
On the compute node
In order to maintain consistency, we also use CentOS 6. 4. 4 on computing nodes. The following installation and configuration are required on each compute node. Upgrade the system and modify hostname, restart:
The code is as follows:
# yum update
# echo "cloudstack01.vpsee.com" > / etc/hostname
# vi / etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=cloudstack01.vpsee.com
# echo "192.168.2.151 cloudstack01 cloudstack.vpsee.com" > > / etc/hosts
# reboot
Add the official source of the cloudstack package and install ntp, cloudstack-agent, and kvm:
# vi / etc/yum.repos.d/cloudstack.repo
[cloudstack]
Name=cloudstack
Baseurl= http://cloudstack.apt-get.eu/rhel/4.2/
Enabled=1
Gpgcheck=0
# yum update
# yum install ntp
# yum install cloudstack-agent
# yum install qemu-kvm
Modify the libvirt-related configuration file, remove the comments on the following lines, and change auth_tcp to "none". If you need vnc access, don't forget to cancel the vnc_listen-related comments in qemu.conf, and restart the libvirtd service to make the configuration effective:
The code is as follows:
# vi / etc/libvirt/libvirtd.conf
...
Listen_tls = 0
Listen_tcp = 1
Tcp_port = "16509"
Auth_tcp = "none"
Mdns_adv = 0
...
# vi / etc/sysconfig/libvirtd
...
LIBVIRTD_ARGS= "--listen"
...
# vi / etc/libvirt/qemu.conf
...
Vnc_listen = "0.0.0.0"
...
# service libvirtd restart
Don't forget to have the firewall open the necessary ports:
The code is as follows:
# iptables-I INPUT-p tcp-m tcp-- dport 22-j ACCEPT
# iptables-I INPUT-p tcp-m tcp-- dport 1798-j ACCEPT
# iptables-I INPUT-p tcp-m tcp-- dport 16509-j ACCEPT
# iptables-I INPUT-p tcp-m tcp-- dport 5900 tcp 6100-j ACCEPT
# iptables-I INPUT-p tcp-m tcp-- dport 49152 tcp 49216-j ACCEPT
# iptables-save > / etc/sysconfig/iptables
test
Open the browser and the access control node http://192.168.2.150:8080/client/ will see the login interface. The default user name and password is admin/password. After logging in, you can change the password and do some configuration.
This is the end of the "steps for centos6.4 to install CloudStack 4.2". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.