openlava4.0 installation tutorial (VMware/centos7)

 

Foreword:

As a test, install centos7 on VMware, then install openlava4.0 on centos7.

The installation steps on redhat are basically the same.

 

Platform Introduction:

Virtual Machine Platform: 14.1.1

centos version: 7.4

 

installation steps:

1. Change the hostname

When building a server cluster, we must ensure that the hostname of each host is unique, so we need to rename the default hostname localhost.

1. First log in to centos7, open the terminal, and use the ip command to get the address of the current host.

2. Change the hostname in /etc/hosts, the format is "ip hostname". Be careful not to add spaces or symbols to the hostname to avoid unnecessary errors.

3. Change the hostname in /etc/hostname.

4. Restart the system and verify that the hostname has been changed successfully.

 

Second, install openlava

1. Install VMware Tools on the virtual machine (because it has nothing to do with openlava, please refer to Baidu for specific steps).

2. Log in to centos7, open the terminal, and transfer the source file of openlava4.0 to VMware through the shared directory.

Switch to the root account and copy the source files of openlava4.0 to the home directory.

3. Enter the openlava source code directory and execute the configuration file configure.

4. There is a high probability that you will encounter the following problems.

5. This is because some library files are not imported during system installation, and these library files are generally included in the installation image of the operating system. Since centos may not be able to connect to the Internet, we need to spend a little space below to introduce how to install library files through yum local source.

Virtual Machine->Settings->CD/DVD->Device Status, check "Connected", and make sure that the ISO image file is loaded on the CD.

6. In centos, mount the cdrom to the executed directory.

7. Create the following yum configuration file.

8. Clear the yum cache and rebuild the cache repository.

9. Verify that yum has been configured correctly.

10. At this point, use yum local source to install the actual ncurses related library files.

11. After the library file is installed successfully, re-execute the configuration file configure in openlava.

12. At this point you will most likely encounter the following problems.

13. Install it again with yum local source.

14. Execute the openlava configuration file configure again, this time there should be no problems.

15. After configure is executed successfully, execute make.

16. Finally execute make install to complete the installation.

 

Third, the configuration after installation.

1. If you did not encounter other problems with the previous installation, openlava will be installed to the following directory by default.

2. First create an account openlava.

3. Copy the config file from the source code directory to the installation directory.

4. Change the group and owner of the installation directory to openlava ( this step is very important! ).

5. Execute the following file copies and modify permissions/owners.

6. Perform the following settings.

7. Add the current hostname to the openlava machine configuration file.

8. Start the openlava service.

9. Import openlava related environment variable settings. (The default of centos7 is bash, if it is csh/tcsh, it should source openlava.csh)

10. Test openlava related commands.

 

Successful installation!

 

postscript:

1. Special thanks to Beck for his early testing and technical support.

2. If you need the installation source files of openlava4.0, or if you need technical support for the installation/configuration of the system openlava, please leave a message, but I do not go to this blog frequently.

3. Welcome peer exchanges!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324467569&siteId=291194637