Configure cloudstack yum source in centos7
The open-source cloudstack documentation provides instructions for configuring cloudstack yum on centos6. However, its centos7 cloudstack yum library does not have an rpm package for cloudstack and cannot be used.
According to the help documentation provided by shapeblue, the world's largest cloudstack cloud service provider
Http://www.shapeblue.com/packages/
You can see the configuration of cloudstack yum source in centos7
CentOS7 users can use the following repository:
[cloudstack-{{selectedMajorVersion}}]
name=cloudstack
baseurl={{rpm7Url}}
enabled=1
gpgcheck=1
Import our gpg release key: (Key ID 584DF93F, Key fingerprint = 7203 0CA1 18C1 A275 68B1 37C4 BDF0 E176 584D F93F)
wget http://packages.shapeblue.com/release.asc
sudo rpm --import release.asc
And your repository is ready for use. You may now install any of the available CloudStack packages, for example:
yum install cloudstack-management cloudstack-usage cloudstack-agent
The key here is to know{{selectedMajorVersion}}
And{{rpm7Url}}
Variable value
{{selectedMajorVersion}}
You can give a value by yourself. For example, if you install cloudstack4.5 on centos7, you can set it to 4.5.
{{rpm7Url}}
No value can be found on this webpage.
Searched
http://www.shapeblue.com/virtualbox-test-env/
Here is a description of configuring the cloudstack source.
CloudStack Repo
Setup the CloudStack repo by running the following command:
echo "[cloudstack]name=cloudstackbaseurl=http://packages.shapeblue.com/cloudstack/main/centos/4.4enabled=1gpgcheck=1" > /etc/yum.repos.d/cloudstack.repo
Import the ShapeBlue gpg release key: (Key ID 584DF93F, Key fingerprint = 7203 0CA1 18C1 A275 68B1 37C4 BDF0 E176 584D F93F)
yum install wget -ywget http://packages.shapeblue.com/release.ascsudo rpm --import release.asc
Very good. Given the baseurl value, reverse inference, open
http://packages.shapeblue.com/cloudstack/main/centos/4.4
It is the folder organization. Go to the cloudstack url under centos7.
Find
http://packages.shapeblue.com/cloudstack/main/centos7/4.5/
Therefore
{{rpm7Url}}
Ishttp://packages.shapeblue.com/cloudstack/main/centos7/4.5/
Edit/etc/yum. repos. d/cloudstack. repo
vim/etc/yum.repos.d/cloudstack.repo
Enter the following content
[cloudstack-4.5]
name=cloudstack
baseurl=http://packages.shapeblue.com/cloudstack/main/centos7/4.5/
enabled=1
gpgcheck=1
Save
Then
wget http://packages.shapeblue.com/release.asc
sudo rpm --import release.asc
Now, you can use yum to install cloudstack4.5.
yum install cloudstack-management cloudstack-usage cloudstack-agent