[go: up one dir, main page]

WO2018166108A1 - 一种虚拟机软件部署方法、终端、设备以及计算机可读存储介质 - Google Patents

一种虚拟机软件部署方法、终端、设备以及计算机可读存储介质 Download PDF

Info

Publication number
WO2018166108A1
WO2018166108A1 PCT/CN2017/090921 CN2017090921W WO2018166108A1 WO 2018166108 A1 WO2018166108 A1 WO 2018166108A1 CN 2017090921 W CN2017090921 W CN 2017090921W WO 2018166108 A1 WO2018166108 A1 WO 2018166108A1
Authority
WO
WIPO (PCT)
Prior art keywords
software
script
server
virtual machine
information
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.)
Ceased
Application number
PCT/CN2017/090921
Other languages
English (en)
French (fr)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2018166108A1 publication Critical patent/WO2018166108A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/45575Starting, stopping, suspending or resuming virtual machine instances

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a virtual machine software deployment method, a terminal, a device, and a computer readable storage medium.
  • the software installation in the cloud environment is basically implemented by a template or a push tool. Since the template is only suitable for static installation, the push tool needs to install a corresponding client and needs manual triggering. Therefore, the software installation methods in the above two existing cloud environments are either narrow in application scope or complicated in the installation process, and the user experience is not good.
  • the embodiment of the invention provides a virtual machine software deployment method, a terminal, a device and a computer readable storage medium, which can implement automatic installation of software in a cloud environment, and provide a better service for the user.
  • an embodiment of the present invention provides a virtual machine software deployment method, where the method includes:
  • creation instruction creating a virtual machine and uploading the second software script to a directory of a virtual router corresponding to the virtual machine
  • the second software script is split to generate each first software script
  • the corresponding software is installed according to the script information of the software in the first software script generated after the split and the address information of the server.
  • the second software script includes a creation script; after the virtual machine is created, the creation script is called and the software is installed.
  • the second software script further includes a boot script and a shutdown script; if the virtual machine is powered on or powered off, the boot script or the shutdown script is invoked and the software is installed.
  • the second software script includes at least one of a creation script, a startup script, and a shutdown script.
  • the method further includes:
  • the area includes a plurality of servers
  • the server and the software establish a mapping relationship, wherein the mapping relationship is: the area is associated with the server, and the server is associated with the software;
  • the server is selected according to the mapping relationship according to the area and software selected by the user.
  • an embodiment of the present invention provides a terminal, where the terminal includes:
  • a first selecting unit configured to select a server and software to be deployed if receiving a user's selection instruction
  • a first obtaining unit configured to acquire script information of each software and address information of a server corresponding to the software, and generate a first software script
  • a second obtaining unit configured to acquire all the first software scripts and generate a second software script
  • a creating unit if the creation instruction is received, creating a virtual machine and uploading the second software script to a directory of a virtual router corresponding to the virtual machine;
  • a splitting unit configured to split the second software script to generate each first software script after the virtual machine is created
  • the installation unit is configured to install the corresponding software according to the script information of the software in the first software script generated after the splitting and the address information of the server.
  • the second software script includes a creation script; after the virtual machine is created, the creation script is called and the software is installed.
  • the second software script further includes a boot script and a shutdown script; if the virtual machine is powered on or powered off, the boot script or the shutdown script is invoked and the software is installed.
  • the second software script includes at least one of a creation script, a startup script, and a shutdown script.
  • the terminal further includes:
  • a display unit configured to display the area and the deployed software, where the area includes a plurality of servers, and the server and the software establish a mapping relationship, wherein the mapping relationship is: the area is associated with the server, and the server is associated with the software;
  • a second selecting unit configured to select the server according to the mapping relationship according to the area and software selected by the user.
  • the embodiment of the present invention further provides a virtual machine software deployment device, where the device includes: a memory and a processor;
  • a memory for storing a program that implements virtual machine software deployment
  • a processor configured to run the program stored in the memory to implement virtual machine software deployment, to perform the following operations:
  • creation instruction creating a virtual machine and uploading the second software script to a directory of a virtual router corresponding to the virtual machine
  • the second software script is split to generate each first software script
  • the corresponding software is installed according to the script information of the software in the first software script generated after the split and the address information of the server.
  • the second software script includes a creation script
  • the creation script is invoked and the software is installed.
  • the second software script further includes a boot script and a shutdown script
  • the boot script or shutdown script is invoked and the software is installed.
  • the second software script includes at least one of a creation script, a startup script, and a shutdown script.
  • processor further performs the following operations:
  • the area includes a plurality of servers
  • the server and the software establish a mapping relationship, wherein the mapping relationship is: the area is associated with the server, and the server is associated with the software;
  • the server is selected according to the mapping relationship according to the area and software selected by the user.
  • an embodiment of the present invention further provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors, To achieve the following steps:
  • creation instruction creating a virtual machine and uploading the second software script to a directory of a virtual router corresponding to the virtual machine
  • the second software script is split to generate each first software script
  • the corresponding software is installed according to the script information of the software in the first software script generated after the split and the address information of the server.
  • the second software script includes a creation script
  • the creation script is invoked and the software is installed.
  • the second software script further includes a boot script and a shutdown script
  • the boot script or shutdown script is invoked and the software is installed.
  • the second software script includes at least one of a creation script, a startup script, and a shutdown script.
  • steps further include:
  • the area includes a plurality of servers
  • the server and the software establish a mapping relationship, wherein the mapping relationship is: the area is associated with the server, and the server is associated with the software;
  • the server is selected according to the mapping relationship according to the area and software selected by the user.
  • the present invention has the following beneficial effects: the present invention generates a first software script by acquiring script information of each software and address information of a server corresponding to the software, and generates a first The second software script uploads the second software script to the directory of the virtual router corresponding to the virtual machine when the virtual machine is created, and after the virtual machine is created, splits the second software script to generate each first software script.
  • the software corresponding to the installation can be installed, thereby realizing the automatic installation of the software in the cloud environment, wherein the installation process of the automation software is simple and flexible.
  • FIG. 1 is a schematic flowchart of a virtual machine software deployment method according to Embodiment 1 of the present invention.
  • FIG. 2 is another schematic flowchart of a virtual machine software deployment method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic block diagram of a terminal according to an embodiment of the present invention.
  • FIG. 4 is another schematic block diagram of a terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a virtual machine software deployment device according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a virtual machine software deployment method according to Embodiment 1 of the present invention. This method can be run on desktops, laptops, tablets, or other smart devices with virtual machine capabilities that run virtual machine functions. As shown in the figure, the steps of the method include S101 ⁇ S106.
  • the server may include a file server, a database server, and an application server, where a plurality of softwares are stored, and the user may select a required server and corresponding to the server.
  • Software which is used to implement user software deployment on virtual machines.
  • the software may be system software, and the system software provides the most basic functions for computer use.
  • the system software may be divided into an operating system and supporting software, wherein the operating system is the most basic software, and the operating system is Linux, Mac. OS, Unix, Windows, etc., supporting software is software that supports the development and maintenance of various software in the computer, supporting software such as an environmental database, various interface software, and a series of basic tools; the software can also be application software.
  • Application software is developed by developers for a specific purpose, such as Office, WPS, AutoCAD, Photoshop, etc.
  • the script information of the software is in one-to-one correspondence with the software, and the corresponding software is determined by the script information of the software, where the address information of the server is used to provide an address stored in the server by the software.
  • the download and installation address of the corresponding software can be determined by the address information of the server. Therefore, the corresponding software can be found and downloaded from the server through the script information of the software and the address information of the server corresponding to the software.
  • the first software script is generated by using the script information of the software and the address information of the server, for example, the script information of the software and the address information of the server are recorded into a script file, and the The script file is used as a first software script; the script information corresponding to each software and the address information of the software in the server are stored in the first software script, and the download information of each software can be downloaded by generating the first software script. Ordered storage prevents loss of software download and installation information and improves the efficiency of software download and installation.
  • all first software scripts are acquired and a second software script is generated, and the second software script may include one or more first software scripts, where the second software scripts are stored.
  • the first software script corresponding to each software can improve the data transmission efficiency by generating the second software script.
  • the virtual router of the virtual machine is set, and the generated second software script is uploaded to the directory of the virtual router of the virtual machine, so that the virtual machine can obtain the virtual machine.
  • the second software script completes the installation and configuration of the software.
  • the uploading the second software script to the directory of the virtual router of the virtual machine means that in the case of virtual machine networking, the user can select a corresponding one in the directory of the virtual router of the virtual machine.
  • the server selects a corresponding second software script in the server, selects the second software script, and uploads the second software script to a directory of the virtual machine's virtual router.
  • the second software script uploaded into the virtual router directory of the virtual machine is split and each first software script is generated, because the second software script includes one or more And a first software script, wherein the second software script is a split unit, and one or more first software scripts in the second software script are split and each first software script is generated.
  • the second software script includes a creation script. If the second software script includes a creation script, after the virtual machine is created, the creation script is invoked and the software is installed, specifically, The creation script is split to generate each first software script, and the software in the server is installed by the script information of the software in the first software script and the address information of the server; the second software script further includes booting a script and a shutdown script, if the virtual machine is powered on or off, the boot script or the shutdown script is invoked and the software is installed, specifically, the boot script or the shutdown script is split to generate each first software. a script, installing, by the script information of the software in the first software script and the address information of the server, the software in the server; more specifically, the second software script includes at least one of a creation script, a startup script, and a shutdown script One.
  • S106 Install the corresponding software according to the script information of the software in the first software script generated after the splitting and the address information of the server.
  • the corresponding software may be determined by using the script information of the software in the first software script, and the download and installation address of the corresponding software may be determined by using the address information of the server, and therefore, the software is The script information and the address information of the server corresponding to the software can be found from the server and downloaded and installed corresponding software.
  • the embodiment of the present invention generates the first software script by acquiring the script information of each software and the address information of the server corresponding to the software, and generates the first software script according to the first software script.
  • the second software script uploads the second software script to the directory of the virtual router corresponding to the virtual machine when the virtual machine is created, and after the virtual machine is created, splits the second software script to generate each first software.
  • the script is used to install the corresponding software, so that the software can be automatically installed in the cloud environment, wherein the automation software installation process is simple and flexible.
  • FIG. 2 is a schematic flowchart of a virtual machine software deployment method according to Embodiment 2 of the present invention. This method can be run on desktops, laptops, tablets, or other smart devices with virtual machine capabilities that run virtual machine functions. As shown in the figure, the steps of the method include S201 ⁇ S208.
  • the server may include a file server, a database server, and an application server, where a plurality of softwares are stored, and the user may select a required server and corresponding to the server.
  • Software which is used to implement user software deployment on virtual machines.
  • the software may be system software, and the system software provides the most basic functions for computer use.
  • the system software may be divided into an operating system and supporting software, wherein the operating system is the most basic software, and the operating system is Linux, Mac. OS, Unix, Windows, etc., supporting software is software that supports the development and maintenance of various software in the computer, supporting software such as an environmental database, various interface software, and a series of basic tools; the software can also be application software.
  • Application software is developed by developers for a specific purpose, such as Office, WPS, AutoCAD, Photoshop, etc.
  • the script information of the software is in one-to-one correspondence with the software, and the corresponding software is determined by the script information of the software, where the address information of the server is used to provide an address stored in the service by the software.
  • the download and installation address of the corresponding software can be determined by the address information of the server. Therefore, the corresponding software can be found and downloaded from the server through the script information of the software and the address information of the server corresponding to the software.
  • the first software script is generated by using the script information of the software and the address information of the server, for example, the script information of the software and the address information of the server are recorded into a script file, and the The script file is used as a first software script; the script information corresponding to each software and the address information of the software in the server are stored in the first software script, and the download information of each software can be downloaded by generating the first software script. Ordered storage prevents loss of software download and installation information and improves the efficiency of software download and installation.
  • all first software scripts are acquired and a second software script is generated, and the second software script may include one or more first software scripts, where the second software scripts are stored.
  • the first software script corresponding to each software can improve the data transmission efficiency by generating the second software script.
  • the virtual router of the virtual machine is set, and the generated second software script is uploaded to the directory of the virtual router of the virtual machine, so that the virtual machine can obtain the virtual machine.
  • the second software script completes the installation and configuration of the software.
  • the uploading the second software script to the directory of the virtual router of the virtual machine means that in the case of virtual machine networking, the user can select a corresponding one in the directory of the virtual router of the virtual machine.
  • the server selects a corresponding second software script in the server, selects the second software script, and uploads the second software script to a directory of the virtual machine's virtual router.
  • the second software script uploaded into the virtual router directory of the virtual machine is split and each first software script is generated, because the second software script includes one or more And a first software script, wherein the second software script is a split unit, and one or more first software scripts in the second software script are split and each first software script is generated.
  • the second software script includes a creation script. If the second software script includes a creation script, after the virtual machine is created, the creation script is invoked and the software is installed, specifically, The creation script is split to generate each first software script, and the software in the server is installed by the script information of the software in the first software script and the address information of the server; the second software script further includes booting a script and a shutdown script, if the virtual machine is powered on or off, the boot script or the shutdown script is invoked and the software is installed, specifically, the boot script or the shutdown script is split to generate each first software. a script, installing, by the script information of the software in the first software script and the address information of the server, the software in the server; more specifically, the second software script includes at least one of a creation script, a startup script, and a shutdown script One.
  • the corresponding software may be determined by using the script information of the software in the first software script, and the download and installation address of the corresponding software may be determined by using the address information of the server, and therefore, the software is The script information and the address information of the server corresponding to the software can be found from the server and downloaded and installed corresponding software.
  • S207 Display area and deployed software, where the area includes a plurality of servers, and the server and the software establish a mapping relationship, wherein the mapping relationship is: the area is associated with a server, and the server is associated with the software.
  • the area refers to a distribution area of the server, and each area includes a plurality of servers, and the distributed area and the deployed software are displayed in the virtual machine, and the distribution may be displayed according to the virtual machine.
  • the area and the software that has been deployed determine the server corresponding to the software. More specifically, the server and the software establish a mapping relationship, where the area is associated with the server, the server is associated with the software, and the mapping between the area and the server and the mapping between the server and the software may be performed. Relationship, determining the server corresponding to the software.
  • the server is selected according to the mapping relationship according to the area and software selected by the user, thereby implementing the passing area and the deployed in the virtual machine.
  • the software determines the corresponding server, preventing the server information of the software deployed in the virtual machine from being lost due to the loss of the corresponding server.
  • the embodiment of the present invention further provides a terminal, where the terminal 100 includes: a first selection unit 101, a first obtaining unit 102, a second obtaining unit 103, and a creating unit. 104.
  • the first selection unit 101 is configured to select a server and software to be deployed if a user's selection instruction is received.
  • the server may include a file server, a database server, and an application server, where a plurality of softwares are stored, and the user may select a required server and corresponding to the server.
  • Software which is used to implement user software deployment on virtual machines.
  • the software may be system software, and the system software provides the most basic functions for computer use.
  • the system software may be divided into an operating system and supporting software, wherein the operating system is the most basic software, and the operating system is Linux, Mac.
  • supporting software is software that supports the development and maintenance of various software in the computer, supporting software such as an environmental database, various interface software, and a series of basic tools; the software can also be application software.
  • Application software is developed by developers for a specific purpose, such as Office, WPS, AutoCAD, Photoshop, etc.
  • the first obtaining unit 102 is configured to acquire script information of each software and address information of a server corresponding to the software, and generate a first software script.
  • the script information of the software is in one-to-one correspondence with the software, and the corresponding software is determined by the script information of the software, where the address information of the server is used to provide an address stored in the service by the software.
  • the download and installation address of the corresponding software can be determined by the address information of the server. Therefore, the corresponding software can be found and downloaded from the server through the script information of the software and the address information of the server corresponding to the software.
  • the first software script is generated by using the script information of the software and the address information of the server, for example, the script information of the software and the address information of the server are recorded into a script file, and the The script file is used as a first software script; the script information corresponding to each software and the address information of the software in the server are stored in the first software script, and the download information of each software can be downloaded by generating the first software script. Ordered storage prevents loss of software download and installation information and improves the efficiency of software download and installation.
  • the second obtaining unit 103 is configured to acquire all the first software scripts and generate a second software script.
  • all first software scripts are acquired and a second software script is generated, and the second software script may include one or more first software scripts, where the second software scripts are stored.
  • the first software script corresponding to each software can improve the data transmission efficiency by generating the second software script.
  • the creating unit 104 is configured to: if a creation instruction is received, create a virtual machine and upload the second software script to a directory of a virtual router corresponding to the virtual machine. Specifically, in the embodiment of the present invention, after the virtual machine is created, the virtual router of the virtual machine is set, and the generated second software script is uploaded to the directory of the virtual router of the virtual machine, so that the virtual machine can obtain the virtual machine. The second software script completes the installation and configuration of the software.
  • the uploading the second software script to the directory of the virtual router of the virtual machine means that in the case of virtual machine networking, the user can select a corresponding one in the directory of the virtual router of the virtual machine.
  • the server selects a corresponding second software script in the server, selects the second software script, and uploads the second software script to a directory of the virtual machine's virtual router.
  • the splitting unit 105 is configured to split the second software script to generate each first software script after the virtual machine is created. Specifically, in the embodiment of the present invention, the second software script uploaded into the virtual router directory of the virtual machine is split and each first software script is generated, because the second software script includes one or more And a first software script, wherein the second software script is a split unit, and one or more first software scripts in the second software script are split and each first software script is generated.
  • the second software script includes a creation script. If the second software script includes a creation script, after the virtual machine is created, the creation script is invoked and the software is installed, specifically, The creation script is split to generate each first software script, and the software in the server is installed by the script information of the software in the first software script and the address information of the server; the second software script further includes booting a script and a shutdown script, if the virtual machine is powered on or off, the boot script or the shutdown script is invoked and the software is installed, specifically, the boot script or the shutdown script is split to generate each first software. a script, installing, by the script information of the software in the first software script and the address information of the server, the software in the server; more specifically, the second software script includes at least one of a creation script, a startup script, and a shutdown script One.
  • the installation unit 106 is configured to install corresponding software according to the script information of the software in the first software script generated after the splitting and the address information of the server.
  • the corresponding software may be determined by using the script information of the software in the first software script, and the download and installation address of the corresponding software may be determined by using the address information of the server, and therefore, the software is The script information and the address information of the server corresponding to the software can be found from the server and downloaded and installed corresponding software.
  • the script information of each software and the address information of the server corresponding to the software are acquired, and the first software script is generated, and the second software script is generated according to the first software script.
  • the second software script is uploaded to the directory of the virtual router corresponding to the virtual machine, and after the virtual machine is created, the second software script is split to generate each first software script for installation.
  • the corresponding software can realize the automatic installation of software in the cloud environment, wherein the installation process of the automation software is simple and flexible.
  • the embodiment of the present invention further provides a terminal, where the terminal 200 includes: a first selection unit 201, a first acquisition unit 202, a second acquisition unit 203, and a creation unit. 204, the splitting unit 205, the mounting unit 206, the display unit 207, and the second selecting unit 208.
  • the first selection unit 201 is configured to select a server and software to be deployed if a user's selection instruction is received.
  • the server may include a file server, a database server, and an application server, where a plurality of softwares are stored, and the user may select a required server and corresponding to the server.
  • Software which is used to implement user software deployment on virtual machines.
  • the software may be system software, and the system software provides the most basic functions for computer use.
  • the system software may be divided into an operating system and supporting software, wherein the operating system is the most basic software, and the operating system is Linux, Mac.
  • supporting software is software that supports the development and maintenance of various software in the computer, supporting software such as an environmental database, various interface software, and a series of basic tools; the software can also be application software.
  • Application software is developed by developers for a specific purpose, such as Office, WPS, AutoCAD, Photoshop, etc.
  • the first obtaining unit 202 is configured to acquire script information of each software and address information of a server corresponding to the software, and generate a first software script.
  • the script information of the software is in one-to-one correspondence with the software, and the corresponding software is determined by the script information of the software, where the address information of the server is used to provide an address stored in the service by the software.
  • the download and installation address of the corresponding software can be determined by the address information of the server. Therefore, the corresponding software can be found and downloaded from the server through the script information of the software and the address information of the server corresponding to the software.
  • the first software script is generated by using the script information of the software and the address information of the server, for example, the script information of the software and the address information of the server are recorded into a script file, and the The script file is used as a first software script; the script information corresponding to each software and the address information of the software in the server are stored in the first software script, and the download information of each software can be downloaded by generating the first software script. Ordered storage prevents loss of software download and installation information and improves the efficiency of software download and installation.
  • the second obtaining unit 203 is configured to acquire all the first software scripts and generate a second software script.
  • all first software scripts are acquired and a second software script is generated, and the second software script may include one or more first software scripts, where the second software scripts are stored.
  • the first software script corresponding to each software can improve the data transmission efficiency by generating the second software script.
  • the creating unit 204 is configured to: if a creation instruction is received, create a virtual machine and upload the second software script to a directory of a virtual router corresponding to the virtual machine. Specifically, in the embodiment of the present invention, after the virtual machine is created, the virtual router of the virtual machine is set, and the generated second software script is uploaded to the directory of the virtual router of the virtual machine, so that the virtual machine can obtain the virtual machine. The second software script completes the installation and configuration of the software.
  • the uploading the second software script to the directory of the virtual router of the virtual machine means that in the case of virtual machine networking, the user can select a corresponding one in the directory of the virtual router of the virtual machine.
  • the server selects a corresponding second software script in the server, selects the second software script, and uploads the second software script to a directory of the virtual machine's virtual router.
  • the splitting unit 205 is configured to split the second software script to generate each first software script after the virtual machine is created. Specifically, in the embodiment of the present invention, the second software script uploaded into the virtual router directory of the virtual machine is split and each first software script is generated, because the second software script includes one or more And a first software script, wherein the second software script is a split unit, and one or more first software scripts in the second software script are split and each first software script is generated.
  • the second software script includes a creation script. If the second software script includes a creation script, after the virtual machine is created, the creation script is invoked and the software is installed, specifically, The creation script is split to generate each first software script, and the software in the server is installed by the script information of the software in the first software script and the address information of the server; the second software script further includes booting a script and a shutdown script, if the virtual machine is powered on or off, the boot script or the shutdown script is invoked and the software is installed, specifically, the boot script or the shutdown script is split to generate each first software. a script, installing, by the script information of the software in the first software script and the address information of the server, the software in the server; more specifically, the second software script includes at least one of a creation script, a startup script, and a shutdown script One.
  • the installation unit 206 is configured to install corresponding software according to the script information of the software in the first software script generated after the splitting and the address information of the server.
  • the corresponding software may be determined by using the script information of the software in the first software script, and the download and installation address of the corresponding software may be determined by using the address information of the server, and therefore, the software is The script information and the address information of the server corresponding to the software can be found from the server and downloaded and installed corresponding software.
  • the display unit 207 is configured to display the area and the deployed software, where the area includes a plurality of servers, and the server and the software establish a mapping relationship, where the mapping relationship is: the area is associated with the server, and the server is associated with the software. .
  • the second selecting unit 208 is configured to select the server according to the mapping relationship according to the area and software selected by the user.
  • the area refers to a distribution area of the server, and each area includes a plurality of servers, and the distributed area and the deployed software are displayed in the virtual machine, and the distribution may be displayed according to the virtual machine.
  • the area and the software that has been deployed determine the server corresponding to the software. More specifically, the server and the software establish a mapping relationship, where the area is associated with the server, the server is associated with the software, and the mapping between the area and the server and the mapping between the server and the software may be performed. Relationship, determining the server corresponding to the software.
  • the server is selected according to the mapping relationship according to the area and software selected by the user, thereby implementing the passing area and the deployed in the virtual machine.
  • the software determines the corresponding server, preventing the server information of the software deployed in the virtual machine from being lost due to the loss of the corresponding server.
  • FIG. 5 is a schematic structural diagram of a virtual machine software deployment device according to the present invention.
  • the device 300 can include an input device 301, an output device 302, a transceiver 303, a memory 304, and a processor 305, where:
  • the input device 301 is configured to receive input data of an external access control device.
  • the input device 301 of the embodiment of the present invention may include a keyboard, a mouse, a photoelectric input device, and a sound input.
  • the output device 302 is configured to output output data of the access control device to the outside.
  • the output device 302 is configured to output output data of the access control device to the outside.
  • the output device 302 described in the embodiments of the present invention may include a display, a speaker, a printer, and the like.
  • the transceiver device 303 is configured to send data to or receive data from other devices through a communication link.
  • the transceiver 303 of the embodiment of the present invention may include a transceiver device such as a radio frequency antenna.
  • the memory 304 is configured to store program data with various functions.
  • the data stored by the memory 304 in the embodiment of the present invention includes program data that can be called and executed.
  • the memory 304 of the embodiment of the present invention may be a system memory such as a volatile memory (such as RAM), a non-volatile memory (such as a ROM, a flash memory, etc.), or a combination of the two.
  • the memory 304 of the embodiment of the present invention may also be an external memory outside the system, such as a magnetic disk, an optical disk, a magnetic tape, or the like.
  • the processor 305 is configured to run program data stored in the memory 304 to perform the following operations:
  • creation instruction creating a virtual machine and uploading the second software script to a directory of a virtual router corresponding to the virtual machine
  • the second software script is split to generate each first software script
  • the corresponding software is installed according to the script information of the software in the first software script generated after the split and the address information of the server.
  • processor 305 also performs the following operations:
  • the area includes a plurality of servers
  • the server and the software establish a mapping relationship, wherein the mapping relationship is: the area is associated with the server, and the server is associated with the software;
  • the server is selected according to the mapping relationship according to the area and software selected by the user.
  • the second software script includes a creation script; after the virtual machine is created, the creation script is called and the software is installed.
  • the second software script further includes a boot script and a shutdown script; if the virtual machine is powered on or powered off, the boot script or the shutdown script is invoked and the software is installed.
  • the second software script includes at least one of a creation script, a startup script, and a shutdown script.
  • the embodiment of the virtual machine software deployment device shown in FIG. 5 does not constitute a limitation on the specific configuration of the virtual machine software deployment device.
  • the virtual machine software deployment device may include a comparison diagram. Show more or fewer parts, or combine some parts, or different parts.
  • the virtual machine software deployment device may include only the memory and the processor. In such an embodiment, the structure and function of the memory and the processor are the same as those of the embodiment shown in FIG. 5, and details are not described herein again. .
  • the present invention also provides a computer readable storage medium having stored one or more programs, the one or more programs being executable by one or more processors to implement the following steps:
  • creation instruction creating a virtual machine and uploading the second software script to a directory of a virtual router corresponding to the virtual machine
  • the second software script is split to generate each first software script
  • the corresponding software is installed according to the script information of the software in the first software script generated after the split and the address information of the server.
  • the second software script includes a creation script
  • the creation script is invoked and the software is installed.
  • the second software script further includes a boot script and a shutdown script
  • the boot script or shutdown script is invoked and the software is installed.
  • the second software script includes at least one of a creation script, a startup script, and a shutdown script.
  • steps further include:
  • the area includes a plurality of servers
  • the server and the software establish a mapping relationship, wherein the mapping relationship is: the area is associated with the server, and the server is associated with the software;
  • the server is selected according to the mapping relationship according to the area and software selected by the user.
  • the foregoing storage medium of the present invention includes: a magnetic disk, an optical disk, and a read-only storage memory (Read-Only) Memory, ROM) or random access memory (RAM), etc., which can store various program codes.
  • ROM read-only storage memory
  • RAM random access memory
  • the units in all embodiments of the present invention may be implemented by a general-purpose integrated circuit such as a CPU (Central Processing) Unit, central processing unit, or through ASIC (Application Specific Integrated circuit
  • the units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.

Landscapes

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

Abstract

一种虚拟机软件部署方法、终端、设备以及计算机可读存储介质。其中,所述方法包括:若接收到用户的选择指令,选择服务器和需要部署的软件(S101);获取每个软件的脚本信息和与所述相对应的服务器的地址信息并生成第一软件脚本(S102);获取所有第一软件脚本并生成第二软件脚本(S103);若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中(S104);创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本(S105);根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件(S106)。该方法实现云环境下的软件自动化安装,其中,该自动化软件安装过程简单、灵活。

Description

一种虚拟机软件部署方法、终端、设备以及计算机可读存储介质
技术领域
本发明涉及计算机技术领域,尤其涉及一种虚拟机软件部署方法、终端、设备以及计算机可读存储介质。
背景技术
目前,云环境下的软件安装基本上都是通过模板或推送工具来实现的,由于模板只适合静态安装,而推送工具则需要安装相对应的客户端且需要人工触发才能够实现。因此,以上两种现有云环境下的软件安装方法要么应用范围过窄、要么安装过程较复杂,用户体验不佳。
发明内容
本发明实施例提供一种虚拟机软件部署方法、终端、设备以及计算机可读存储介质,可实现云环境下的软件自动化安装,为用户提供体验更好的服务。
第一方面,本发明实施例提供了一种虚拟机软件部署方法,该方法包括:
若接收到用户的选择指令,选择服务器和需要部署的软件;
获取每个软件的脚本信息和与所述相对应的服务器的地址信息并生成第一软件脚本;
获取所有第一软件脚本并生成第二软件脚本;
若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中;
创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本;
根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
进一步地,所述第二软件脚本包括创建脚本;在创建所述虚拟机后,所述创建脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本还包括开机脚本和关机脚本;若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
进一步地,所述方法还包括:
显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联;
根据用户选择的区域和软件,按照所述映射关系选择所述服务器。
第二方面,本发明实施例提供了一种终端,该终端包括:
第一选择单元,用于若接收到用户的选择指令,选择服务器和需要部署的软件;
第一获取单元,用于获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本;
第二获取单元,用于获取所有第一软件脚本并生成第二软件脚本;
创建单元,用于若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中;
拆分单元,用于创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本;
安装单元,用于根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
进一步地,所述第二软件脚本包括创建脚本;在创建所述虚拟机后,所述创建脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本还包括开机脚本和关机脚本;若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
进一步地,所述终端还包括:
显示单元,用于显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联;
第二选择单元,用于根据用户选择的区域和软件,按照所述映射关系选择所述服务器。
第三方面,本发明实施例还提供了一种虚拟机软件部署设备,所述设备包括:存储器以及处理器;
存储器,用于存储实现虚拟机软件部署的程序;
处理器,用于运行所述存储器中存储实现虚拟机软件部署的程序,以执行如下操作:
若接收到用户的选择指令,选择服务器和需要部署的软件;
获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本;
获取所有第一软件脚本并生成第二软件脚本;
若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中;
创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本;
根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
进一步地,所述第二软件脚本包括创建脚本;
在创建所述虚拟机后,所述创建脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本还包括开机脚本和关机脚本;
若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
进一步地,所述处理器还执行如下操作:
显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联;
根据用户选择的区域和软件,按照所述映射关系选择所述服务器。
第四方面,本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器执行,以实现以下步骤:
若接收到用户的选择指令,选择服务器和需要部署的软件;
获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本;
获取所有第一软件脚本并生成第二软件脚本;
若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中;
创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本;
根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
进一步地,所述第二软件脚本包括创建脚本;
在创建所述虚拟机后,所述创建脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本还包括开机脚本和关机脚本;
若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
进一步地,所述步骤还包括:
显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联;
根据用户选择的区域和软件,按照所述映射关系选择所述服务器。
综上所述,本发明具有以下有益效果:本发明通过获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本,并根据第一软件脚本并生成第二软件脚本,在创建虚拟机时,将第二软件脚本上传到与虚拟机对应的虚拟路由器的目录中,在创建虚拟机后,将第二软件脚本进行拆分以生成每个第一软件脚本以进行安装相对应的软件,从而可以实现云环境下的软件自动化安装,其中,该自动化软件安装过程简单、灵活。
附图说明
为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例一提供的一种虚拟机软件部署方法的示意流程图。
图2是本发明实施例二提供的一种虚拟机软件部署方法的另一示意流程图。
图3是本发明实施例提供的一种终端的示意性框图。
图4是本发明实施例提供的一种终端的另一示意性框图。
图5是本发明实施例提供的一种虚拟机软件部署设备的结构组成示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳
动前提下所获得的所有其他实施例,都属于本发明保护的范围。
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和 “包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使
用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。
请参阅图1,图1是本发明实施例一提供的一种虚拟机软件部署方法的示意流程图。该方法可以运行在具有运行虚拟机功能的台式电脑、笔记本电脑、平板电脑或者其它具有运行虚拟机功能的智能设备中。如图中所示,该方法的步骤包括S101~S106。
S101,若接收到用户的选择指令,选择服务器和需要部署的软件。
具体的,在本发明实施例中,所述服务器可以包括文件服务器、数据库服务器和应用程序服务器,在所述服务器上存储有多种软件,用户可以选择所需的服务器以及与该服务器相对应的软件,该软件用于实现用户在虚拟机上的软件部署。所述软件可以是系统软件,系统软件为计算机使用提供最基本的功能,系统软件可分为操作系统和支撑软件,其中操作系统是最基本的软件,操作系统如Linux、Mac OS、Unix、Windows等,支撑软件是支撑计算机中各种软件的开发与维护的软件,支撑软件如环境数据库、各种接口软件和一系列的基本工具等;所述软件还可以是应用软件,应用软件是为了某种特定的用途而被开发者开发可供使用的软件,应用软件如Office、WPS、AutoCAD、Photoshop等。
S102,获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本。
具体的,在本发明实施例中,所述软件的脚本信息与软件一一对应,通过软件的脚本信息可以确定相对应的软件,所述服务器的地址信息用于提供软件存储在服务器中的地址,通过服务器的地址信息可以确定相对应的软件的下载安装地址,因此,通过所述软件的脚本信息和所述软件相对应的服务器的地址信息可以从服务器中找到并下载安装相对应的软件。
需要说明的是,将所述软件的脚本信息以及所述服务器的地址信息生成第一软件脚本,例如,将所述软件的脚本信息以及所述服务器的地址信息记录至一个脚本文件中,将该脚本文件作为第一软件脚本;在该第一软件脚本中存储着每个软件所对应的脚本信息以及该软件在服务器中的地址信息,通过生成第一软件脚本能够使每个软件的下载安装信息有序的存储,可以防止软件下载安装信息的丢失,并且提高软件下载安装的效率。
S103,获取所有第一软件脚本并生成第二软件脚本。
具体的,在本发明实施例中,获取所有第一软件脚本并生成第二软件脚本,所述第二软件脚本中可以包括一个或者多个第一软件脚本,在所述第二软件脚本中存储着每个软件所对应的第一软件脚本,通过生成第二软件脚本可以提高数据的传输效率。
S104,若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中。
具体的,在本发明实施例中,在创建虚拟机后,设置虚拟机的虚拟路由器,并将生成的第二软件脚本上传到所述虚拟机的虚拟路由器的目录中,以方便虚拟机获取该第二软件脚本以完成软件的安装与配置。
需要说明的是,所述将第二软件脚本上传到所述虚拟机的虚拟路由器的目录,指的是在虚拟机联网的情况下,用户可以在虚拟机的虚拟路由器的目录中选择相对应的服务器,在服务器中选择相对应的第二软件脚本,选择第二软件脚本并将第二软件脚本上传至虚拟机的虚拟路由器的目录中。
S105,创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本。
具体的,在本发明实施例中,将上传到所述虚拟机的虚拟路由器目录中的第二软件脚本进行拆分并生成每个第一软件脚本,由于所述第二软件脚本包括一个或者多个第一软件脚本,所述第二软件脚本以一个第一软件脚本为拆分单元,将第二软件脚本中的一个或者多个第一软件脚本拆分并生成每个第一软件脚本。
其中,所述第二软件脚本包括创建脚本,如果所述第二软件脚本包括创建脚本,在创建所述虚拟机后,所述创建脚本被调用并对所述软件进行安装,具体地,对所述创建脚本进行拆分以生成每个第一软件脚本,通过所述第一软件脚本中的软件的脚本信息和服务器的地址信息对服务器中的软件进行安装;所述第二软件脚本还包括开机脚本和关机脚本,若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装,具体地,对所述开机脚本或者关机脚本进行拆分以生成每个第一软件脚本,通过所述第一软件脚本中的软件的脚本信息和服务器的地址信息对服务器中的软件进行安装;更具体地,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
S106,根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
具体的,在本发明实施例中,通过所述第一软件脚本中软件的脚本信息可以确定相对应的软件,通过服务器的地址信息可以确定相对应软件的下载安装地址,因此,通过所述软件的脚本信息和所述软件相对应的服务器的地址信息可以从服务器中找到并下载安装相对应的软件。
由以上可见,在本发明实施例中,本发明实施例通过获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本,并根据第一软件脚本并生成第二软件脚本,在创建虚拟机时,将第二软件脚本上传到与虚拟机对应的虚拟路由器的目录中,在创建虚拟机后,将第二软件脚本进行拆分以生成每个第一软件脚本以进行安装相对应的软件,从而可以实现云环境下的软件自动化安装,其中,该自动化软件安装过程简单、灵活。
请参阅图2,图2是本发明实施例二提供的一种虚拟机软件部署方法的示意流程图。该方法可以运行在具有运行虚拟机功能的台式电脑、笔记本电脑、平板电脑或者其它具有运行虚拟机功能的智能设备中。如图中所示,该方法的步骤包括S201~S208。
S201,若接收到用户的选择指令,选择服务器和需要部署的软件。
具体的,在本发明实施例中,所述服务器可以包括文件服务器、数据库服务器和应用程序服务器,在所述服务器上存储有多种软件,用户可以选择所需的服务器以及与该服务器相对应的软件,该软件用于实现用户在虚拟机上的软件部署。所述软件可以是系统软件,系统软件为计算机使用提供最基本的功能,系统软件可分为操作系统和支撑软件,其中操作系统是最基本的软件,操作系统如Linux、Mac OS、Unix、Windows等,支撑软件是支撑计算机中各种软件的开发与维护的软件,支撑软件如环境数据库、各种接口软件和一系列的基本工具等;所述软件还可以是应用软件,应用软件是为了某种特定的用途而被开发者开发可供使用的软件,应用软件如Office、WPS、AutoCAD、Photoshop等。
S202,获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本。
具体的,在本发明实施例中,所述软件的脚本信息与软件一一对应,通过软件的脚本信息可以确定相对应的软件,所述服务器的地址信息用于提供软件存储在服务中的地址,通过服务器的地址信息可以确定相对应的软件的下载安装地址,因此,通过所述软件的脚本信息和所述软件相对应的服务器的地址信息可以从服务器中找到并下载安装相对应的软件。
需要说明的是,将所述软件的脚本信息以及所述服务器的地址信息生成第一软件脚本,例如,将所述软件的脚本信息以及所述服务器的地址信息记录至一个脚本文件中,将该脚本文件作为第一软件脚本;在该第一软件脚本中存储着每个软件所对应的脚本信息以及该软件在服务器中的地址信息,通过生成第一软件脚本能够使每个软件的下载安装信息有序的存储,可以防止软件下载安装信息的丢失,并且提高软件下载安装的效率。
S203,获取所有第一软件脚本并生成第二软件脚本。
具体的,在本发明实施例中,获取所有第一软件脚本并生成第二软件脚本,所述第二软件脚本中可以包括一个或者多个第一软件脚本,在所述第二软件脚本中存储着每个软件所对应的第一软件脚本,通过生成第二软件脚本可以提高数据的传输效率。
S204,若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中。
具体的,在本发明实施例中,在创建虚拟机后,设置虚拟机的虚拟路由器,并将生成的第二软件脚本上传到所述虚拟机的虚拟路由器的目录中,以方便虚拟机获取该第二软件脚本以完成软件的安装与配置。
需要说明的是,所述将第二软件脚本上传到所述虚拟机的虚拟路由器的目录,指的是在虚拟机联网的情况下,用户可以在虚拟机的虚拟路由器的目录中选择相对应的服务器,在服务器中选择相对应的第二软件脚本,选择第二软件脚本并将第二软件脚本上传至虚拟机的虚拟路由器的目录中。
S205,创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本。
具体的,在本发明实施例中,将上传到所述虚拟机的虚拟路由器目录中的第二软件脚本进行拆分并生成每个第一软件脚本,由于所述第二软件脚本包括一个或者多个第一软件脚本,所述第二软件脚本以一个第一软件脚本为拆分单元,将第二软件脚本中的一个或者多个第一软件脚本拆分并生成每个第一软件脚本。
其中,所述第二软件脚本包括创建脚本,如果所述第二软件脚本包括创建脚本,在创建所述虚拟机后,所述创建脚本被调用并对所述软件进行安装,具体地,对所述创建脚本进行拆分以生成每个第一软件脚本,通过所述第一软件脚本中的软件的脚本信息和服务器的地址信息对服务器中的软件进行安装;所述第二软件脚本还包括开机脚本和关机脚本,若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装,具体地,对所述开机脚本或者关机脚本进行拆分以生成每个第一软件脚本,通过所述第一软件脚本中的软件的脚本信息和服务器的地址信息对服务器中的软件进行安装;更具体地,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
S206,根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
具体的,在本发明实施例中,通过所述第一软件脚本中软件的脚本信息可以确定相对应的软件,通过服务器的地址信息可以确定相对应软件的下载安装地址,因此,通过所述软件的脚本信息和所述软件相对应的服务器的地址信息可以从服务器中找到并下载安装相对应的软件。
S207,显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联。
S208,根据用户选择的区域和软件,按照所述映射关系选择所述服务器。
具体的,在本发明实施例中,所述区域指的是服务器的分布区域,每个区域包括若干服务器,在虚拟机中显示分布区域以及已经部署的软件,便可以根据虚拟机中显示的分布区域以及已经部署的软件,确定所述软件对应的服务器。更具体的,所述服务器和所述软件建立有映射关系,该映射关系为区域和服务器相关联,服务器与软件相关联,可以根据区域与服务器之间的映射关系以及服务器与软件之间的映射关系,确定所述软件对应的服务器。
由以上可见,在本发明实施例中,通过在虚拟机中显示区域和部署的软件,根据用户选择的区域和软件,按照映射关系选择所述服务器,从而实现在虚拟机中通过区域和已经部署的软件确定相对应的服务器,防止虚拟机中部署软件的服务器信息因丢失而无法确定相对应的服务器。
请参阅图3,对应上述一种虚拟机软件部署方法,本发明实施例还提出一种终端,该终端100包括:第一选择单元101、第一获取单元102、第二获取单元103、创建单元104、拆分单元105、安装单元106。
其中第一选择单元101,用于若接收到用户的选择指令,选择服务器和需要部署的软件。具体的,在本发明实施例中,所述服务器可以包括文件服务器、数据库服务器和应用程序服务器,在所述服务器上存储有多种软件,用户可以选择所需的服务器以及与该服务器相对应的软件,该软件用于实现用户在虚拟机上的软件部署。所述软件可以是系统软件,系统软件为计算机使用提供最基本的功能,系统软件可分为操作系统和支撑软件,其中操作系统是最基本的软件,操作系统如Linux、Mac OS、Unix、Windows等,支撑软件是支撑计算机中各种软件的开发与维护的软件,支撑软件如环境数据库、各种接口软件和一系列的基本工具等;所述软件还可以是应用软件,应用软件是为了某种特定的用途而被开发者开发可供使用的软件,应用软件如Office、WPS、AutoCAD、Photoshop等。
第一获取单元102,用于获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本。具体的,在本发明实施例中,所述软件的脚本信息与软件一一对应,通过软件的脚本信息可以确定相对应的软件,所述服务器的地址信息用于提供软件存储在服务中的地址,通过服务器的地址信息可以确定相对应的软件的下载安装地址,因此,通过所述软件的脚本信息和所述软件相对应的服务器的地址信息可以从服务器中找到并下载安装相对应的软件。
需要说明的是,将所述软件的脚本信息以及所述服务器的地址信息生成第一软件脚本,例如,将所述软件的脚本信息以及所述服务器的地址信息记录至一个脚本文件中,将该脚本文件作为第一软件脚本;在该第一软件脚本中存储着每个软件所对应的脚本信息以及该软件在服务器中的地址信息,通过生成第一软件脚本能够使每个软件的下载安装信息有序的存储,可以防止软件下载安装信息的丢失,并且提高软件下载安装的效率。
第二获取单元103,用于获取所有第一软件脚本并生成第二软件脚本。具体的,在本发明实施例中,获取所有第一软件脚本并生成第二软件脚本,所述第二软件脚本中可以包括一个或者多个第一软件脚本,在所述第二软件脚本中存储着每个软件所对应的第一软件脚本,通过生成第二软件脚本可以提高数据的传输效率。
创建单元104,用于若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中。具体的,在本发明实施例中,在创建虚拟机后,设置虚拟机的虚拟路由器,并将生成的第二软件脚本上传到所述虚拟机的虚拟路由器的目录中,以方便虚拟机获取该第二软件脚本以完成软件的安装与配置。
需要说明的是,所述将第二软件脚本上传到所述虚拟机的虚拟路由器的目录,指的是在虚拟机联网的情况下,用户可以在虚拟机的虚拟路由器的目录中选择相对应的服务器,在服务器中选择相对应的第二软件脚本,选择第二软件脚本并将第二软件脚本上传至虚拟机的虚拟路由器的目录中。
拆分单元105,用于创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本。具体的,在本发明实施例中,将上传到所述虚拟机的虚拟路由器目录中的第二软件脚本进行拆分并生成每个第一软件脚本,由于所述第二软件脚本包括一个或者多个第一软件脚本,所述第二软件脚本以一个第一软件脚本为拆分单元,将第二软件脚本中的一个或者多个第一软件脚本拆分并生成每个第一软件脚本。
其中,所述第二软件脚本包括创建脚本,如果所述第二软件脚本包括创建脚本,在创建所述虚拟机后,所述创建脚本被调用并对所述软件进行安装,具体地,对所述创建脚本进行拆分以生成每个第一软件脚本,通过所述第一软件脚本中的软件的脚本信息和服务器的地址信息对服务器中的软件进行安装;所述第二软件脚本还包括开机脚本和关机脚本,若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装,具体地,对所述开机脚本或者关机脚本进行拆分以生成每个第一软件脚本,通过所述第一软件脚本中的软件的脚本信息和服务器的地址信息对服务器中的软件进行安装;更具体地,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
安装单元106,用于根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。具体的,在本发明实施例中,通过所述第一软件脚本中软件的脚本信息可以确定相对应的软件,通过服务器的地址信息可以确定相对应软件的下载安装地址,因此,通过所述软件的脚本信息和所述软件相对应的服务器的地址信息可以从服务器中找到并下载安装相对应的软件。
由以上可见,在本发明实施例中,通过获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本,并根据第一软件脚本并生成第二软件脚本,在创建虚拟机时,将第二软件脚本上传到与虚拟机对应的虚拟路由器的目录中,在创建虚拟机后,将第二软件脚本进行拆分以生成每个第一软件脚本以进行安装相对应的软件,从而可以实现云环境下的软件自动化安装,其中,该自动化软件安装过程简单、灵活。
请参阅图4,对应上述一种虚拟机软件部署方法,本发明实施例还提出一种终端,该终端200包括:第一选择单元201、第一获取单元202、第二获取单元203、创建单元204、拆分单元205、安装单元206、显示单元207、第二选择单元208。
其中第一选择单元201,用于若接收到用户的选择指令,选择服务器和需要部署的软件。具体的,在本发明实施例中,所述服务器可以包括文件服务器、数据库服务器和应用程序服务器,在所述服务器上存储有多种软件,用户可以选择所需的服务器以及与该服务器相对应的软件,该软件用于实现用户在虚拟机上的软件部署。所述软件可以是系统软件,系统软件为计算机使用提供最基本的功能,系统软件可分为操作系统和支撑软件,其中操作系统是最基本的软件,操作系统如Linux、Mac OS、Unix、Windows等,支撑软件是支撑计算机中各种软件的开发与维护的软件,支撑软件如环境数据库、各种接口软件和一系列的基本工具等;所述软件还可以是应用软件,应用软件是为了某种特定的用途而被开发者开发可供使用的软件,应用软件如Office、WPS、AutoCAD、Photoshop等。
第一获取单元202,用于获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本。具体的,在本发明实施例中,所述软件的脚本信息与软件一一对应,通过软件的脚本信息可以确定相对应的软件,所述服务器的地址信息用于提供软件存储在服务中的地址,通过服务器的地址信息可以确定相对应的软件的下载安装地址,因此,通过所述软件的脚本信息和所述软件相对应的服务器的地址信息可以从服务器中找到并下载安装相对应的软件。
需要说明的是,将所述软件的脚本信息以及所述服务器的地址信息生成第一软件脚本,例如,将所述软件的脚本信息以及所述服务器的地址信息记录至一个脚本文件中,将该脚本文件作为第一软件脚本;在该第一软件脚本中存储着每个软件所对应的脚本信息以及该软件在服务器中的地址信息,通过生成第一软件脚本能够使每个软件的下载安装信息有序的存储,可以防止软件下载安装信息的丢失,并且提高软件下载安装的效率。
第二获取单元203,用于获取所有第一软件脚本并生成第二软件脚本。具体的,在本发明实施例中,获取所有第一软件脚本并生成第二软件脚本,所述第二软件脚本中可以包括一个或者多个第一软件脚本,在所述第二软件脚本中存储着每个软件所对应的第一软件脚本,通过生成第二软件脚本可以提高数据的传输效率。
创建单元204,用于若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中。具体的,在本发明实施例中,在创建虚拟机后,设置虚拟机的虚拟路由器,并将生成的第二软件脚本上传到所述虚拟机的虚拟路由器的目录中,以方便虚拟机获取该第二软件脚本以完成软件的安装与配置。
需要说明的是,所述将第二软件脚本上传到所述虚拟机的虚拟路由器的目录,指的是在虚拟机联网的情况下,用户可以在虚拟机的虚拟路由器的目录中选择相对应的服务器,在服务器中选择相对应的第二软件脚本,选择第二软件脚本并将第二软件脚本上传至虚拟机的虚拟路由器的目录中。
拆分单元205,用于创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本。具体的,在本发明实施例中,将上传到所述虚拟机的虚拟路由器目录中的第二软件脚本进行拆分并生成每个第一软件脚本,由于所述第二软件脚本包括一个或者多个第一软件脚本,所述第二软件脚本以一个第一软件脚本为拆分单元,将第二软件脚本中的一个或者多个第一软件脚本拆分并生成每个第一软件脚本。
其中,所述第二软件脚本包括创建脚本,如果所述第二软件脚本包括创建脚本,在创建所述虚拟机后,所述创建脚本被调用并对所述软件进行安装,具体地,对所述创建脚本进行拆分以生成每个第一软件脚本,通过所述第一软件脚本中的软件的脚本信息和服务器的地址信息对服务器中的软件进行安装;所述第二软件脚本还包括开机脚本和关机脚本,若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装,具体地,对所述开机脚本或者关机脚本进行拆分以生成每个第一软件脚本,通过所述第一软件脚本中的软件的脚本信息和服务器的地址信息对服务器中的软件进行安装;更具体地,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
安装单元206,用于根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。具体的,在本发明实施例中,通过所述第一软件脚本中软件的脚本信息可以确定相对应的软件,通过服务器的地址信息可以确定相对应软件的下载安装地址,因此,通过所述软件的脚本信息和所述软件相对应的服务器的地址信息可以从服务器中找到并下载安装相对应的软件。
显示单元207,用于显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联。
第二选择单元208,用于根据用户选择的区域和软件,按照所述映射关系选择所述服务器。具体的,在本发明实施例中,所述区域指的是服务器的分布区域,每个区域包括若干服务器,在虚拟机中显示分布区域以及已经部署的软件,便可以根据虚拟机中显示的分布区域以及已经部署的软件,确定所述软件对应的服务器。更具体的,所述服务器和所述软件建立有映射关系,该映射关系为区域和服务器相关联,服务器与软件相关联,可以根据区域与服务器之间的映射关系以及服务器与软件之间的映射关系,确定所述软件对应的服务器。
由以上可见,在本发明实施例中,通过在虚拟机中显示区域和部署的软件,根据用户选择的区域和软件,按照映射关系选择所述服务器,从而实现在虚拟机中通过区域和已经部署的软件确定相对应的服务器,防止虚拟机中部署软件的服务器信息因丢失而无法确定相对应的服务器。
图5为本发明一种虚拟机软件部署设备的结构组成示意图。如图5所示,该设备300可包括:输入装置301、输出装置302、收发装置303、存储器304以及处理器305,其中:
所述输入装置301,用于接收外部访问控制设备的输入数据。具体实现中,本发明实施例所述的输入装置301可包括键盘、鼠标、光电输入装置、声音输
入装置、触摸式输入装置、扫描仪等。
所述输出装置302,用于对外输出访问控制设备的输出数据。具体实现中,
本发明实施例所述的输出装置302可包括显示器、扬声器、打印机等。
所述收发装置303,用于通过通信链路向其他设备发送数据或者从其他设备接收数据。具体实现中,本发明实施例的收发装置303可包括射频天线等收发器件。
所述存储器304,用于存储带有各种功能的程序数据。本发明实施例中存储器304存储的数据包括可调用并运行的程序数据。具体实现中,本发明实施例的存储器304可以是系统存储器,比如,挥发性的存储器(诸如RAM)、非易失性的存储器(诸如ROM,闪存等),或者两者的结合。具体实现中,本发明实施例的存储器304还可以是系统之外的外部存储器,比如,磁盘、光盘、磁带等。
所述处理器305,用于运行所述存储器304中存储的程序数据,以执行如下操作:
若接收到用户的选择指令,选择服务器和需要部署的软件;
获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本;
获取所有第一软件脚本并生成第二软件脚本;
若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中;
创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本;
根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
进一步地,所述处理器305还执行如下操作:
显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联;
根据用户选择的区域和软件,按照所述映射关系选择所述服务器。
进一步地,所述第二软件脚本包括创建脚本;在创建所述虚拟机后,所述创建脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本还包括开机脚本和关机脚本;若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
本领域技术人员可以理解,图5中示出的虚拟机软件部署设备的实施例并不构成对虚拟机软件部署设备具体构成的限定,在其他实施例中,虚拟机软件部署设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,虚拟机软件部署设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图5所示实施例一致,在此不再赘述。
本发明还提供了一种计算机可读存储介质,计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器执行,以实现以下步骤:
若接收到用户的选择指令,选择服务器和需要部署的软件;
获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本;
获取所有第一软件脚本并生成第二软件脚本;
若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中;
创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本;
根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
进一步地,所述第二软件脚本包括创建脚本;
在创建所述虚拟机后,所述创建脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本还包括开机脚本和关机脚本;
若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装。
进一步地,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
进一步地,所述步骤还包括:
显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联;
根据用户选择的区域和软件,按照所述映射关系选择所述服务器。
本发明前述的存储介质包括:磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等各种可以存储程序代码的介质。
本发明所有实施例中的单元可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC (Application Specific Integrated
Circuit,专用集成电路)来实现。
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本发明实施例终端中的单元可以根据实际需要进行合并、划分和删减。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种虚拟机软件部署方法,其特征在于,所述方法包括:
    若接收到用户的选择指令,选择服务器和需要部署的软件;
    获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本;
    获取所有第一软件脚本并生成第二软件脚本;
    若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中;
    创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本;
    根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
  2. 如权利要求1所述的方法,其特征在于,
    所述第二软件脚本包括创建脚本;
    在创建所述虚拟机后,所述创建脚本被调用并对软件进行安装。
  3. 如权利要求1所述的方法,其特征在于,
    所述第二软件脚本还包括开机脚本和关机脚本;
    若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装。
  4. 如权利要求1所述的方法,其特征在于,
    所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
  5. 如权利要求2-4任意一项所述的方法,其特征在于,所述方法还包括:
    显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联;
    根据用户选择的区域和软件,按照所述映射关系选择所述服务器。
  6. 一种终端,其特征在于,所述终端包括:
    第一选择单元,用于若接收到用户的选择指令,选择服务器和需要部署的软件;
    第一获取单元,用于获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本;
    第二获取单元,用于获取所有第一软件脚本并生成第二软件脚本;
    创建单元,用于若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中;
    拆分单元,用于创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本;
    安装单元,用于根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
  7. 如权利要求6所述的终端,其特征在于,
    所述第二软件脚本包括创建脚本;
    在创建所述虚拟机后,所述创建脚本被调用并对软件进行安装。
  8. 如权利要求6所述的终端,其特征在于,
    所述第二软件脚本还包括开机脚本和关机脚本;
    若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装。
  9. 如权利要求6所述的终端,其特征在于,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
  10. 如权利要求7-9任意一项所述的终端,其特征在于,所述终端还包括:
    显示单元,用于显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联;
    第二选择单元,用于根据用户选择的区域和软件,按照所述映射关系选择所述服务器。
  11. 一种虚拟机软件部署设备,其特征在于,所述设备包括:存储器以及处理器;
    所述存储器用于存储实现虚拟机软件部署的程序;
    所述处理器用于运行所述存储器中存储的实现虚拟机软件部署的程序,以执行如下操作:
    若接收到用户的选择指令,选择服务器和需要部署的软件;
    获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本;
    获取所有第一软件脚本并生成第二软件脚本;
    若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中;
    创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本;
    根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
  12. 如权利要求11所述的设备,其特征在于,所述第二软件脚本包括创建脚本;
    在创建所述虚拟机后,所述创建脚本被调用并对软件进行安装。
  13. 如权利要求11所述的设备,其特征在于,所述第二软件脚本还包括开机脚本和关机脚本;
    若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装。
  14. 如权利要求11所述的设备,其特征在于,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
  15. 如权利要求12-14任意一项所述的设备,其特征在于,所述处理器还执行如下操作:
    显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联;
    根据用户选择的区域和软件,按照所述映射关系选择所述服务器。
  16. 一种计算机可读存储介质,其特征在于,计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器执行,以实现以下步骤:
    若接收到用户的选择指令,选择服务器和需要部署的软件;
    获取每个软件的脚本信息和与所述软件相对应的服务器的地址信息并生成第一软件脚本;
    获取所有第一软件脚本并生成第二软件脚本;
    若接收到创建指令,创建虚拟机并将所述第二软件脚本上传到与所述虚拟机对应的虚拟路由器的目录中;
    创建虚拟机后,将所述第二软件脚本进行拆分以生成每个第一软件脚本;
    根据拆分后生成的第一软件脚本中软件的脚本信息以及服务器的地址信息安装相对应的软件。
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,所述第二软件脚本包括创建脚本;
    在创建所述虚拟机后,所述创建脚本被调用并对软件进行安装。
  18. 如权利要求16所述的计算机可读存储介质,其特征在于,所述第二软件脚本还包括开机脚本和关机脚本;
    若所述虚拟机开机或者关机,所述开机脚本或者关机脚本被调用并对软件进行安装。
  19. 如权利要求16所述的计算机可读存储介质,其特征在于,所述第二软件脚本包括创建脚本、开机脚本和关机脚本中的至少一种。
  20. 如权利要求17-19任意一项所述的计算机可读存储介质,其特征在于,所述步骤还包括:
    显示区域和部署的软件,所述区域中包括若干服务器,所述服务器和所述软件建立有映射关系,其中该映射关系为:区域和服务器相关联,服务器与软件相关联;
    根据用户选择的区域和软件,按照所述映射关系选择所述服务器。
PCT/CN2017/090921 2017-03-13 2017-06-29 一种虚拟机软件部署方法、终端、设备以及计算机可读存储介质 Ceased WO2018166108A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710146730.6A CN107678751B (zh) 2017-03-13 2017-03-13 一种虚拟机软件部署方法及终端
CN201710146730.6 2017-03-13

Publications (1)

Publication Number Publication Date
WO2018166108A1 true WO2018166108A1 (zh) 2018-09-20

Family

ID=61134101

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/090921 Ceased WO2018166108A1 (zh) 2017-03-13 2017-06-29 一种虚拟机软件部署方法、终端、设备以及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN107678751B (zh)
WO (1) WO2018166108A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475198A (zh) * 2020-04-14 2020-07-31 中国人民解放军战略支援部队信息工程大学 一种网络服务器的拟态化方法及装置
CN113900670A (zh) * 2021-12-08 2022-01-07 深圳市名竹科技有限公司 集群服务器应用部署系统

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269636B (zh) * 2020-10-20 2022-11-11 苏州浪潮智能科技有限公司 云数据中心虚拟机安装软件的方法、系统、服务器及介质
CN114138411A (zh) * 2021-11-25 2022-03-04 山东浪潮工业互联网产业股份有限公司 一体机部署方法、一体机、装置及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932408A (zh) * 2012-09-21 2013-02-13 中国电信股份有限公司云计算分公司 一种服务器集群的管理方法和平台
CN103530162A (zh) * 2013-10-22 2014-01-22 中国科学院信息工程研究所 一种虚拟机在线自动软件安装的方法及系统
CN103677858A (zh) * 2012-08-30 2014-03-26 中兴通讯股份有限公司 一种云环境中虚拟机软件管理的方法、系统及设备
US20140196029A1 (en) * 2013-01-10 2014-07-10 VCE Company LLC Scripting language executor service for applications
CN104572202A (zh) * 2015-01-08 2015-04-29 浪潮电子信息产业股份有限公司 一种云计算下企业级应用软件部署的方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7895348B2 (en) * 2007-10-17 2011-02-22 Dispersive Networks Inc. Virtual dispersive routing
CN103605570A (zh) * 2013-11-18 2014-02-26 浪潮(北京)电子信息产业有限公司 一种基于虚拟机模板自动部署应用的方法及系统
CN104346195B (zh) * 2014-06-05 2016-05-25 腾讯科技(深圳)有限公司 软件安装方法和系统
CN106055388A (zh) * 2016-06-25 2016-10-26 国云科技股份有限公司 一种云平台应用自动部署框架

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677858A (zh) * 2012-08-30 2014-03-26 中兴通讯股份有限公司 一种云环境中虚拟机软件管理的方法、系统及设备
CN102932408A (zh) * 2012-09-21 2013-02-13 中国电信股份有限公司云计算分公司 一种服务器集群的管理方法和平台
US20140196029A1 (en) * 2013-01-10 2014-07-10 VCE Company LLC Scripting language executor service for applications
CN103530162A (zh) * 2013-10-22 2014-01-22 中国科学院信息工程研究所 一种虚拟机在线自动软件安装的方法及系统
CN104572202A (zh) * 2015-01-08 2015-04-29 浪潮电子信息产业股份有限公司 一种云计算下企业级应用软件部署的方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475198A (zh) * 2020-04-14 2020-07-31 中国人民解放军战略支援部队信息工程大学 一种网络服务器的拟态化方法及装置
CN111475198B (zh) * 2020-04-14 2023-01-24 中国人民解放军战略支援部队信息工程大学 一种网络服务器的拟态化方法及装置
CN113900670A (zh) * 2021-12-08 2022-01-07 深圳市名竹科技有限公司 集群服务器应用部署系统
CN113900670B (zh) * 2021-12-08 2022-03-18 深圳市名竹科技有限公司 集群服务器应用部署系统

Also Published As

Publication number Publication date
CN107678751A (zh) 2018-02-09
CN107678751B (zh) 2020-06-09

Similar Documents

Publication Publication Date Title
WO2015127859A1 (en) Sensitive text detecting method and apparatus
WO2019019340A1 (zh) 应用程序页面打开方法、装置、终端及可读存储介质
WO2019019378A1 (zh) 业务处理方法、装置、适配器及计算机可读存储介质
WO2019051890A1 (zh) 终端控制方法、装置及计算机可读存储介质
WO2018058919A1 (zh) 标识信息生成方法、装置、设备和计算机可读存储介质
WO2017201899A1 (zh) 连接蓝牙设备的方法及装置
WO2019019374A1 (zh) 智能语音设备控制家电的方法、装置及系统
WO2019056752A1 (zh) 家电设备的配网方法、装置、系统及计算机可读存储介质
WO2018000856A1 (zh) 一种实现SDN Overlay网络报文转发的方法、终端、设备及计算机可读存储介质
WO2019019376A1 (zh) 业务流程管理方法、装置、设备及计算机可读存储介质
WO2019085103A1 (zh) 培训管理方法、装置、计算机设备及存储介质
WO2019062194A1 (zh) 家电设备及其控制方法、系统及计算机可读存储介质
WO2018166108A1 (zh) 一种虚拟机软件部署方法、终端、设备以及计算机可读存储介质
WO2015139639A1 (en) Method and apparatus for displaying application icons on terminal
WO2019037319A1 (zh) 电量预警方法、服务器、移动终端及存储介质
WO2018082482A1 (zh) 一种网络共享方法、接入网络方法及系统
WO2018233367A1 (zh) 立案方法、装置、终端和计算机可读存储介质
WO2015139232A1 (zh) 一种应用的推荐方法、系统及服务器
WO2019051899A1 (zh) 终端控制方法、装置及存储介质
WO2019051895A1 (zh) 终端控制方法、装置及存储介质
WO2018166107A1 (zh) 基于Hybrid的兼容方法、适配件、运行装置、系统以及计算机可读存储介质
WO2015007007A1 (zh) 一种adc自动校正的方法及装置
WO2019056462A1 (zh) 名单分配方法、装置、设备以及计算机可读存储介质
WO2015108283A1 (ko) 클라우드 스트리밍 서비스를 위한 어플리케이션 에러 검출 방법, 이를 위한 장치 및 시스템
WO2015158132A1 (zh) 语音控制方法和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17900506

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.12.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17900506

Country of ref document: EP

Kind code of ref document: A1