Background
The current internet science and technology advances, the software industry develops rapidly, people begin to use more and more software, and when operating system installation novices or projects are more, the installation operation steps are more, the time is long, service configuration errors easily occur without paying attention to a little, the service version is unstable, programs are disordered and are not easy to control, so that the project implementation period is long, and the software service cannot run normally.
At present, for the above problems, there are several solutions in the prior art, one is to perform a network push mode through a PXE mode to perform automatic deployment, but the set-up environment is cumbersome. The other method is to manually perform online compilation of related software through a command mode, so as to obtain a dependency package or a source program by depending on a network or self-constructed service. Both approaches are complicated and cumbersome, and also suffer from unpredictable factors.
The prior art has at least the following defects: relevant parameters of an operating system are not defined, and the technical requirements on installers are high; the version management of the visual operating system is not realized, and the problem that the specific version of the operating system cannot be tracked after the operating system is upgraded exists; the management of visual network security technical requirements is not realized, and account and password, port definition of related services and performance parameter configuration cannot be carried out according to the requirements of users; the online management of visual related software versions is not realized, and the problem that the state of the software cannot be tracked during software upgrading exists; the problems of multiple entrances and complex operation exist in the integrated overall automatic deployment process which is not realized.
Disclosure of Invention
In view of the foregoing analysis, the present invention aims to provide an apparatus and a method for integrated operating system deployment, so as to solve the problems of high technical requirements, complex operation, and long time consumption of installation personnel in the existing operating system installation and deployment.
In one aspect, the present invention provides an apparatus for integrated operating system deployment, including:
the operating system management module is used for providing a plurality of operating systems with different architectures and different kernel versions;
the disk management module is used for dividing the storage space to generate corresponding disks and setting format types of disk storage;
the software warehouse module is used for providing an upgrading interface of the software version and storing software installation packages of different versions; configuring a corresponding software warehouse for the operating system;
the security configuration management module is used for configuring the security level of the operating system and generating a configuration package;
and the system generation management module is used for generating a target operating system installation package according to the installation requirements of the user and converting the target operating system installation package into a corresponding mirror image file.
Further, the operating system management module is further configured to:
acquiring operating system image files of different architectures;
extracting a kernel of the operating system from the operating system image file;
and increasing and decreasing the kernel according to the installation requirements of the user, and configuring corresponding hardware drivers for the kernel.
Further, the disk management module is further configured to:
according to the installation requirements of users, logically partitioning the storage space to generate corresponding disks and corresponding partition script files;
and setting a storage format type for each disk according to the installation requirements of users, and generating a corresponding format script file.
Further, the software warehouse module is further configured to:
acquiring installation packages corresponding to different software versions, compiling source codes of the software installation packages, configuring at least one software installation package for a target operating system, and generating software packages;
and configuring a plurality of software packages with different versions for the target operating system to generate a corresponding software warehouse.
Further, the security configuration management module is further configured to:
setting account attributes, network performance and available services of a target operating system, and configuring service ports available by a firewall according to user installation requirements.
Further, the system generation management module is further configured to:
defining a system type according to the service type of the target operating system;
configuring a corresponding service identifier for the target operating system according to the service which can be provided by the target operating system;
and converting the target operating system into an image file for downloading or recording.
And the system further comprises a simulation operation module which is used for providing a simulation installation environment for the image file obtained by the system generation management module so as to carry out installation verification on the image file.
In another aspect, the present invention provides a method for deploying an integrated operating system, including the following steps:
acquiring a plurality of operating systems with different architectures and different kernel versions;
dividing the storage space to generate corresponding disks, and setting format types of disk storage;
acquiring software installation packages of different versions, and configuring corresponding software warehouses for the operating system;
configuring the security level of the operating system to generate a configuration package;
and generating a target operating system installation package according to user requirements, and converting the target operating system installation package into a corresponding image file.
Further, a plurality of operating systems with different architectures and different kernel versions are obtained through the following method:
acquiring operating system image files of different architectures;
extracting a kernel of the operating system from the operating system image file;
and increasing and decreasing the kernel according to the installation requirements of the user, and configuring corresponding hardware drivers for the kernel.
Further, the acquiring the software installation packages of different versions and configuring a corresponding software warehouse for the operating system includes:
acquiring installation packages corresponding to different software versions, compiling source codes of the software installation packages, configuring at least one software installation package for a target operating system, and generating software packages;
and configuring a plurality of software packages with different versions for the target operating system to generate a corresponding software warehouse.
Compared with the prior art, the invention can realize at least one of the following beneficial effects:
1. the device and the method for deploying the integrated operating system, provided by the invention, can realize the establishment of the operating system of the corresponding kernel according to different requirements of a user by managing the operating systems of different versions and different kernels, and can realize the tracking of the specific version of the operating system after the operating system is upgraded.
2. The device and the method for deploying the integrated operating system can automatically divide the storage space according to the user requirements, thereby reducing the technical requirements on novice installation personnel; in addition, an upgrading interface of the software version can be provided, software installation packages of different versions can be stored, an operating system does not need to rely on a network to update the software, the problem of software incompatibility is solved, different software packages are configured for the operating system according to user requirements, a software warehouse is generated, the software installation is simple and convenient, and the technical requirements for installers are also reduced.
3. The device and the method for deploying the integrated operating system can generate operating systems with different types and services according to user requirements, have strong applicability, convert the finally generated operating system into a mirror image file, can be directly installed, are simple to operate, reduce labor and time costs and improve efficiency.
In the invention, the technical schemes can be combined with each other to realize more preferable combination schemes. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
Detailed Description
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate preferred embodiments of the invention and together with the description, serve to explain the principles of the invention and not to limit the scope of the invention.
The device and the method for deploying the integrated operating system can formulate different operating systems according to different requirements of users, provide various storage space division modes, software type selection, software offline upgrading and available service selection for the users, finally convert the generated operating system into a mirror image file, and automatically install and deploy the operating system by downloading or burning the file, and have simple operation and strong adaptability.
Device embodiment
The invention discloses a device for deploying an integrated operating system. As shown in fig. 1, the apparatus includes:
and the operating system management module is used for providing a plurality of operating systems with different architectures and different kernel versions.
And the disk management module is used for dividing the storage space to generate corresponding disks and setting format types of disk storage.
The software warehouse module is used for providing an upgrading interface of the software version and storing software installation packages of different versions; and configuring a corresponding software warehouse for the operating system.
And the security configuration management module is used for configuring the security level of the operating system and generating a configuration package.
And the system generation management module is used for generating a target operating system installation package according to the installation requirements of the user and converting the target operating system installation package into a corresponding mirror image file.
Preferably, each module of the device generates a target operating system in the following manner. As shown in fig. 2.
Preferably, the os management module manages operating systems of a plurality of different cores with different architectures in the following manner:
and acquiring the image files of the operating systems with different architectures, and managing the operating systems with different architectures and different types respectively in a B/S architecture mode.
The kernel of the operating system is extracted from the operating system image file.
And increasing and decreasing the kernel according to the installation requirement of the user, and configuring corresponding hardware drivers for the kernel. Specifically, the unnecessary kernel modules or files are added or deleted according to the user requirements, so that increase and decrease are realized, and corresponding hardware drive increase and decrease are correspondingly provided.
Preferably, the disk management module mainly provides different schemes for user to divide the storage space and set the format type of the disk data, or the user can divide the storage space and set the format type according to a user-defined mode.
Specifically, the storage space is logically partitioned according to the installation requirements of users to generate corresponding disks, or custom partitioning is performed according to rules inside the device, and corresponding partition script files are generated to provide data support for the operating system.
And setting a storage format type for each disk according to the installation requirements of users, and generating a corresponding format script file. For example, if a database service is installed and 500G of storage capacity needs to be provided, 500G of storage space may be drawn as a disk corresponding to the database service, and the disk type is set to xfs format, and the mount point is/data.
Preferably, the software warehouse module is further configured to:
and acquiring installation packages corresponding to different software versions, and compiling the source codes of the software installation packages according to the types of the operating systems, so that the compiled software installation packages can be installed to the operating systems, even if the operating systems can be compatible with the software. Specifically, different users have different requirements for the type, software type and version of the operating system, so that the software warehouse module can configure the software installation package according to the user requirements to generate a corresponding software package, and at least one software package forms the software warehouse of the operating system.
Preferably, the security configuration management module configures the security level of the target operating system mainly by the following means:
the account attributes of the target operating system are set, including the use period (instant availability) of the account, the use authority of the account for each service in the operating system and the security level of the account password.
The network performance and the available services are set, for example, the setting of the network performance may be to set a power-on authority of a certain service or certain services or to limit the available traffic or network speed of the service.
In addition, the method also comprises the step of configuring the service ports which can be provided by the firewall according to the installation requirements of the user.
Preferably, the system generation management module generates the usable target operating system by:
the system type is defined according to the service type of the target operating system, and the service type comprises a database service type, an application service type, a Web service type or other service types.
Configuring a corresponding service identifier for a target operating system according to a service which can be provided by the target operating system, wherein the information of the service identifier comprises the service type of the operating system and various services included in the operating system, and a user can select the corresponding operating system to install according to the service identifier.
And converting the target operating system into an image file for downloading or recording. For example, the data can be downloaded to a flash disk or recorded on an optical disk for installation, or can be directly installed on a network.
Preferably, the system further comprises a simulation operation module, which is used for providing a simulation installation environment for the image file obtained by the system generation management module, so as to perform installation and verification on the image file, and find and process problems in time.
Method embodiment
Since the method for deploying the integrated operating system provided by the present application is based on the same principle as the above-mentioned apparatus, the embodiment of the apparatus may be referred to for the repeated points, and details are not described herein again.
In another embodiment of the invention, a method for deploying an integrated operating system is disclosed. As shown in fig. 3, the method comprises the following steps:
step 1, obtaining a plurality of operating systems with different architectures and different kernel versions.
And 2, dividing the storage space to generate corresponding disks, and setting format types of disk storage.
And 3, acquiring software installation packages of different versions, and configuring a corresponding software warehouse for the operating system.
And 4, configuring the security level of the operating system to generate a configuration package.
And 5, generating a target operating system installation package according to user requirements, and converting the target operating system installation package into a corresponding image file.
And 6, carrying out installation verification on the obtained mirror image file in a simulated installation environment, and timely finding and processing problems.
Preferably, a plurality of operating systems of different architectures and different kernel versions are obtained by:
and acquiring the image files of the operating systems with different architectures.
And extracting the kernel of the operating system from the operating system image file.
And increasing and decreasing the kernel according to the installation requirements of the user, and configuring corresponding hardware drivers for the kernel.
Preferably, the acquiring the software installation packages of different versions and configuring the corresponding software warehouse for the operating system includes:
acquiring installation packages corresponding to different software versions, compiling source codes of the software installation packages, configuring at least one software installation package for a target operating system, and generating software packages;
and configuring a plurality of software packages with different versions for the target operating system to generate a corresponding software warehouse.
Preferably, the security level of the operating system is configured by:
the account attributes of the target operating system are set, including the use period (instant availability) of the account, the use authority of the account for each service in the operating system and the security level of the account password.
The network performance and the available services are set, for example, the setting of the network performance may be to set a power-on authority of a certain service or certain services or to limit the available traffic or network speed of the service.
In addition, the method also comprises the step of configuring the service ports which can be provided by the firewall according to the installation requirements of the user.
Preferably, the usable target operating system installation package is generated by:
the system type is defined according to the service type of the target operating system, and the service type comprises a database service type, an application service type, a Web service or other service types.
Configuring a corresponding service identifier for a target operating system according to a service which can be provided by the target operating system, wherein the information of the service identifier comprises the service type of the operating system and various services included in the operating system, and a user can install the corresponding operating system selected according to the service identifier.
And converting the target operating system into an image file for downloading or recording. For example, the data can be downloaded to a flash disk or recorded on an optical disk for installation, or can be directly installed on a network.
Mounting examples
Specifically, the image file based on the operating system is installed and deployed through the following procedures, as shown in fig. 4:
s210: and uploading an image file of the operating system, and selecting an installation system item.
S220: a determination is made as to whether the data disk is to be formatted. According to the selection yes of the pop-up box after the step S210, the step S240 is entered; if not, the process proceeds to step S230.
S230: and (7) exiting the installation.
S240: deployment and configuration is automatically installed.
S250: and (5) finishing the installation. After the processing in step S240 is completed, the process will automatically proceed to step S260.
S260: and judging whether the installation is successful. The confirmation is made by automatic determination, illustratively, by a URL address request to determine the status code, and if the status is 200, the installation is successful. If the installation fails, go to step S230; if the installation is successful, the process proceeds to step S270.
S270: and automatically restarting the system.
S280: and logging in the system. The account and password are entered on the login page through the display or by accessing the remote default address, and if the user confirms that the password is correct, the process proceeds to step S290.
S290: it is determined whether initialization has occurred. According to step S280, after the login is successful, if the login is not initialized, the server is initialized, and the process proceeds to step S300; if initialized, the process proceeds to step S330.
S300: basic information items are filled in. The main filling content comprises item numbers, network addresses and item domain name information items.
S310: the project-related parameters are instantiated. Based on the basic information item data and the internal rules input in step S300, the association definition of the relevant service configuration is performed, and the instantiation of the project basic data is realized. Illustratively, the basic data of the known memory, CPU thread number and network address is used as a basis and converted into the configuration association relationship of the application service, the database service, the firewall service and the cluster service, and finally the available parameter configuration is formed.
S320: online disk mount and formatting. And (4) combining an interface of an operating system, initializing, mounting and formatting the disk array, and displaying the capacity of the total space and the used space.
Compared with the prior art, the device and the method for deploying the integrated operating system, provided by the invention, have the advantages that firstly, the operating systems with different versions and different kernels are managed, the operating systems of the corresponding kernels can be formulated according to different requirements of users, and meanwhile, after the operating systems are upgraded, the specific versions of the operating systems can be tracked. Secondly, the storage space can be automatically divided according to the user requirements, so that the technical requirements on novice installation personnel are reduced; in addition, an upgrading interface of the software version can be provided, software installation packages of different versions can be stored, an operating system does not need to rely on a network to update the software, the problem of software incompatibility is solved, different software packages are configured for the operating system according to user requirements, a software warehouse is generated, the software installation is simple and convenient, and the technical requirements for installers are also reduced. Finally, the device and the method for deploying the integrated operating system can generate operating systems with different types and services according to user requirements, have strong applicability, convert the finally generated operating system into a mirror image file, can be directly installed, are simple to operate, reduce labor and time costs, and improve efficiency.
Those skilled in the art will appreciate that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium, to instruct related hardware. The computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention.