In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "the process of building a Cloudstack environment". Friends who are interested may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the process of building a Cloudstack environment.
Introduction to cloudstack
CloudStack is a software platform that brings computing resources together to build public, private, and hybrid infrastructure-as-a-service (IaaS) clouds. CloudStack is responsible for managing the network, storage, and compute nodes that make up the cloud infrastructure. Use CloudStack to deploy, manage, and configure cloud computing environments.
The resource domain is the largest organizational unit in a CloudStack deployment. Although multiple resource domains are allowed in a data center, one resource domain usually corresponds to one data center. The advantage of grouping infrastructure into a resource domain is that it provides physical isolation and redundancy. For example, each resource domain can have its own power supply and network uplink scheme, and the resource domains can be geographically separated (although not necessarily far apart).
A supply point usually represents a rack. Hosts in the same provider are on the same subnet. The provisioning point is the second largest organizational unit in the CloudStack deployment. The provision point is contained in the resource domain. Each resource domain can contain one or more provision points; in a basic installation, your resource domain will contain only one provision point.
The cluster provides a way to group hosts. All hosts in the cluster have the same hardware, run the same hypervisor, reside on the same subnet, and access the same shared storage. Virtual machine instances (VM) can be migrated from one host to other hosts in the same cluster in real time without interrupting the provision of services to users. Clusters are the third largest organizational unit in CloudStack deployments. The cluster is contained in the provider point, and the provider point is contained in the resource domain.
A host is a computer. The host provides computing resources to run the guest virtual machine. Hypervisor software is installed on each host to manage guest VM (with the exception of bare metal hosts, this particular case is discussed in the Advanced installation Guide). For example, Linux servers, Citrix XenServer servers, and ESXi servers with KVM enabled can all be used as hosts. In the basic installation, we will use a host running XenServer. The host is the smallest organizational unit in a CloudStack deployment. The host is contained in the cluster, the cluster is contained in the provider point, and the provider point is contained in the resource domain.
Primary storage: the CloudStack cloud infrastructure uses two types of storage: primary storage and secondary storage. These two types of storage can be iSCSI or NFS servers or local disks. Primary storage is associated with the cluster and is used to store disk volumes for each guest VM for all VM running on the hosts in the cluster. The primary storage server is usually located close to the host
Environment
A basic CloudStack environment, including a CloudStack management side (cloudstack-management), a mysql database, several computing nodes (cloudstack-agent) supporting KVM virtualization, and a nfs server for secondary storage: in actual production, both the mysql database and the management side may be equipped with multiple high availability, and computing nodes are generally highly configured physical servers. This paper takes version 4.11.1.0 as an example. The type of hypervisor used is KVM, and the operating system is RedHat7/CentOS7. Two virtual machines are used to build our environment. The nfs,mysql and the management end are installed on the same virtual machine, and the cloudstack-agent is installed on a virtual machine with virtualization support enabled. The deployment architecture is as follows:
Install and configure local domain name resolution on the management side
Add the local IP and the corresponding hostname vim / etc/hosts 10.0.102.139 cloudstack to the end of the file / etc/hosts
Close selinux
Modify the configuration file / etc/selinux/config to change SELINUX=enforcing to SELINUX=disabled or SELINUX=permissive to execute the command: setenforce 0
Install the ntp service
Yum-y install ntp systemctl start ntpd systemctl enable ntpd
Install the Mysql database
Yum install mariadb* systemctl start mariadb.service systemctl enable mariadb.service
Mysql_secure_installation password: 123123
Enter mysql mysql-uroot-p123123 to create cloud user create user cloud@localhost identified by 'cloud'
Download the cloudstack installation package
Cloudstack installation package
Cloudstack-management-4.11.1.0-1.el7.centos.x86_64.rpm cloudstack-common-4.11.1.0-1.el7.centos.x86_64.rpm cloudstack-agent-4.11.1.0-1.el7.centos.x86_64.rpm
Install the management side:
Yum localinstall cloudstack-management-4.11.1.0-1.el7.centos.x86_64.rpm cloudstack-common-4.11.1.0-1.el7.centos.x86_64.rpm
Initialize the CloudStack database
Cloudstack-setup-databases cloud:cloud@localhost-deploy-as=root:123123
Parameter resolution: cloud:cloud@localhost: where cloud:cloud is the account and password created by cloudstack in the mysql database, and localhost is the address of the mysql database, because we installed it on this machine, so it is localhost, if the mysql database is on another machine Then change to the machine's IP or domain name-deploy-as=root:root: the value of this parameter root:root is the root username and password of the database. Executing this command will create a cloud user on the MySql database and use this user to create a cloud database. The following message indicates that the database for cluodstack was initialized successfully:
Initialize the cloudstack management server
Initialize and start the management server for cloudstack using the following command: cloudstack-setup-management
Log in to the browser
Open the browser and enter [host_ipaddress]: 8080/client in the address bar to see the UI interface of CloudStack: log in using the default account admin/password, and enter the boot interface when you log in for the first time:
At this point, I believe you have a deeper understanding of "the process of building the Cloudstack environment". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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: 280
*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.