Enterprise-level private cloud platform-JimV deployment (1)

Hi, everyone, my name is wangkx. At the beginning of May 2020, I accidentally saw a private cloud system based on the kvm technology base on the Internet. I fully experienced the entire deployment and application environment, and the entire system is also applied. Quite smooth and silky, and easy to maintain, it is the true love of operation and maintenance personnel, and at the same time, for the profound skill of the author and the sense of accomplishment and joy that can be developed, operation and maintenance development is probably every one of our operation and maintenance personnel. ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? The kind of realm that you all look forward to.

1 Introduction to JimV

JimV combines the simplicity of VMware, the operating experience of Alibaba Cloud, and the open source and free of Openstack, a product that brings together various advantages. More suitable for small and medium-sized enterprises, the private cloud solution can be implemented efficiently!

1.1 Advantages of JimV

  • Deployment and installation are as simple as VMware ESXi;
  • Open source, free;
  • In terms of operating experience, refer to the existing public cloud;
  • Create a very fast virtual machine, including a series of automatic configuration such as automatic configuration of IP, host name, etc.;
  • Because the structure is simple, the maintenance threshold is very low, so it is easy to use, easy to recruit maintenance personnel, and the maintenance cost is low.

1.2 Demand scenario

  • Create virtual machine instances in batches in seconds. Eliminate the lengthy process of installing an operating system for the virtual machine;
  • Do not want to use the commercial version of virtualization management software;
  • It is hoped that the threshold for deployment, maintenance, and management of the private cloud platform is low, and the system architecture is clear and simple. Openstack-like open source private
    cloud platforms, for small and medium-sized enterprises and entrepreneurial teams, the threshold is too high;
  • I hope to put the management platform of the public cloud in my local computer room;
  • I hope to create a template image from a virtual machine snapshot.

1.3 Related addresses

官网:http://www.jimv.cn/
参考官方文档:http://www.jimv.cn/docs.html

2 deployment

2.1 Environmental preparation

  • Hardware conditions: ensure that the physical server can access the Internet
    curl ­o /etc/yum.repos.d/CentOS­Base.repo http://mirrors.aliyun.com/repo/Centos­ 7.repo
  • Operating system: CentOS 7.4+
  • Install the system basic software package:
     yum install gcc glibc make net­tools vim lrzsz curl wget libvirt

2.2 Single machine deployment

Bare metal installation

1) Automatically install JimV online via iPXE

The system default password is pswd.jimv.cn.

[Physical machine] or [VMWare virtual machine] Use the following address for installation:

http://repo.jimv.cn/install.ipxe

[KVM] The following address is used for virtual machine installation:

http://repo.jimv.cn/install-by-kvm.ipxe
2) VMWare installation demo

Because VMWare does not support iPXE by default, you need to download the ipxe.iso image to achieve the goal. After downloading the ipxe.iso file, you can use this image to install.
Insert picture description here
Insert picture description here

3) KVM installation demo

Insert picture description here

4) Stand-alone deployment
bash -c "$(curl -fsSL http://repo.jimv.cn/jimv.standalone.install.sh)"  #通过在线脚本自动安装 JimV

2.3 Cluster deployment

1) Architecture planning

Insert picture description here
note:

  • Stand-alone deployment refers to deploying the control node and the computing node on the same server. It is not recommended to do this in a production environment. You can try it in a test environment.
  • The reason for the co-deployment of the control node and the computing node here is that my server has a very high configuration, but it is strongly recommended to deploy the control node and the computing node separately in a production environment
2) hosts configuration

cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.10.162    wg-10-162  glusterfs02
192.168.10.161    wg-10-161  glusterfs01
192.168.10.160    wg-10-160

note:

  • If it is a machine cloned through kvm, be sure to check the /etc/machine-id file to avoid the same machine-id of different machines.
3) Download the software package
wget http://repo.jimv.cn/JimV-2.13.5-x86_64-DVD-2012.iso
mount JimV-2.13.5-x86_64-DVD-2012.iso /mnt/
cp /mnt/* ./
ls -l jimv*

Insert picture description here
note:

  • Software version: 2.13.5
  • You can see that there are the package files of the jimv_controller.tar.gz control node and the jimv_node.tar.gz computing node in the image.
4) Deploy the control node (160 servers)

step1: installation

tar -xf  jimv_controller.tar.gz
cd jimv_controller
./install   #部署完毕后机器会重新启动,如果不想让机器重启,可以在install脚本中去掉reoot即可

Insert picture description here
Insert picture description here
step2: Initialize JimV
http://192.168.10.160 to
initialize the
Insert picture description here
login console web page, modify the password and
Insert picture description here
add token, for deploying computing nodes
Insert picture description here

5) Deploy computing nodes (160/161/162 servers)
cd /root/pkg
tar -xf 	jimv_node.tar.gz
cd jimv_node
cat README.md
cd network
./bridge --ip 192.168.10.161 --netmask 255.255.255.0 --gateway 192.168.10.254 --dns 223.5.5.5 --nic eth0  # --ip指的是我的本机ip;同时会重新启动网卡
cd ..
./install --host 172.16.1.253 --token UMCvJkb9eAAQ1aWvZ9gcqCS4CIeJ9X0b  #--host指的是控制节点的ip --token是控制节点的web也回去的token,上面有介绍到;同时也会重启服务器

Insert picture description here
Get the name of the current network card: my host is em1 (because it has been installed, it can’t be seen, but a closer look will find that my em1 network card is under bind-jimv)
Insert picture description here

3 web pageInsert picture description here

The next chapter will explain to you the use of JimV.

It's all here. For more articles, please refer to the personal WeChat public account ALL In Linux, let's scan it!

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44729138/article/details/115245499