CN107729117B - Virtual machine generation method and system - Google Patents

Virtual machine generation method and system Download PDF

Info

Publication number
CN107729117B
CN107729117B CN201610653833.7A CN201610653833A CN107729117B CN 107729117 B CN107729117 B CN 107729117B CN 201610653833 A CN201610653833 A CN 201610653833A CN 107729117 B CN107729117 B CN 107729117B
Authority
CN
China
Prior art keywords
virtual machine
target virtual
user
module
parameter
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
CN201610653833.7A
Other languages
Chinese (zh)
Other versions
CN107729117A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing 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 China Mobile Communications Group Co Ltd, China Mobile Group Chongqing Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201610653833.7A priority Critical patent/CN107729117B/en
Publication of CN107729117A publication Critical patent/CN107729117A/en
Application granted granted Critical
Publication of CN107729117B publication Critical patent/CN107729117B/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/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a virtual machine generation method, which comprises the following steps: the parameter input module generates a custom configuration file of the target virtual machine according to a custom configuration demand parameter of the target virtual machine input by a user; the user-defined configuration requirement parameters comprise user-level environment parameters and system-level environment parameters; the virtual machine creating module creates the target virtual machine according to the system level environment parameters in the user-defined configuration file of the target virtual machine; and the parameter configuration module generates a user-defined configuration script which can be executed by an operating system of the target virtual machine according to the user-level environment parameters in the user-defined configuration file of the target virtual machine, and sends the user-defined configuration script to the target virtual machine so that the target virtual machine executes the user-defined configuration script. Meanwhile, the invention also discloses a virtual machine generation system.

Description

Virtual machine generation method and system
Technical Field
The present invention relates to virtual machine technologies, and in particular, to a virtual machine generation method and system.
Background
With the rapid development of virtualization Technology, more and more enterprises will adopt X86 server virtualization software and Technology in Internet Technology (IT) system construction. When a new virtual machine is deployed by using virtualization software, a user usually selects to create the virtual machine through a template or selects an existing virtual machine for copying, so that the time for manually installing an operating system, service software and configuring environment parameters can be saved. In fact, it is also often desirable for a user to be able to automatically personalize a new virtual machine when it is created. On one hand, the personalized requirement is that virtual machines with the same Internet Protocol (IP) address, host name, operating system activation code and other attributes of the Internet Protocol (IP) between networks are not allowed to run simultaneously due to technical limitations, and on the other hand, because there is a personalized requirement for the installation and configuration of the virtual machines by a user using each virtual machine, the virtual machine created by a template or a copy method needs to be personalized to be normally used.
In the prior art, to implement the customized creation of a virtual machine, a user can only perform customized configuration on a small part of system-level environment parameters such as a host name, an IP address and a time zone which are extremely limited through a customized function provided by virtualization software, but cannot perform customized configuration on user-level environment parameters such as a user account, a use directory and a user language environment. And then, directly logging in the virtual machine operating system by a system administrator, and completing the configuration of most of the rest system-level environment parameters and user-level environment parameters according to the user requirements. Thus, this is a long-flow, non-automated solution. The complete implementation flow of the prior art for the custom creation of the virtual machine can be summarized as follows: a system administrator generates one or more custom strategies in advance through a custom function interface provided by virtualization management software, and defines information such as a host name, a system registration code, a time zone, an IP address and the like which are originally required to be manually input when a virtual machine operating system is installed in detail in each custom strategy; then, when creating a virtual machine using the template, the system administrator selects and uses a specific custom policy defined previously, and invokes an installation tool corresponding to the operating system, for example, for windows, the sysprep installation tool is selected, and for linux, the perl installation tool is selected, so that when creating the virtual machine, the operating system automatically completes configuration of operating system environment parameters of the virtual machine according to the content defined in the custom policy.
Therefore, when the virtual machine is created by adopting the user-defined function provided by the virtualization software in the prior art, the user-defined user-level environment parameters are not supported, and the virtual machine is not supported to be finally created by the user in a user-defined way; in addition, the operation process is complex and the automation degree is low.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a virtual machine generation method and system, which can implement user-defined creation of a virtual machine by a user.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a virtual machine generation method, which comprises the following steps:
the parameter input module generates a custom configuration file of the target virtual machine according to a custom configuration demand parameter of the target virtual machine input by a user; the user-defined configuration requirement parameters comprise user-level environment parameters and system-level environment parameters;
the virtual machine creating module creates the target virtual machine according to the system level environment parameters in the user-defined configuration file of the target virtual machine;
and the parameter configuration module generates a user-defined configuration script which can be executed by an operating system of the target virtual machine according to the user-level environment parameters in the user-defined configuration file of the target virtual machine, and sends the user-defined configuration script to the target virtual machine so that the target virtual machine executes the user-defined configuration script.
In the above scheme, the method further comprises:
and the parameter input module acquires and checks the user-defined configuration requirement parameters of the target virtual machine input by the user.
In the foregoing solution, the creating module of the virtual machine creates the target virtual machine according to the system level environment parameters in the custom configuration file of the target virtual machine, including:
the virtual machine creating module identifies system-level environment parameters in the customized configuration file of the target virtual machine according to the customized configuration file of the target virtual machine generated by the parameter input module, and calls an Application Programming Interface (API) of virtualization management software to create the target virtual machine based on the system-level environment parameters.
In the above scheme, the user-defined configuration file of the target virtual machine includes an IP address and a domain name system DNS of the target virtual machine.
In the above scheme, the method further comprises:
and the virtual machine creation module sends the successful creation message of the target virtual machine and the IP address of the target virtual machine to the parameter configuration module so that the parameter configuration module sends the self-defined configuration script generated by the parameter configuration module to the target virtual machine.
The invention provides a virtual machine generation system, which comprises: the system comprises a parameter input module, a virtual machine creation module and a parameter configuration module; wherein the content of the first and second substances,
the parameter input module is used for generating a custom configuration file of the target virtual machine according to a custom configuration demand parameter of the target virtual machine input by a user; the user-defined configuration requirement parameters comprise user-level environment parameters and system-level environment parameters;
the virtual machine creating module is used for creating the target virtual machine according to the system level environment parameters in the user-defined configuration file of the target virtual machine;
the parameter configuration module is used for generating a custom configuration script executable by an operating system of the target virtual machine according to the user-level environment parameters in the custom configuration file of the target virtual machine, and sending the custom configuration script to the target virtual machine so as to enable the target virtual machine to execute the custom configuration script.
In the above scheme, the parameter input module is further configured to obtain and check a user-defined configuration requirement parameter of the target virtual machine input by the user.
In the foregoing solution, the virtual machine creating module is specifically configured to:
according to the user-defined configuration file of the target virtual machine generated by the parameter input module, system-level environment parameters in the user-defined configuration file of the target virtual machine are identified, and an API (application programming interface) of virtualization management software is called to create the target virtual machine based on the system-level environment parameters.
In the above scheme, the user-defined configuration file of the target virtual machine includes an IP address and a DNS of the target virtual machine.
In the above scheme, the virtual machine creation module is further configured to send the target virtual machine creation success message and the IP address of the target virtual machine to the parameter configuration module, so that the parameter configuration module sends the self-defined configuration script generated by the parameter configuration module to the target virtual machine.
According to the virtual machine generation method and system provided by the embodiment of the invention, a parameter input module generates a custom configuration file of a target virtual machine according to a custom configuration demand parameter of the target virtual machine input by a user; the user-defined configuration requirement parameters comprise user-level environment parameters and system-level environment parameters; the virtual machine creating module creates the target virtual machine according to the system level environment parameters in the user-defined configuration file of the target virtual machine; and the parameter configuration module generates a user-defined configuration script which can be executed by an operating system of the target virtual machine according to the user-level environment parameters in the user-defined configuration file of the target virtual machine, and sends the user-defined configuration script to the target virtual machine so that the target virtual machine executes the user-defined configuration script. Therefore, the embodiment of the invention realizes the automatic configuration of the user-defined configuration demand parameter of the target virtual machine to the target virtual machine by acquiring the user-defined configuration demand parameter of the target virtual machine in advance; therefore, the user is supported to self-define the user-level environment parameters, and the user is allowed to complete the configuration of the self-defined virtual machine in a self-service mode; in addition, the automation operation of the custom creation of the virtual machine is realized.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a virtual machine generation method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a specific implementation of a virtual machine generation method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a virtual machine generation system according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1, a method for generating a virtual machine according to an embodiment of the present invention includes:
step 101: the parameter input module generates a custom configuration file of the target virtual machine according to a custom configuration demand parameter of the target virtual machine input by a user;
here, the custom configuration requirements parameters include user-level environment parameters and system-level environment parameters.
Specifically, after a user inputs a user-defined configuration requirement parameter of a target virtual machine through a web interface provided by a parameter input module, the parameter input module transfers the user-defined configuration requirement parameter of the target virtual machine input by the user to an administrator interface of the parameter input module in a form; the administrator examines the validity of the user-defined configuration demand parameter of the target virtual machine input by the user according to the load condition of the existing system resource and the defined reference examination standard, for example, when the parameter input by the user contains the size of the applied disk resource and the size of the applied disk resource exceeds the range of the existing disk resource, the parameter can be judged to be invalid; then, the administrator adds System-level environment parameters such as an IP address and a Domain Name System (DNS) to the user-defined configuration requirement parameters of the target virtual machine input by the user; the parameter input module collects the finally obtained custom configuration required parameters, generates a custom configuration file of the target virtual machine, and respectively sends the custom configuration file of the target virtual machine to the virtual machine creation module and the parameter configuration module.
Here, the user inputs the user-defined configuration requirement parameter of the target virtual machine through a web interface provided by the parameter input module, which may include system-level environment parameters such as a Central Processing Unit (CPU) core number, a memory size, a disk space size, and an operating system type, and may also include user-level environment parameters such as a host name, a user language environment, an account number and a password to be created, a file system name, and a file system mount location.
Step 102: the virtual machine creating module creates the target virtual machine according to the system level environment parameters in the user-defined configuration file of the target virtual machine;
specifically, the virtual machine creating module identifies system-level environment parameters in the customized configuration file of the target virtual machine according to the customized configuration file of the target virtual machine generated by the parameter input module in step 101, and invokes an Application Programming Interface (API) of virtualization management software to create the target virtual machine based on the system-level environment parameters.
Here, after the virtual machine creation module identifies system-level environment parameters such as the number of CPU cores, the memory size, the disk space size, and the IP address in the custom configuration file of the target virtual machine, the virtual machine creation module assigns the identified system-level environment parameters to predefined variables to serve as input parameters of the virtualization management software, and then completes creation of the target virtual machine by using the virtual machine creation function of the virtualization management software itself.
Further, after step 102, the method further comprises: and the virtual machine creation module sends the successful creation message of the target virtual machine and the IP address of the target virtual machine to the parameter configuration module so that the parameter configuration module sends the self-defined configuration script generated by the parameter configuration module to the target virtual machine.
Here, the virtual machine creation module sends the target virtual machine creation success message and the IP address of the target virtual machine to the parameter configuration module to notify that the target virtual machine has successfully completed creation and the IP address of the target virtual machine, so that the parameter configuration module configures the user-level environment parameters for the target virtual machine.
Step 103: and the parameter configuration module generates a user-defined configuration script which can be executed by an operating system of the target virtual machine according to the user-level environment parameters in the user-defined configuration file of the target virtual machine, and sends the user-defined configuration script to the target virtual machine so that the target virtual machine executes the user-defined configuration script.
Specifically, the parameter configuration module generates a custom configuration script executable by the operating system of the target virtual machine according to the user-level environment parameters in the custom configuration file of the target virtual machine generated by the parameter input module in step 101; and after receiving the successful creation message of the target virtual machine and the IP address of the target virtual machine, which are sent by the virtual machine creation module, the parameter configuration module sends the custom configuration script to the target virtual machine so that an operating system of the target virtual machine automatically executes the custom configuration script, and the target virtual machine completes the configuration of the user-level environment parameters.
Here, the custom configuration script may be a shell script; the parameter configuration module sends the custom configuration script to the target virtual machine, or the parameter configuration module sends the custom configuration script to the target virtual machine corresponding to the IP address sent by the virtual machine creation module by calling a shell tool.
The method of the present application is described in detail below with reference to specific examples.
A flowchart of a specific implementation of the virtual machine generation method according to the embodiment of the present invention is shown in fig. 2, and includes:
step 201: the parameter input module acquires a user-defined demand parameter of a target virtual machine input by a user;
specifically, the parameter input module obtains user-defined required parameters of the target virtual machine, such as the number of CPU cores, the size of memory, the size of disk space, the type of operating system, the name of host computer, the name of user, the language environment of user, the account and password to be created, the name of file system, the mount location of file system, and the like, which are input by the user through the web interface provided by the parameter input module.
Step 202: the parameter input module is used for auditing the user-defined requirement parameters of the target virtual machine input by a user;
specifically, the processing program of the parameter input module transfers the user-defined requirement parameter of the target virtual machine input by the user in step 201 to the administrator interface of the parameter input module in a form, and the administrator checks the validity of the user-defined requirement parameter of the target virtual machine input by the user through the administrator interface of the parameter input module according to the load condition of the existing system resource and the defined reference auditing standard, and then adds parameters such as an IP address and a DNS.
Step 203: the parameter input module sends the user-defined configuration file of the target virtual machine to the virtual machine creation module and the parameter configuration module;
specifically, the processing program of the parameter input module collects the customized demand parameters and the related information that have passed the examination in step 202, generates a customized configuration file of the target virtual machine, and sends the customized configuration file to the virtual machine creation module and the parameter configuration module.
Step 204: the virtual machine creating module creates a target virtual machine;
specifically, after receiving a custom configuration file sent by a parameter input module, a virtual machine creation module identifies system environment level parameters such as the number of CPU cores, the size of a memory, the size of a disk space and the like in the custom configuration file; and the virtual machine creating module calls an API (application programming interface) of the virtualization management software, and creates a target virtual machine by taking the identified system environment level parameters as input parameters of the virtualization management software.
Step 205: the parameter configuration module generates a custom configuration shell script;
specifically, after receiving a custom configuration file sent by a parameter input module, a parameter configuration module assigns user-level environment parameters such as a user name, a user language environment, an account number and a password to be created in the custom configuration file to corresponding system variables respectively, and substitutes the system variables into a predefined system command, so as to generate a custom configuration shell script which can be recognized and executed by an operating system of a target virtual machine.
Step 206: the virtual machine creation module sends a successful creation message of the target virtual machine and the IP address to the parameter configuration module;
specifically, after the target virtual machine is created, the virtual machine creation module sends a successful creation message of the target virtual machine and the IP address of the target virtual machine to the parameter configuration module.
Step 207: the parameter configuration module sends the custom configuration shell script to a target virtual machine established by the virtual machine establishing module;
specifically, after receiving a successful creation message of the target virtual machine and the IP address sent by the virtual machine creation module, the parameter configuration module invokes a shell tool (such as powerCLI), and sends the generated custom configuration shell script to the target virtual machine corresponding to the IP address, so that the operating system of the target virtual machine automatically executes the custom configuration shell script, thereby completing configuration of user-level environment parameters in the target virtual machine.
In order to implement the foregoing method, an embodiment of the present invention further provides a virtual machine generation system, as shown in fig. 3, where the system includes: the system comprises a parameter input module 11, a virtual machine creation module 12 and a parameter configuration module 13; wherein the content of the first and second substances,
the parameter input module 11 is configured to generate a custom configuration file of the target virtual machine according to a custom configuration requirement parameter of the target virtual machine input by a user;
here, the custom configuration requirements parameters include user-level environment parameters and system-level environment parameters.
The virtual machine creating module 12 is configured to create the target virtual machine according to the system-level environment parameters in the custom configuration file of the target virtual machine;
the parameter configuration module 13 is configured to generate a custom configuration script that is executable by an operating system of the target virtual machine according to the user-level environment parameters in the custom configuration file of the target virtual machine, and send the custom configuration script to the target virtual machine, so that the target virtual machine executes the custom configuration script.
The parameter input module 11 is specifically configured to: after a user inputs the user-defined configuration requirement parameters of the target virtual machine through the web interface provided by the parameter input module 11, the parameter input module 11 transfers the user-defined configuration requirement parameters of the target virtual machine input by the user to the administrator interface of the parameter input module 11 in a form; the administrator examines the validity of the user-defined configuration demand parameter of the target virtual machine input by the user according to the load condition of the existing system resource and the defined reference examination standard, for example, when the parameter input by the user contains the size of the applied disk resource and the size of the applied disk resource does not exceed the range of the existing disk resource, the parameter can be judged to be valid; then, adding system-level environment parameters such as an IP address and a DNS (domain name system) into the user-defined configuration requirement parameters of the target virtual machine input by the user by the administrator; the parameter input module 11 summarizes the finally obtained custom configuration required parameters, generates a custom configuration file of the target virtual machine, and sends the custom configuration file of the target virtual machine to the virtual machine creation module 12 and the parameter configuration module 13, respectively.
Here, the user inputs the user-defined configuration requirement parameters of the target virtual machine through the web interface provided by the parameter input module 11, which may include system-level environment parameters such as the number of CPU cores, the size of memory, the size of disk space, and the type of operating system, and may also include user-level environment parameters such as host name, user language environment, account number and password to be created, file system name, and file system mount location.
The virtual machine creating module 12 is specifically configured to: according to the customized configuration file of the target virtual machine generated by the parameter input module 11, system-level environment parameters in the customized configuration file of the target virtual machine are identified, and an API of virtualization management software is called to create the target virtual machine based on the system-level environment parameters.
Here, the virtual machine creating module 12 identifies system-level environment parameters such as the number of CPU cores, the memory size, the disk space size, and the IP address in the custom configuration file of the target virtual machine, assigns the identified system-level environment parameters to predefined variables to serve as input parameters of the virtualization management software, and then completes creating the target virtual machine by using the virtual machine creating function of the virtualization management software itself.
The virtual machine creating module 12 is further configured to send the target virtual machine creation success message and the IP address of the target virtual machine to the parameter configuration module 13, so that the parameter configuration module 13 sends the self-defined configuration script generated by itself to the target virtual machine.
Here, the virtual machine creation module 12 sends the target virtual machine creation success message and the IP address of the target virtual machine to the parameter configuration module 13 to notify that the target virtual machine has successfully completed creation and the IP address of the target virtual machine, so that the parameter configuration module 13 configures the user-level environment parameters for the target virtual machine.
The parameter configuration module 13 is specifically configured to: generating a user-defined configuration script executable by an operating system of the target virtual machine according to the user-level environment parameters in the user-defined configuration file of the target virtual machine generated by the parameter input module 11; after receiving the successful creation message of the target virtual machine and the IP address of the target virtual machine sent by the virtual machine creation module 12, the parameter configuration module 13 sends the custom configuration script to the target virtual machine, so that the operating system of the target virtual machine automatically executes the custom configuration script, thereby enabling the target virtual machine to complete configuration of the user-level environment parameters.
Here, the custom configuration script may be a shell script; the parameter configuration module 13 sends the custom configuration script to the target virtual machine, where the custom configuration script is sent to the target virtual machine corresponding to the IP address sent by the virtual machine creation module by calling a shell tool by the parameter configuration module.
In practical applications, the parameter input module 11, the virtual machine creation module 12, and the parameter configuration module 13 may be implemented by a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (FPGA), etc. located at the terminal.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A virtual machine generation method, the method comprising:
the parameter input module generates a custom configuration file of the target virtual machine according to a custom configuration demand parameter of the target virtual machine input by a user; the user-defined configuration requirement parameters comprise user-level environment parameters and system-level environment parameters;
the virtual machine creating module creates the target virtual machine according to the system level environment parameters in the user-defined configuration file of the target virtual machine;
and the parameter configuration module assigns the user-level environment parameters in the user-defined configuration file of the target virtual machine to corresponding system variables respectively, substitutes a predefined system command, generates a user-defined configuration script which can be identified and executed by an operating system of the target virtual machine, and sends the user-defined configuration script to the target virtual machine so that the target virtual machine executes the user-defined configuration script.
2. The method of claim 1, further comprising: and the parameter input module acquires and checks the user-defined configuration requirement parameters of the target virtual machine input by the user.
3. The method of claim 1, wherein the virtual machine creation module creates the target virtual machine according to system level environment parameters in a custom configuration file of the target virtual machine, comprising:
the virtual machine creating module identifies system-level environment parameters in the customized configuration file of the target virtual machine according to the customized configuration file of the target virtual machine generated by the parameter input module, and calls an Application Programming Interface (API) of virtualization management software to create the target virtual machine based on the system-level environment parameters.
4. The method according to any one of claims 1 to 3, wherein the customized configuration file of the target virtual machine comprises a protocol IP address and a domain name system DNS of interconnection between networks of the target virtual machine.
5. The method of claim 4, further comprising:
and the virtual machine creation module sends the successful creation message of the target virtual machine and the IP address of the target virtual machine to the parameter configuration module so that the parameter configuration module sends the self-defined configuration script generated by the parameter configuration module to the target virtual machine.
6. A virtual machine generation system, the system comprising: the system comprises a parameter input module, a virtual machine creation module and a parameter configuration module; wherein the content of the first and second substances,
the parameter input module is used for generating a custom configuration file of the target virtual machine according to a custom configuration demand parameter of the target virtual machine input by a user; the user-defined configuration requirement parameters comprise user-level environment parameters and system-level environment parameters;
the virtual machine creating module is used for creating the target virtual machine according to the system level environment parameters in the user-defined configuration file of the target virtual machine;
and the parameter configuration module is used for respectively assigning the user-level environment parameters in the user-defined configuration file of the target virtual machine to corresponding system variables, substituting a predefined system command to generate a user-defined configuration script which can be identified and executed by an operating system of the target virtual machine, and sending the user-defined configuration script to the target virtual machine so as to enable the target virtual machine to execute the user-defined configuration script.
7. The system of claim 6, wherein the parameter input module is further configured to obtain and review the user-entered custom configuration requirement parameters of the target virtual machine.
8. The system of claim 6, wherein the virtual machine creation module is specifically configured to:
according to the user-defined configuration file of the target virtual machine generated by the parameter input module, system-level environment parameters in the user-defined configuration file of the target virtual machine are identified, and an API (application programming interface) of virtualization management software is called to create the target virtual machine based on the system-level environment parameters.
9. The system according to any one of claims 6 to 8, wherein the customized configuration file of the target virtual machine comprises an IP address and a DNS of the target virtual machine.
10. The system according to claim 9, wherein the virtual machine creation module is further configured to send the target virtual machine creation success message and the IP address of the target virtual machine to the parameter configuration module, so that the parameter configuration module sends the self-defined configuration script generated by itself to the target virtual machine.
CN201610653833.7A 2016-08-10 2016-08-10 Virtual machine generation method and system Active CN107729117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610653833.7A CN107729117B (en) 2016-08-10 2016-08-10 Virtual machine generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610653833.7A CN107729117B (en) 2016-08-10 2016-08-10 Virtual machine generation method and system

Publications (2)

Publication Number Publication Date
CN107729117A CN107729117A (en) 2018-02-23
CN107729117B true CN107729117B (en) 2021-07-06

Family

ID=61199483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610653833.7A Active CN107729117B (en) 2016-08-10 2016-08-10 Virtual machine generation method and system

Country Status (1)

Country Link
CN (1) CN107729117B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762894A (en) * 2018-06-21 2018-11-06 郑州云海信息技术有限公司 A kind of virtual machine display methods and device
CN110362385A (en) * 2019-07-23 2019-10-22 天津华云软件有限公司 Virtual machine configuration creation method and device, virtual machine creation method and device
CN114090126A (en) * 2021-11-23 2022-02-25 浩云科技股份有限公司 Method and device for customizing system variable, terminal equipment and storage medium
CN117707704A (en) * 2023-12-20 2024-03-15 慧之安信息技术股份有限公司 Java virtual machine configuration method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092650A (en) * 2013-01-09 2013-05-08 华中科技大学 Virtual machine mirror image generating method and device based on software preinstallation in cloud environment
CN103902347A (en) * 2012-12-24 2014-07-02 中国电信股份有限公司 Deploying method and system of virtual machine system
CN104360892A (en) * 2014-10-21 2015-02-18 普华基础软件股份有限公司 System and method for creating virtual machine
CN104394011A (en) * 2014-11-11 2015-03-04 浪潮电子信息产业股份有限公司 Method for supporting server virtualization operation and maintenance through alarm information
CN105224441A (en) * 2015-09-17 2016-01-06 杭州华为数字技术有限公司 Virtual machine information harvester, method and virtual machine information maintaining method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9986061B2 (en) * 2014-06-03 2018-05-29 A10 Networks, Inc. Programming a data network device using user defined scripts

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902347A (en) * 2012-12-24 2014-07-02 中国电信股份有限公司 Deploying method and system of virtual machine system
CN103092650A (en) * 2013-01-09 2013-05-08 华中科技大学 Virtual machine mirror image generating method and device based on software preinstallation in cloud environment
CN104360892A (en) * 2014-10-21 2015-02-18 普华基础软件股份有限公司 System and method for creating virtual machine
CN104394011A (en) * 2014-11-11 2015-03-04 浪潮电子信息产业股份有限公司 Method for supporting server virtualization operation and maintenance through alarm information
CN105224441A (en) * 2015-09-17 2016-01-06 杭州华为数字技术有限公司 Virtual machine information harvester, method and virtual machine information maintaining method and system

Also Published As

Publication number Publication date
CN107729117A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
US10419289B2 (en) System and method for configuration management service
CN108965203B (en) Resource access method and server
CN107729117B (en) Virtual machine generation method and system
US7444621B2 (en) Method and system for providing a common operating system
US10901768B1 (en) Migrating servers from user networks to a user-selected type of hypervisor at a service provider network
JP2014514659A (en) Multi-node application deployment system
CN113347049B (en) Server cluster deployment method and device, computing equipment and storage medium
CN110058894B (en) Method, apparatus and computer program product for executing applications in a hybrid cloud
EP3848825A1 (en) Application client launch method, service server, and client device
JPWO2014171130A1 (en) Information processing system, deployment method, processing device, and deployment device
JP2008541549A (en) Device management system and set value setting method in the system
CN100465950C (en) Web browser command button for client support
CN113961463A (en) Application environment switching method and system, storage medium and electronic equipment
CN115208951B (en) Request processing method, request processing device, electronic equipment and computer readable storage medium
CN110928554A (en) Deployment method, device, equipment and storage medium
JP5462207B2 (en) Device management method and apparatus
CN104717312A (en) Method and device for determining network resource access interfaces
WO2021139261A1 (en) Application deployment method and device, and medium
JP6124603B2 (en) Information access system and method
CN115658221A (en) State detection method, service virtual machine, equipment and medium
KR100924076B1 (en) Internet application embodiment method independent of web browser and operating system
CN113987501A (en) Website access method and device, storage medium and electronic device
CN114095498A (en) Cluster environment deployment method, system, computer equipment and storage medium
CN110661852B (en) Service processing method and device in cloud environment
Cisco Updating the Mainframe Application Software

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