[go: up one dir, main page]

CN106648838B - Resource pool management configuration method and device - Google Patents

Resource pool management configuration method and device Download PDF

Info

Publication number
CN106648838B
CN106648838B CN201611266171.4A CN201611266171A CN106648838B CN 106648838 B CN106648838 B CN 106648838B CN 201611266171 A CN201611266171 A CN 201611266171A CN 106648838 B CN106648838 B CN 106648838B
Authority
CN
China
Prior art keywords
storage
acquiring
size
target host
disk data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611266171.4A
Other languages
Chinese (zh)
Other versions
CN106648838A (en
Inventor
刘华
谢浩安
张国强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aerospace Winhong Technology Co ltd
Winhong Information Technology Co ltd
Original Assignee
Aerospace Winhong Technology Co ltd
Winhong Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aerospace Winhong Technology Co ltd, Winhong Information Technology Co ltd filed Critical Aerospace Winhong Technology Co ltd
Priority to CN201611266171.4A priority Critical patent/CN106648838B/en
Publication of CN106648838A publication Critical patent/CN106648838A/en
Application granted granted Critical
Publication of CN106648838B publication Critical patent/CN106648838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45537Provision of facilities of other operating environments, e.g. WINE

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a configuration method and a device for resource pool management, wherein the method comprises the following steps: acquiring a template file corresponding to environment deployment configuration parameters of a virtualization platform, and acquiring a metadata information file according to the template file; connecting a target host in an SSH mode; acquiring all storage types of a target host, and acquiring the available size of each storage type; acquiring the storage size of the disk data according to the metadata information file, and comparing the storage size of the disk data with the available size of each storage type; selecting a storage type with the available size larger than the storage size of the disk data, and importing the data of the template file into the target host in the storage type in an encryption mode; and generating a virtual machine according to the metadata in the metadata information file, and dynamically configuring the network information of the virtual machine. By the method and the system, the user can conveniently access the target host in the management resource pool from the Web browser.

Description

Resource pool management configuration method and device
Technical Field
The present invention relates to management and configuration of a resource pool, and in particular, to a configuration method and apparatus for accessing resource pool management through a web browser.
Background
There are three problems with the management of resource pools in the solution of virtualization technology developed by current cloud macros: 1. the web mode management of the WinServer resource pool needs a single physical host or deployment by using other virtual machines of a virtualization platform; 2. the installation package of the virtualization management platform WinCenter is incompatible with other virtualization platforms; 3. the WinCenter is complex in installation and configuration and is not suitable for common users.
Disclosure of Invention
In order to overcome the defects of the prior art, an object of the present invention is to provide a resource pool management configuration method, which can solve the problems of complexity and troublesome management of the existing resource pool configuration method.
One of the purposes of the invention is realized by adopting the following technical scheme:
the invention provides a configuration method for resource pool management, which comprises the following steps:
s1: acquiring a template file corresponding to environment deployment configuration parameters of a virtualization platform, and acquiring a metadata information file according to the template file;
s2: connecting a target host in an SSH mode;
s3: acquiring all storage types of a target host, and acquiring the available size of each storage type;
s4: acquiring the storage size of the disk data according to the metadata information file, and comparing the storage size of the disk data with the available size of each storage type;
s5: selecting a storage type with the available size larger than the storage size of the disk data, and importing the data of the template file into the target host in the storage type in an encryption mode;
s6: generating a virtual machine according to the metadata in the metadata information file, dynamically configuring network information of the virtual machine, and starting a WinCenter through the virtual machine, so that the connection between the WinCenter and a target host can be realized; the network information includes an IP address, a mask, and a gateway.
Preferably, the step S1 further includes obtaining the storage size of the memory, the CPU and the disk data through the metadata information file, and determining whether the storage size of the memory, the CPU and the disk data is legal, and if so, executing step S2.
Preferably, the network information includes an IP address, a mask, and a gateway.
Preferably, the storage types include five storage types, namely LVM, NFS, ISCSI, HBA, and EXT, where LVM and EXT are local storage, and NFS, ISCSI, and HBA are shared storage.
In order to overcome the defects of the prior art, another object of the present invention is to provide a resource pool management configuration device, which can solve the problems of complex resource pool configuration method and troublesome management.
The second purpose of the invention is realized by adopting the following technical scheme:
the invention also provides a configuration device for resource pool management, which comprises:
the template file acquisition module is used for acquiring a template file corresponding to the environment deployment configuration parameters of the virtualization platform and acquiring a metadata information file according to the template file;
the connection host module is used for connecting a target host in an SSH mode;
the storage type acquisition module is used for acquiring all storage types of the target host and obtaining the available size of each storage type;
the comparison module is used for acquiring the storage size of the disk data according to the metadata information file and comparing the storage size of the disk data with the available size of each storage type;
the import module is used for selecting a storage type with the available size larger than the storage size of the disk data and importing the data of the template file into the target host computer in the storage type in an encryption mode;
the configuration module is used for generating a virtual machine according to the metadata in the metadata information file, dynamically configuring network information of the virtual machine, and starting the WinCenter through the virtual machine, so that the connection between the WinCenter and the target host can be realized; the network information includes an IP address, a mask, and a gateway.
Preferably, the template file obtaining module further obtains the storage sizes of the memory, the CPU and the disk data through the metadata information file, and determines whether the storage sizes of the memory, the CPU and the disk data are legal, and if so, executes the connection to the host module.
Preferably, the network information includes an IP address, a mask, and a gateway.
Preferably, the storage types include five storage types, namely LVM, NFS, ISCSI, HBA, and EXT, where LVM and EXT are local storage, and NFS, ISCSI, and HBA are shared storage.
Compared with the prior art, the invention has the beneficial effects that: the method and the system realize that the user can access the login WinCenter through the web browser, thereby managing the target host in the resource pool.
Drawings
FIG. 1 is a flow chart of a method according to an embodiment of the present invention;
FIG. 2 is a block diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings and the detailed description below:
as shown in FIG. 1, the present invention provides a configuration method for resource pool management, which mainly realizes that a user can access a login WinCenter through a web browser, so as to manage a host in a WinServer resource pool. That is, a C/S mode is adopted to configure a file corresponding to the environment deployment configuration parameters of the CNware of the server virtualization platform into a target host of the WinServer, so that a Web mode is realized to manage the WinServer resource pool. The WinCenter refers to a web platform for uniformly managing various resource pools, a target host is generally stored in a platform for realizing bottom layer virtualization in a cloud computing center, namely WinServer, and CNware is a server virtualization platform and mainly comprises a server virtualization engine and virtualization management software.
The configuration method comprises the following steps:
s1: and acquiring a template file corresponding to the CNware environment deployment configuration parameters and acquiring a metadata information file according to the template file. The template file is a file in xva format, is actually a compressed tar file, and is composed of a metadata information file and a compressed disk data file, wherein the metadata information file is an xml file, metadata is stored in the metadata information file, and the metadata mainly comprises a version number of a WinServer virtualization platform, a hostname of a belonging physical host, the number of CPUs (central processing units) of the virtual machine, the size of a memory, network information, the number of disks, the size of the disks and the like. In addition, the template file is not automatically generated by the system, but is made by an engineer according to the environment deployment configuration parameters of the virtual machine in the CNware.
S2: and obtaining the storage size of the memory, the CPU and the disk data from the metadata information file, judging whether the storage size is legal or not, and executing S4 when the storage size is legal. Firstly, acquiring relevant data such as the storage size of data of a memory, a CPU (Central processing Unit) and a disk from a metadata information file of a template file, judging whether the data are legal, if not, indicating that the template file is damaged or not, and quitting or returning to other operations. And if the operation is legal, continuing to execute the next operation. Since the metadata is needed to generate the virtual machine, the memory and the number of the CPUs are the number of the corresponding virtual machine, and when the parameters are legal, the available virtual machine can be generated through the metadata in the next step. In addition, the storage size of the disk data refers to the disk size of the stored data.
S3: and connecting the target host by an SSH mode. Where SSH is Secure Shell, it can be used for a variety of platforms, commonly used for remote connection, and is not specifically described herein.
S4: all storage types of the target host are obtained, and the available size of each storage type is obtained. The storage types of the target host generally include five types, namely LVM, NFS, ISCSI, HBA, EXT, wherein LVM, EXT are local storage, and NFS, ISCSI, HBA are shared storage. Each storage type has a corresponding available size. Wherein, the LVM is Logical Volume Manager (Chinese is Logical Volume management), which means that the local storage is a storage type of Logical Volume management; EXT is Extended file system (Extended file system in Chinese), which means that local storage is a type of storage of a file system. Nfs (network File system), a network File system, allows computers in a network to share resources over a TCP/IP network. In the application of NFS, a client application of a local NFS can transparently read and write files located on a remote NFS server, just like accessing local files. ISCSI (Internet Small Computer System Interface), an Internet Small Computer System Interface, is a TCP/IP-based protocol used to establish and manage the interconnection between IP storage devices, hosts, clients, etc. and create Storage Area Networks (SANs). An HBA (Host Bus Adapter, english-wide) is a circuit board and/or integrated circuit Adapter that provides input/output (I/O) processing and physical connections between a server and a storage device.
S5: and selecting a storage type with the available size larger than the storage size of the disk data, and importing the data of the template file to the target host in the storage type in an encryption mode.
In order to import the template file into the target host, a storage type needs to be selected first, and each storage type has an available size, so that the available size of the storage type needs to be compared with the storage size of the disk data in the template file, and the data of the template file can be stored in the target host only when the available size of the storage type is larger than the storage size of the disk data. In addition, when the data of the template file is imported into the target host, the data of the template file can be imported in an HTTPS proxy mode, which belongs to a secure encryption mode, so that the security of the data can be ensured. If a plurality of storage types meet the conditions, one of the storage types can be automatically selected according to the sequence preset by the system.
S6: generating a virtual machine according to metadata in the metadata information file, dynamically configuring network information of the virtual machine, and starting a WinCenter through the virtual machine, so that the connection between the WinCenter and a target host can be realized; the network information includes an IP address, a mask, and a gateway.
In this document, when the network information between the target host and the virtual machine is configured in the same network segment, it can be realized that the target host in the resource pool can be accessed through the virtual machine when the user logs in the WinCenter through the Web browser.
As shown in fig. 2, the present invention further provides a configuration apparatus for resource pool management corresponding to the configuration method for resource pool management, including:
the template file acquisition module is used for acquiring a template file corresponding to the environment deployment configuration parameters of the virtualization platform and acquiring a metadata information file according to the template file;
the connection host module is used for connecting a target host in an SSH mode;
the storage type acquisition module is used for acquiring all storage types of the target host and obtaining the available size of each storage type;
the comparison module is used for acquiring the storage size of the disk data according to the metadata information file and comparing the storage size of the disk data with the available size of each storage type;
the import module is used for selecting the storage type with the available size larger than the storage size of the disk data and importing the data of the template file into the target host in an encryption mode;
the configuration module is used for generating a virtual machine according to the metadata in the metadata information file, dynamically configuring network information of the virtual machine, and starting the WinCenter through the virtual machine, so that the connection between the WinCenter and the target host can be realized; the network information includes an IP address, a mask, and a gateway.
Preferably, the template file obtaining module further obtains the storage sizes of the memory, the CPU and the disk data through the metadata information file, and determines whether the storage sizes of the memory, the CPU and the disk data are legal, and if so, executes the connection to the host module.
Preferably, the network information includes an IP address, a mask, and a gateway.
Preferably, the storage types include five storage types, namely LVM, NFS, ISCSI, HBA, and EXT, where LVM and EXT are local storage, and NFS, ISCSI, and HBA are shared storage.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.

Claims (6)

1. A configuration method for resource pool management is characterized by comprising the following steps:
s1: acquiring a template file corresponding to environment deployment configuration parameters of a virtualization platform, and acquiring a metadata information file according to the template file;
s2: connecting a target host in an SSH mode;
s3: acquiring all storage types of a target host, and acquiring the available size of each storage type;
s4: acquiring the disk size of the stored data according to the metadata information file, and comparing the disk size of the stored data with the available size of each storage type;
s5: selecting a storage type with the available size larger than the storage size of the disk data, and importing the data of the template file into the target host in the storage type in an encryption mode;
s6: generating a virtual machine according to the metadata in the metadata information file, dynamically configuring network information of the virtual machine, and starting a WinCenter through the virtual machine, so that the connection between the WinCenter and a target host can be realized; the network information comprises an IP address, a mask code and a gateway; and S1, acquiring the storage sizes of the memory, the CPU and the disk data through the metadata information file, judging whether the storage sizes of the memory, the CPU and the disk data are legal, and executing S2 when the storage sizes of the memory, the CPU and the disk data are legal.
2. The method for configuring resource pool management of claim 1, wherein the network information comprises an IP address, a mask, and a gateway.
3. The method for configuring resource pool management according to claim 1, wherein the storage types include five storage types, i.e. LVM, NFS, ISCSI, HBA and EXT, where LVM and EXT are local storage and NFS, ISCSI and HBA are shared storage.
4. A configuration apparatus for resource pool management, comprising:
the template file acquisition module is used for acquiring a template file corresponding to the environment deployment configuration parameters of the virtualization platform and acquiring a metadata information file according to the template file;
the connection host module is used for connecting a target host in an SSH mode;
the storage type acquisition module is used for acquiring all storage types of the target host and obtaining the available size of each storage type;
the comparison module is used for acquiring the storage size of the disk data according to the metadata information file and comparing the storage size of the disk data with the available size of each storage type;
the import module is used for selecting a storage type with the available size larger than the storage size of the disk data and importing the data of the template file into the target host computer in the storage type in an encryption mode;
the configuration module is used for generating a virtual machine according to the metadata in the metadata information file, dynamically configuring network information of the virtual machine, and starting the WinCenter through the virtual machine, so that the connection between the WinCenter and the target host can be realized; the network information comprises an IP address, a mask code and a gateway; the template file acquisition module also acquires the storage sizes of the memory, the CPU and the disk data through the metadata information file, judges whether the storage sizes of the memory, the CPU and the disk data are legal or not, and executes the connection with the host module when the storage sizes of the memory, the CPU and the disk data are legal.
5. The apparatus for configuration of resource pool management as claimed in claim 4, wherein the network information comprises an IP address, a mask, and a gateway.
6. The configuration apparatus for resource pool management according to claim 4, wherein the storage types include five storage types, i.e. LVM, NFS, ISCSI, HBA and EXT, where LVM and EXT are local storage and NFS, ISCSI and HBA are shared storage.
CN201611266171.4A 2016-12-31 2016-12-31 Resource pool management configuration method and device Active CN106648838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611266171.4A CN106648838B (en) 2016-12-31 2016-12-31 Resource pool management configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611266171.4A CN106648838B (en) 2016-12-31 2016-12-31 Resource pool management configuration method and device

Publications (2)

Publication Number Publication Date
CN106648838A CN106648838A (en) 2017-05-10
CN106648838B true CN106648838B (en) 2021-01-01

Family

ID=58838778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611266171.4A Active CN106648838B (en) 2016-12-31 2016-12-31 Resource pool management configuration method and device

Country Status (1)

Country Link
CN (1) CN106648838B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958946A (en) * 2018-08-02 2018-12-07 中国建设银行股份有限公司 Virtualization resource pond switching method, device and electronic equipment
CN109240803A (en) * 2018-09-25 2019-01-18 郑州云海信息技术有限公司 A kind of virtual machine migration method, device, server and storage medium
CN112015669B (en) * 2019-05-31 2024-11-15 华为技术有限公司 A hybrid memory management method and device
CN113419847A (en) * 2021-05-28 2021-09-21 济南浪潮数据技术有限公司 Method, device and equipment for creating cloud host by cloud management platform and readable medium
CN117032906B (en) * 2023-10-09 2023-12-19 新立讯科技股份有限公司 Agricultural product basic data resource pool management method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224392A (en) * 2015-10-13 2016-01-06 中国联合网络通信集团有限公司 A virtual computing resource quota management method and platform
CN105474171A (en) * 2013-08-15 2016-04-06 思科技术公司 Model-based approach to intelligent automation in a computing domain
CN105808165A (en) * 2016-03-03 2016-07-27 天津书生云科技有限公司 Method and device for accessing storage device by virtual machine in cloud computing management platform

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981888B (en) * 2012-10-16 2016-02-03 北京华胜天成科技股份有限公司 For the virtualization implementation method of Power server
CN103905232A (en) * 2012-12-28 2014-07-02 鸿富锦精密工业(深圳)有限公司 Virtual-machine management system and method
CN103916378B (en) * 2012-12-28 2017-02-15 中国电信股份有限公司 System and method for automatically deploying application system in cloud resource pool
CN103605570A (en) * 2013-11-18 2014-02-26 浪潮(北京)电子信息产业有限公司 Automatic application deployment method and system based on virtual machine template
US11061705B2 (en) * 2015-03-16 2021-07-13 Bmc Software, Inc. Maintaining virtual machine templates

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105474171A (en) * 2013-08-15 2016-04-06 思科技术公司 Model-based approach to intelligent automation in a computing domain
CN105224392A (en) * 2015-10-13 2016-01-06 中国联合网络通信集团有限公司 A virtual computing resource quota management method and platform
CN105808165A (en) * 2016-03-03 2016-07-27 天津书生云科技有限公司 Method and device for accessing storage device by virtual machine in cloud computing management platform

Also Published As

Publication number Publication date
CN106648838A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN112119374B (en) Selectively providing mutual transport layer security using alternate server names
US10341251B2 (en) Method and system for securely transmitting volumes into cloud
JP6860179B2 (en) Systems with managed container instances and how
US10958633B2 (en) Method and system for securely transmitting volumes into cloud
US11206253B2 (en) Domain pass-through authentication in a hybrid cloud environment
JP6426846B2 (en) System-on-chip with reconfigurable resources for multiple computer subsystems
US11849557B2 (en) Infrastructure management device
CN106648838B (en) Resource pool management configuration method and device
CN110677441B (en) Access method and device of object storage cluster
CN104020961B (en) Distributed data storage method, apparatus and system
JP7200078B2 (en) System-on-chip with I/O steering engine
JP6445710B2 (en) Multi-mode system on chip
CN111712799B (en) Automatic distribution of models for execution on non-edge devices and edge devices
CN104253792A (en) Substrate management controller virtual system and method
CN104021027B (en) Method and apparatus for providing virtual devices
CN104796304A (en) Cloud platform test method and system
US11287982B2 (en) Associating data management policies to portions of data using connection information
US9298597B2 (en) Automated testing of websites based on mode
TW201514690A (en) System and method of virtualization of a baseboard management controller
US20250039261A1 (en) Network storage acceleration
CN117742826A (en) Application access method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant