CN113076171A - Virtual machine installing method and device - Google Patents

Virtual machine installing method and device Download PDF

Info

Publication number
CN113076171A
CN113076171A CN202010003911.5A CN202010003911A CN113076171A CN 113076171 A CN113076171 A CN 113076171A CN 202010003911 A CN202010003911 A CN 202010003911A CN 113076171 A CN113076171 A CN 113076171A
Authority
CN
China
Prior art keywords
virtual machine
template
target
information
initial
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.)
Granted
Application number
CN202010003911.5A
Other languages
Chinese (zh)
Other versions
CN113076171B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010003911.5A priority Critical patent/CN113076171B/en
Publication of CN113076171A publication Critical patent/CN113076171A/en
Application granted granted Critical
Publication of CN113076171B publication Critical patent/CN113076171B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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

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)

Abstract

The embodiment of the invention provides a virtual machine installing method and a virtual machine installing device, wherein the method comprises the following steps: receiving an installation request, wherein the installation request carries machine type information of a target virtual machine and/or installation template information corresponding to the target virtual machine and is used for requesting to create the target virtual machine; generating an initial virtual machine template according to the machine type information and/or the installed template information; sending first indication information to a target host machine, wherein the first indication information is used for indicating that an initial virtual machine is created according to an initial virtual machine template; generating an application virtual machine template according to the machine type information and/or the installed template information; and under the condition that the target host machine is confirmed to create the initial virtual machine, sending second indication information to the target host machine, wherein the second indication information is used for indicating that the target virtual machine is created based on the initial virtual machine and the application virtual machine template. The embodiment of the invention can simulate a drilling environment based on the virtual machine loader, and saves the drilling cost.

Description

Virtual machine installing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a virtual machine installing method and device.
Background
In recent years, private cloud technology is rapidly developed, the use of private cloud by traditional industries such as finance, medical treatment, industrial manufacturing and the like is more and more common, and the private cloud market gradually gets wide attention of cloud service providers, system integrators, Internet Data Center (IDC) service providers and users of various industries.
With the continuous expansion of private cloud market, the product functional characteristics of the private cloud are more and more abundant, for example, support multiple areas, disaster recovery, internationalization, multiple time zones, etc., and the characteristic drills of different development branches are the processes that must be completed before delivery. The more the functional characteristics of the private cloud product are, the higher the requirements on the drilling environment are. Typically, the average number of physical machines in a set of drilling environments is 50-100, and assuming that 20 sets of drilling environments need to be deployed, the cost of drilling in 20 sets of drilling environments is very high even if only the cost of physical machines is calculated without considering network equipment. Therefore, how to save the cost on the premise of meeting the requirement of the drill is a problem to be solved urgently.
Disclosure of Invention
In view of this, embodiments of the present invention provide a virtual machine mount method and apparatus, which are used to save cost on the premise of meeting the requirement of drilling.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides a virtual machine installation method, which is applied to a virtual machine management server, and the method includes:
receiving an installation request, wherein the installation request carries machine type information of a target virtual machine and/or installation template information corresponding to the target virtual machine;
generating an initial virtual machine template according to the machine type information and/or the installed template information;
sending first indication information to the target host machine, wherein the first indication information carries the initial virtual machine template and is used for indicating that an initial virtual machine is created according to the initial virtual machine template;
generating an application virtual machine template according to the machine type information and/or the installed template information;
and sending second indication information to the target host machine under the condition that the initial virtual machine is established by the target host machine, wherein the second indication information carries the application virtual machine template and is used for indicating the establishment of the target virtual machine based on the initial virtual machine and the application virtual machine template.
In a second aspect, an embodiment of the present invention provides a virtual machine installation method, which is applied to a host of a virtual machine, and the method includes:
receiving first indication information sent by a virtual machine management server, wherein the first indication information carries an initial virtual machine template and is used for indicating that an initial virtual machine is created according to the initial virtual machine template;
creating the initial virtual machine according to the initial virtual machine template;
receiving second indication information sent by the virtual machine management server, wherein the second indication information carries an application virtual machine template and is used for indicating the initial virtual machine to create a target virtual machine according to the application virtual machine template;
creating the target virtual machine based on the initial virtual machine and the application virtual machine template.
In a third aspect, an embodiment of the present invention provides a virtual machine management server, including:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving an installation request, and the installation request carries machine type information of a target virtual machine and/or installation template information corresponding to the target virtual machine;
the processing unit is used for generating an initial virtual machine template according to the model information and/or the installed template information;
a sending unit, configured to send first indication information to the target host, where the first indication information carries the initial virtual machine template and is used to indicate that an initial virtual machine is created according to the initial virtual machine template;
the processing unit is further used for generating an application virtual machine template according to the machine type information and/or the installed template information;
the sending unit is further configured to send second indication information to the target host machine under the condition that it is determined that the initial virtual machine is created by the target host machine, where the second indication information carries the application virtual machine template and is used to indicate that the target virtual machine is created based on the initial virtual machine and the application virtual machine template.
In a fourth aspect, an embodiment of the present invention provides a virtual machine host, including:
a receiving unit, configured to receive first indication information sent by a virtual machine management server, where the first indication information carries an initial virtual machine template and is used to indicate that an initial virtual machine is created according to the initial virtual machine template;
the installation unit is used for creating the initial virtual machine according to the initial virtual machine template;
the receiving unit is further configured to receive second indication information sent by the virtual machine management server, where the second indication information carries an application virtual machine template and is used to indicate the initial virtual machine to create a target virtual machine according to the application virtual machine template;
the installation unit is further used for creating the target virtual machine based on the initial virtual machine and the application virtual machine template.
In a fifth aspect, an embodiment of the present invention provides a virtual machine management server, including: a memory for storing a computer program and a processor; the processor is configured to execute the virtual machine mount method according to the first aspect or any embodiment of the first aspect when the computer program is called.
In a sixth aspect, an embodiment of the present invention provides a virtual machine host, including: a memory for storing a computer program and a processor; the processor is configured to execute the virtual machine mount method according to the second aspect or any embodiment of the second aspect when the computer program is called.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the virtual machine installation method described in the first aspect or any implementation manner of the first aspect.
The virtual machine installation method provided by the embodiment of the invention firstly generates an initial virtual machine template when receiving an installation request, then sends first indication information for indicating the establishment of an initial virtual machine to a target host, and then generates an application virtual machine template, and sends indication information for indicating the establishment of the target virtual machine to the target host under the condition that the initial virtual machine is established by the target host.
Drawings
Fig. 1 is a schematic structural diagram of an application system of a video memory scheduling method according to an embodiment of the present invention;
fig. 2 is an interaction flowchart of a video memory scheduling method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a virtual machine management server according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a host of a virtual machine according to an embodiment of the present invention;
fig. 5 is a schematic hardware structure diagram of a virtual machine management server according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a host of a virtual machine according to an embodiment of the present invention.
Detailed Description
Aiming at the problem that the cost of a physical machine for drilling is high in the prior art, the embodiment of the invention provides a virtual machine installation method and a virtual machine installation device, when an installation request is received, an initial virtual machine template is firstly generated, then first indication information for indicating the establishment of an initial virtual machine is sent to a target host, an application virtual machine template is generated, and indication information for indicating the establishment of the target virtual machine is sent to the target host under the condition that the initial virtual machine is established by the target host, because the virtual machine installation method provided by the embodiment of the invention can firstly establish the initial virtual machine on the target host and establish the target virtual machine based on the initial virtual machine and the application virtual machine template, the embodiment of the invention can meet the drilling requirement by establishing a virtual machine of a specified machine type, a large amount of physical machine resources are saved, and the cost is saved on the premise of meeting the drilling requirement.
The technical solutions of the present invention are described in detail below with specific embodiments, which may be combined with each other, and the same or similar concepts or processes are not described again.
Fig. 1 is a schematic diagram illustrating a possible architecture of a system to which a virtual machine mount method according to an embodiment of the present invention is applied. As shown in fig. 1, a system to which the virtual machine mount method according to the embodiment of the present invention is applied includes: a Virtual Machine management server (Virtual Machine Manager)11, at least one Virtual Machine host (illustrated in fig. 1 as Virtual Machine host 12, Virtual Machine host 13, and Virtual Machine host 14) and a Clone database (Clone Data Base)15 of the Virtual Machine host.
With reference to fig. 2, the virtual machine installation method provided in this embodiment may include the following steps:
s11, the virtual machine management server receives the installation request.
The installation request carries machine type information of the target virtual machine and/or installation template information corresponding to the target virtual machine, and is used for requesting to create the target virtual machine.
Specifically, the virtual machine management server receiving the installation request may be: the virtual machine management server receives an installation request sent by the client, or may receive an installation request input by a manager for the virtual machine management server, which is not limited in the embodiment of the present invention.
According to an implementation manner of the embodiment of the present invention, the installation request carries machine type information of the target virtual machine, or carries installation template information corresponding to the target virtual machine, or carries machine type information of the target virtual machine and installation template information corresponding to the target virtual machine.
The virtual machine management server (VM manager) in the embodiment of the invention adopts a virtualization technology to realize the creation, management, modification and deletion of the virtual machine. The virtual machine management server may be a physical machine, or may be a virtual machine created on a physical machine, and the virtual machine management server may be deployed on one physical machine or virtual machine, or may be formed by a plurality of nodes or a plurality of components deployed in a distributed manner. For example: may consist of multiple nodes deployed on multiple physical or virtual machines. In the embodiment of the present invention, the type and physical deployment manner of the virtual machine management server are not limited, and the function of the virtual machine management server in the embodiment of the present invention can be implemented.
The model information of the target virtual machine is the model of the virtual machine requested to be created by the installation request; for example, the model information of the target virtual machine may be "Q46", "Q47", "Q48", or the like.
The installed template can be understood as a template obtained by defining the bottom layer configuration of the system in a uniform mode; the system infrastructure configuration may include: kernel version, software manager (e.g., RPM) package, disk partition, network configuration, user group settings, etc. In the installation process of the operating system, installation is carried out according to the configuration of the system bottom layer defined by the installation template, so that the configuration of each virtual system bottom layer can be avoided independently, and the installation efficiency of the virtual machine is improved.
And S12, the virtual machine management server generates an initial virtual machine template according to the machine type information and/or the installed template information.
That is, the virtual machine management server may generate the initial virtual machine template from at least one of the model information and the installed template information.
S13, the virtual machine management server sends the first indication information to the target host machine.
Correspondingly, the target host machine receives the first indication information sent by the virtual machine management server.
The first indication information carries the initial virtual machine template and is used for indicating that an initial virtual machine is created according to the initial virtual machine template.
Specifically, the target host is a virtual machine host that is to create the target virtual machine. The target host machine can be determined in all the virtual machine host machines by the virtual machine management server based on a preset resource allocation mode and the resource information of the virtual machine host machines.
And S14, the target host machine creates the initial virtual machine according to the initial virtual machine template.
And S15, the virtual machine management server generates an application virtual machine template according to the machine type information and/or the installed template information.
For example, the vm management server may confirm that the target host has created the initial vm by: the virtual machine management server detects whether an initial virtual machine is on line; if so, confirming that the target host machine has created the initial virtual machine; if not, confirming that the target host machine does not create the initial virtual machine. Of course, the virtual machine management server may also confirm whether the target host has created the initial virtual machine in other ways, for example: through input determination of a manager, a manner of confirming whether the target host machine has created the initial virtual machine by the virtual machine management server is not limited in the embodiment of the present invention.
It should be noted that, in the embodiment of the present invention, the order of generating the initial virtual machine template and generating the application virtual machine template by the virtual machine management server is not limited, and the initial virtual machine template may be generated first and then the application virtual machine template may be generated; the application virtual machine template can also be generated firstly, then the initial virtual machine template is generated firstly, and the initial virtual machine template and the application virtual machine template can also be generated simultaneously.
And S16, the virtual machine management server sends second indication information to the target host machine under the condition that the target host machine is confirmed to create the initial virtual machine.
Correspondingly, the target host machine receives second indication information sent by the virtual machine management server.
The second indication information carries the application virtual machine template and is used for indicating that the target virtual machine is created based on the initial virtual machine and the application virtual machine template.
S17, the target host machine creates the target virtual machine based on the initial virtual machine and the application virtual machine template.
The virtual machine installation method provided by the embodiment of the invention firstly generates an initial virtual machine template when receiving an installation request, then sends first indication information for indicating the establishment of an initial virtual machine to a target host, and then generates an application virtual machine template, and sends indication information for indicating the establishment of the target virtual machine to the target host under the condition that the initial virtual machine is established by the target host.
The following describes in detail the implementation process of the step S12 (the virtual machine management server generates the initial virtual machine template according to the model information and/or the installed template information).
Step S12 may include steps a and b as follows.
Step a, the virtual machine management server obtains an installation template corresponding to the target virtual machine according to the machine type information and/or the installation template information.
Specifically, the corresponding relationship between the machine type and the installation template may be preconfigured in the virtual machine management server, and when receiving the installation request, the virtual machine management server determines the installation template of the target virtual machine according to the machine type information in the installation request and the corresponding relationship between the machine type and the installation template, or searches for the installation template of the target virtual machine according to the installation template information in the installation request. Optionally, the correspondence between the model and the installed template may be stored in the virtual machine management server in the form of a mapping table. For example, the mapping table of the model and the installed template may be as shown in table 1 below:
TABLE 1
Figure BDA0002354509820000071
And b, rendering a pre-configured installation configuration template according to the installation template to generate the initial virtual machine template.
Specifically, the step b (generating the initial virtual machine template by rendering the pre-configured installation configuration template according to the installation template) may include one or more of the following steps b1 to b 6.
And b1, configuring the virtual machine name as the host name carried in the installation request.
Step b2, configuring a Virtual Network Console (VNC) to dynamically generate an available VNC port.
Specifically, the rendered VNC configuration may be as follows:
the method comprises the steps of monitoring all networks without automatically allocating a network, wherein the network type is ═ vnc 'port ═ 32894' passd ═ 123456 'lesten ═ 0.0.0.0' autosort ═ no 'keymap ═ en-us'/> # fixes a vnc management port 32894 and a vnc password 123456, and all networks are not automatically allocated
And b3, extracting installation configuration parameters from the installation template.
Wherein the device configuration parameters may include at least one of: a memory (MEM), a size of a processor (e.g., a central processing unit CPU), a number of network cards (INTERFACES), a DISK (DISK) type, and a number of DISKs of each type.
Illustratively, the size of the processor may be expressed using a number of units comprising CPU, such as: a processor size of 16 identifies a CPU size of 16 CPU units, which may be predefined by a system administrator. The disk classes may include at least one of the following disk classes: system DISKs (PRIMARY DISKs, PRIMARY _ DISKs), Non-Volatile DISKs (Non-Volatile Memory express DISKs, NVME _ DISKs), Serial Advanced Technology Attachment DISKs (SATA _ DISKs), Integrated drive DISKs (IDE _ DISKs).
For example, the above step b3 will be described below by taking the model of the target virtual machine as "a 1234".
The installed templates corresponding to "a 1234" are as follows:
Figure BDA0002354509820000081
Figure BDA0002354509820000091
step b4, rendering a pre-configured installation configuration template according to the installation template to generate the initial virtual machine template.
For example, a pre-configured installed configuration template may be as follows:
Figure BDA0002354509820000092
step b5, rendering the disk of at least one category in the initial virtual machine template by using the disk template corresponding to the target virtual machine.
Specifically, when the disk types include: PRIMARY _ DISK, NVME _ DISK, SATA _ DISK, and IDE _ DISK, where the step b5 renders at least one of PRIMARY _ DISK, NVME _ DISK, SATA _ DISK, and IDE _ DISK in the initial virtual machine template by using the DISK template corresponding to the target virtual machine, and includes: and allocating an available disk path according to the disk use condition of the target host, and calculating an available conflict-free value according to the number of the virtual machines, such as INDEX, CONTROLLER, UNIT, ID, SERIAL and the like.
For example, a template for PRIMARY _ DISK, a template for SATA _ DISK, a template for IDE _ DISK, and a template for NVME _ DISK may be as follows:
template for PRIMARY _ DISK:
Figure BDA0002354509820000101
templates for SATA _ DISKS:
Figure BDA0002354509820000102
template for IDE _ DISKS:
Figure BDA0002354509820000103
template for NVME _ DISKS:
Figure BDA0002354509820000104
step b6, rendering the network card in the initial virtual machine template by using the first network card template.
The first network card template is a network card template of which the network mode corresponding to the target virtual machine is an NAT mode.
Specifically, rendering the network card in the initial virtual machine template by using a first network card template includes: the Media Access Control Address (MAC) Address generates an Address that does not conflict with other MACs in the environment according to the MAC information maintained in the database, and the name of the network card can be read from the slave template.
For example, the first network card template may be as follows:
Figure BDA0002354509820000111
in the virtual machine installation method provided in the above embodiment, before sending the first indication information to the target host, the target host needs to be determined from each virtual machine host. The following describes in detail an implementation manner in which the virtual machine management server determines the target host from the respective virtual machine hosts.
As an optional implementation manner of the embodiment of the present invention, an implementation manner of determining a target host from each virtual machine host by the virtual machine management service may include the following steps 1 and 2.
Step 1, resource information of at least one virtual machine host is obtained through a resource monitoring service.
As an optional embodiment of the present invention, the resource information of any virtual machine host includes: at least one of MEM information of the virtual machine host, CPU information of the virtual machine host, DISK information of the virtual machine host, NETWORK information of the virtual machine host, and system information of the virtual machine host.
The MEM information may include, among others: total amount of physical memory, physical memory usage, size of physical switch partition (SWAP), SWAP usage.
The CPU information may include: whether to start a Non-Uniform Memory Access Architecture (NUMA), the number of logic CPU cores, the number of NUMA nodes, the value of idle NUMA nodes, CPU frequency, and CPU utilization.
The DISK information may include: the method comprises the following steps of total capacity of a disk, utilization rate of disk space, length of an avgqu-sz queue of a device, and waiting (await) of the device.
NETWORK information may include: switch connection information.
The SYS information may include: starting time, average single-core load in a certain time range of the system, the number of running virtual machines and the total number of virtual machine hosts running on the virtual machine hosts.
And 2, determining the target host machine in the at least one virtual machine host machine based on a preset resource allocation mode and the resource information of the at least one virtual machine host machine.
Optionally, the preset resource allocation manner may be a preset resource allocation algorithm, and in the embodiment of the present invention, the preset resource allocation manner is not limited, so as to determine the target host from the at least one virtual machine host. For example, the target host may be an optimal host calculated according to a preset resource allocation manner and the resource information of the at least one virtual machine host.
Still further, since the target host needs to execute an initialization (boottrap) procedure before creating the initial virtual machine according to the initial virtual machine template, otherwise the initial virtual machine cannot be created, the virtual machine management server needs to ensure that the target host has executed the initialization procedure before sending the first indication information to the target host, which is described in detail below.
As an optional implementation manner of the embodiment of the present invention, an implementation manner in which the virtual machine management server ensures that the target host has executed the boottrap process may include the following step i and step ii.
And step I, the virtual machine management server confirms whether the target host machine executes the initialization process.
For example, step i may be performed each time the virtual machine host is powered on.
As an optional implementation manner of the embodiment of the present invention, the determining, by the virtual machine management server, whether the target host executes the initialization process may include:
the virtual machine management server sends a query request to a Clone database (Clone Data Base, Clone DB) of the target host, wherein the query request is used for querying whether the target host executes an initialization process; and receiving a query response sent by the clone database, wherein the query response is used for indicating that the target host machine executes the clone database process, or the query response is used for indicating that the target host machine does not execute the clone database process.
Specifically, the Clone database is a persistent database, and the database records whether a virtual machine host (physical machine) executes an initialization process, and if the initialization process is executed, the Clone DB records the initialization process of the virtual machine host as yes (done), so that it can be determined whether the virtual machine host executes the initialization process by querying the Clone database.
And step II, if the target host machine does not execute the initialization process, the virtual machine management server sends third indication information to the target host machine.
Correspondingly, the target host machine receives third indication information sent by the virtual machine management server.
Wherein the third indication information is used for indicating the target host to execute an initialization process.
As an optional implementation manner of the embodiment of the present invention, the executing initialization process of any virtual machine host (including the target host) may include:
configuring Dynamic Host Configuration Protocol (DHCP) service, configuring simple File Transfer Protocol (TFTP) service, constructing virtual machine operating environment and configuring virtual machine installation network according to the third indication information.
Illustratively, the configuration of the DHCP service may be as follows:
Figure BDA0002354509820000131
that is, configuring the DHCP service includes: the method comprises the steps that a virtual machine on a configured virtual machine host machine can acquire a dynamic IP through a DHCP Protocol, meanwhile, a Bootstrap driver file (NBP) named as pxelinux.0 is loaded through a BOOTP Protocol (BOOTP), the virtual machine acquires IP and TFTP service addresses through the DHCP Protocol, and the Bootstrap driver file is downloaded through the TFTP Protocol.
Illustratively, the TFTP service may be uniformly managed by the xinted network daemon, and the configuration of the TFTP service may be as follows:
Figure BDA0002354509820000141
wherein, tftp download directory needs to be prepared: pxelinux.0 boot file, pxelinux.cfg/default configuration, linux/vmlinux-BBBBBBB 7, linux/ramos7_ for _ sci.img four files.
pxelinux.0 is a network-booted driver file, equivalent to grub.
pxelinux.cfg/default is a configuration file of NBP, mainly configured as follows:
default label of default sci #
timeout 15# wait for timeout, after timeout, automatically enter default label
prompt for prompt 1# display boot
LABEL sci # Default LABEL specifies the kernel path and parameters
kernel linux/vmlinux-BBBBBBB 7# kernel filename and storage path
apend initrd ═ linux/ramos7_ for _ sci, img ramdisk _ size ═ 8192 bios devname ═ 0 scsi _ mod, scan ═ sync net, ifnames ═ 0 conditioner ═ ttys0,115200 conditioner ═ ttys 0# initrd system's mirror image is linux/ramos7_ for _ sci.img, initrd system disk size is 8192, bios devname parameter is 0 (cancellation of duplicate renaming to network card), scsi block device scan mode is synchronous (sync) mode, ifname parameter is 0 (naming of system scheme is not used), console supports serial ttys0, 200, console supports virtual terminal ttys0, 11584, and console supports virtual terminal ttys0
The linux/vmlinux-BBBBB 7 file is a 7U BBBBB kernel.
The linux/ramos7_ for _ sci.img file is an Initrd (initialized RAM disk), the Initrd is a memory disk of a boot loader, the boot loader loads the linux/ramos7_ for _ sci.img file in the disk into a memory before a BBBBB kernel runs, the memory Initrd system is accessed before the kernel accesses a real root file system of a BaseOS, and the Initrd mainly aims to solve the problem of general drive.
Configuring a virtual machine installation network, specifically comprising: the libvirtd interface is used for creating a virtual machine network, and the network creation completion comprises two virtual network interfaces (network cards), namely, virbr0 and virbr 0-nic. The virbr0 is a bridge (bridge) at the same time, the virbr0 is used for working at the virtual machine installation stage, the virbr0 bridge adopts the NAT network mode, the virtual network interface and the physical interface are completely isolated, the virtual machine can access external resources (YUM source, DNS and the like) through the virtual network, and the external network cannot locate and access the virtual machine, so that the influence of an external installation system can be completely isolated. And creating a bridge 0 for accessing the external network, wherein the bridge binds the host bond0 network interface of the virtual machine in a bridge manner, and after the virtual machine is installed, switching the virtual network interface from the virbr0 bridge to the br0 bridge, and the external network can locate and access the virtual machine after switching. Two bridges used in the virtual machine mount process may be as shown in table 2 below:
TABLE 2
Bridge name Bridge ID number STP enabling Interface
br0 8000.9c7da386e693 no bond0
virbr0 8000.5254002adfb5 yes virbr0-nic
Constructing a virtual machine operating environment, comprising: install virtual operating system simulator (qemulator) and install daemon (libvirtd) virtualization components.
It should be noted that the implementation manner of the virtual machine management server generating the application virtual machine template according to the machine type information and/or the installed template information is similar to the implementation manner of generating the initial virtual machine template, and the main difference is that the network card template used for rendering the network card is different. For example, the network card template used when the initial virtual machine template is generated is a first network card template in the NAT mode, and the network card template used when the virtual machine template is generated is a second network card template in the bridge mode.
As an optional implementation manner of the embodiment of the present invention, rendering a pre-configured installed configuration template according to the installed configuration template to generate the application virtual machine template includes:
INTERFACES in the application virtual machine template are rendered using a second network card template.
And the second network card template is a network card template of which the network mode corresponding to the target virtual machine is a network bridge mode.
For example, the second network card template may be as follows:
Figure BDA0002354509820000151
as an optional implementation manner of the embodiment of the present invention, the installation request further carries at least one of the following information: a host name of the target virtual machine, an OS version of the target virtual machine, and network configuration information of the target virtual machine.
For example, the request parameters carried in the installed request may be as follows:
"sm_name":"Q46",
"ip":"10.138.208.139",
"gateway":"10.138.255.247",
"netmask":"255.255.0.0",
"hostname":"vm010138208139",
"clonescript":"kvm_clone",
"os":"BBBBB7U2-x86-64",
by the request parameters, the following parameters are known: the model of the target virtual machine is as follows: q46, hostname of target virtual machine: vm010138208139 and the installed template are as follows: kvm _ clone, OS version: the BBBBB7U2-x86-64 and the network configuration information comprise: the IP address, the gateway and the subnet mask, wherein the IP address is as follows: 10.138.208.139, respectively; the gateway is as follows: 10.138.255.247, respectively; the subnet mask is: 255.255.0.0.
as an optional implementation manner of the embodiment of the present invention, the first indication information and/or the second indication information further carries at least one of the following information: the system comprises machine type information of the target virtual machine, installed template information corresponding to the target virtual machine, an OS version of the target virtual machine and network configuration information of the target virtual machine.
That is, the virtual machine management server further sends at least one of the model information of the target virtual machine, the installed template information corresponding to the target virtual machine, the OS version of the target virtual machine, and the network configuration information of the target virtual machine to the target host machine through the first indication information and/or the second indication information.
As an optional implementation manner in the embodiment of the present invention, after step S14 (the target host creates the initial virtual machine according to the initial virtual machine template), the virtual machine installing method provided in the embodiment of the present invention further includes:
the target host starts the initial virtual machine under a preboot execution environment (PXE).
As an optional implementation manner of the embodiment of the present invention, the first indication information further carries an operating system version of the target virtual machine; after starting the initial virtual machine, the method further comprises:
the target host machine acquires a corresponding virtual machine image according to the OS version of the target virtual machine; decompressing the virtual machine image; and switching the root directory of the initial virtual machine to an operating system corresponding to the virtual image.
Further, as an optional implementation manner of the embodiment of the present invention, the first indication information further carries network configuration information of the target virtual machine; after starting the initial virtual machine, the method further comprises:
and the target host machine configures the network of the initial virtual machine according to the network configuration information of the target virtual machine.
As an optional implementation manner of the embodiment of the present invention, the first indication information further carries machine type information of the target virtual machine and/or installation template information corresponding to the target virtual machine; after starting the initial virtual machine, the method further comprises:
the target host machine acquires an installation template corresponding to the target virtual machine according to the machine type information of the target virtual machine and/or the installation template information corresponding to the target virtual machine; configuring at least one of a partition mode, a user group, a kernel version, and a software manager (e.g., RPM) package of a system of the initial virtual machine according to an installed template.
For example, the partition pattern, user group, kernel version, and RPM package in the installed template may be as follows:
Figure BDA0002354509820000171
Figure BDA0002354509820000181
as an optional implementation manner of the embodiment of the present invention, after the initial virtual machine is started, the method further includes:
and the target host machine shuts down the initial virtual machine and switches the network card mode of the initial virtual machine from the NAT mode to the bridging mode.
Since the target host switches the network card mode of the initial virtual machine from the NAT mode to the bridge mode, the external device (including the virtual machine management server) may discover the initial virtual machine, and thus the virtual machine management server may determine that the target host has created the initial virtual machine.
Based on the same inventive concept, as an implementation of the foregoing method, an embodiment of the present invention further provides a virtual machine installation apparatus, where the apparatus embodiment corresponds to the foregoing method embodiment, and for convenience of reading, details in the foregoing method embodiment are not repeated in this apparatus embodiment one by one, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiment.
Fig. 3 is a schematic structural diagram of a virtual machine management server according to an embodiment of the present invention, and as shown in fig. 3, a virtual machine management server 300 according to the embodiment includes:
a receiving unit 31, configured to receive an installation request, where the installation request carries machine type information of a target virtual machine and/or installation template information corresponding to the target virtual machine;
the processing unit 32 is configured to generate an initial virtual machine template according to the model information and/or the installed template information;
a sending unit 33, configured to send first indication information to the target host, where the first indication information carries the initial virtual machine template and is used to indicate that an initial virtual machine is created according to the initial virtual machine template;
the processing unit 32 is further configured to generate an application virtual machine template according to the model information and/or the installed template information;
the sending unit 33 is further configured to send second indication information to the target host machine under the condition that it is determined that the target host machine has created the initial virtual machine, where the second indication information carries the application virtual machine template and is used to indicate that the target virtual machine is created based on the initial virtual machine and the application virtual machine template.
As an optional implementation manner of the embodiment of the present invention, the processing unit 32 is specifically configured to obtain an installation template corresponding to the target virtual machine according to the model information and/or the installation template information, and render a pre-configured installation configuration template according to the installation template to generate the initial virtual machine template or the application virtual machine template.
As an optional implementation manner of the embodiment of the present invention, the processing unit 32 is specifically configured to extract installed configuration parameters from the installed template, where the installed configuration parameters include at least one of the following parameters: and rendering the installation configuration template according to the installation configuration parameters to generate the initial virtual machine template or the application virtual machine template.
As an optional implementation manner of the embodiment of the present invention, the processing unit 32 is further configured to render, by using a disk template corresponding to the target virtual machine, a disk of at least one category in the initial virtual machine template or the application virtual machine template.
As an optional implementation manner of the embodiment of the present invention, the processing unit 32 is further configured to render a network card in the initial virtual machine template by using a first network card template;
the first network card template is a network card template of which the network mode corresponding to the target virtual machine is an NAT mode.
As an optional implementation manner of the embodiment of the present invention, the processing unit 32 is further configured to render a network card in the application virtual machine template by using a second network card template;
the second network card template is a network card template of which the network mode corresponding to the target virtual machine is a network bridge mode.
As an optional implementation manner of the embodiment of the present invention, the installation request further carries at least one of the following information: the host name of the target virtual machine, the operating system version of the target virtual machine, and the network configuration information of the target virtual machine;
the first indication information and the second indication information further carry at least one of the following information: the system comprises machine type information of the target virtual machine, installed template information corresponding to the target virtual machine, an OS version of the target virtual machine and network configuration information of the target virtual machine.
As an optional implementation manner of the embodiment of the present invention, the virtual machine management apparatus further includes: a calculation unit 34;
the computing unit 34 is configured to obtain resource information of at least one virtual machine host through a resource monitoring service, and determine the target machine host in the at least one virtual machine host according to a preset resource allocation manner and the resource information of the at least one virtual machine host.
As an optional implementation manner of the embodiment of the present invention, the resource information of any virtual machine host includes: at least one item of memory information of the virtual machine host, processor information of the virtual machine host, disk information of the virtual machine host, network card information of the virtual machine host, and system SYS information of the virtual machine host.
As an optional implementation manner of the embodiment of the present invention, the virtual machine management apparatus further includes: a confirmation unit 35;
the confirming unit is further configured to confirm whether the target host executes an initialization process before sending the first indication information to the target host; if the target host machine does not execute the initialization process, third indication information is sent to the target host machine, and the third indication information is used for indicating the target host machine to execute the initialization process.
As an optional implementation manner of the embodiment of the present invention, the determining unit 35 is specifically configured to send an inquiry request to the clone database of the target host, where the inquiry request is used to inquire whether the virtual machine host has executed an initialization process; and receiving a query response sent by the clone database, wherein the query response is used for indicating that the virtual machine host machine executes the initialization process, or the query response is used for indicating that the virtual machine host machine does not execute the initialization process.
Fig. 4 is a schematic structural diagram of a virtual machine host provided in the embodiment of the present invention, and as shown in fig. 4, the virtual machine host 400 provided in this embodiment includes:
a receiving unit 41, configured to receive first indication information sent by a virtual machine management server, where the first indication information carries an initial virtual machine template and is used to indicate that an initial virtual machine is created according to the initial virtual machine template;
an installation unit 42, configured to create the initial virtual machine according to the initial virtual machine template;
the receiving unit 41 is further configured to receive second indication information sent by the virtual machine management server, where the second indication information carries an application virtual machine template and is used to indicate the initial virtual machine to create a target virtual machine according to the application virtual machine template;
the installed unit 42 is further configured to create the target virtual machine based on the initial virtual machine and the application virtual machine template.
As an optional implementation manner of the embodiment of the present invention, the mount unit 42 is further configured to start the initial virtual machine under PXE.
As an optional implementation manner of the embodiment of the present invention, the first indication information further carries an OS version of the target virtual machine; the install unit 42 is further configured to, after the initial virtual machine is started, obtain a corresponding BaseOS virtual machine image according to the OS version of the target virtual machine; decompressing the BaseOS virtual machine image; and switching the root directory of the initial virtual machine to an operating system corresponding to the BaseOS virtual image.
As an optional implementation manner of the embodiment of the present invention, the first indication information further carries network configuration information of the target virtual machine; the installing unit 42 is further configured to configure the network of the initial virtual machine according to the network configuration information of the target virtual machine after the initial virtual machine is started.
As an optional implementation manner of the embodiment of the present invention, the first indication information further carries machine type information of the target virtual machine and/or installation template information corresponding to the target virtual machine; the installation unit 42 is further configured to, after the initial virtual machine is started, obtain an installation template corresponding to the target virtual machine according to the machine type information of the target virtual machine and/or installation template information corresponding to the target virtual machine; configuring at least one of a partitioning manner of a system of the initial virtual machine, a user group, a kernel version, a software manager (e.g., an RPM package) according to an installed template.
As an optional implementation manner of the embodiment of the present invention, the installing unit 42 is further configured to, after the initial virtual machine is started, shut down the initial virtual machine, and switch a network card mode of the initial virtual machine from an NAT mode to a bridge mode.
As an optional implementation manner of the embodiment of the present invention, the receiving unit 41 is further configured to receive third indication information sent by the virtual machine management server before receiving the first indication information sent by the virtual machine management server, where the third indication information is used to indicate the virtual machine host to execute an initialization procedure;
the installing unit 42 is further configured to execute an initialization procedure according to the third indication information.
As an optional implementation manner of the embodiment of the present invention, the installed unit 42 is specifically configured to configure a dynamic host configuration protocol service, configure a trivial file transfer protocol service, construct a virtual machine operating environment, and configure a virtual machine installed network according to the third indication information.
Based on the same inventive concept, the embodiment of the invention also provides a virtual machine management server. Fig. 5 is a schematic structural diagram of a virtual machine management server according to an embodiment of the present invention, and as shown in fig. 5, the virtual machine management server according to the embodiment includes: a memory 51 and a processor 52, the memory 51 being for storing computer programs; the processor 52 is configured to execute the steps performed by the virtual machine management server in the virtual machine installation method according to the above method embodiment when the computer program is called.
Based on the same invention concept, the embodiment of the invention also provides a virtual machine host machine. Fig. 6 is a schematic structural diagram of a virtual machine host provided in the embodiment of the present invention, and as shown in fig. 6, the virtual machine host provided in this embodiment includes: a memory 61 and a processor 62, the memory 61 being for storing computer programs; the processor 62 is configured to execute the steps performed by the virtual machine host in the virtual machine installation method according to the above method embodiment when the computer program is called.
The virtual machine host provided in this embodiment may execute the virtual machine installation method provided in the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the virtual machine installation method described in the above method embodiment is implemented.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied in the medium.
The Processor may be a central processing unit, or may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer readable media include both permanent and non-permanent, removable and non-removable storage media. Storage media may implement information storage by any method or technology, and the information may be computer-readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (24)

1. A virtual machine installing method is applied to a virtual machine management server and comprises the following steps:
receiving an installation request, wherein the installation request carries machine type information of a target virtual machine and/or installation template information corresponding to the target virtual machine;
generating an initial virtual machine template according to the machine type information and/or the installed template information;
sending first indication information to a target host machine, wherein the first indication information carries the initial virtual machine template and is used for indicating that an initial virtual machine is created according to the initial virtual machine template;
generating an application virtual machine template according to the machine type information and/or the installed template information;
and sending second indication information to the target host machine under the condition that the initial virtual machine is established by the target host machine, wherein the second indication information carries the application virtual machine template and is used for indicating the establishment of the target virtual machine based on the initial virtual machine and the application virtual machine template.
2. The method according to claim 1, wherein the generating an initial virtual machine template or an application virtual machine template according to the model information and/or the installed template information includes:
acquiring an installation template corresponding to the target virtual machine according to the machine type information and/or the installation template information;
and rendering a pre-configured installation configuration template according to the installation template to generate the initial virtual machine template or the application virtual machine template.
3. The method of claim 2, wherein the rendering an installed configuration template according to the installed template to generate the initial virtual machine template or the application virtual machine template comprises:
extracting installed configuration parameters from the installed template, wherein the installed configuration parameters comprise at least one of the following parameters: the value of the memory, the size of the processor, the number of network cards, the types of disks and the number of disks of each type;
and rendering the installed configuration template according to the installed configuration parameters to generate the initial virtual machine template or the application virtual machine template.
4. The method of claim 3, wherein the rendering an installed configuration template according to the installed template generates the initial virtual machine template or the application virtual machine template, further comprising:
and rendering the disk of at least one category in the initial virtual machine template or the application virtual machine template by using the disk template corresponding to the target virtual machine.
5. The method of claim 3, wherein the rendering an installed configuration template according to the installed template generates the initial virtual machine template, further comprising:
rendering the network card in the initial virtual machine template by using a first network card template;
the first network card template is a network card template of which the network mode corresponding to the target virtual machine is a Network Address Translation (NAT) mode.
6. The method of claim 3, wherein the rendering an installed configuration template according to the installed template generates the application virtual machine template, further comprising:
rendering the network card in the application virtual machine template by using a second network card template; the second network card template is a network card template of which the network mode corresponding to the target virtual machine is a network bridge mode.
7. The method of claim 1, wherein the installation request further carries at least one of the following information: the host name of the target virtual machine, the operating system version of the target virtual machine, and the network configuration information of the target virtual machine;
the first indication information and the second indication information also carry at least one of the following information: the system comprises machine type information of the target virtual machine, installed template information corresponding to the target virtual machine, an operating system version of the target virtual machine and network configuration information of the target virtual machine.
8. The method of claim 1, wherein before sending the first indication information to the target host, the method further comprises:
acquiring resource information of at least one virtual machine host through a resource monitoring service;
and determining the target machine host machine in the at least one virtual machine host machine based on a preset resource allocation mode and the resource information of the at least one virtual machine host machine.
9. The method of claim 8, wherein the resource information of any virtual machine host comprises: at least one of memory information of the virtual machine host, processor information of the virtual machine host, disk information of the virtual machine host, network information of the virtual machine host, and system information of the virtual machine host.
10. The method of claim 1, wherein before sending the first indication information to the target host, the method further comprises:
confirming whether the target host machine executes an initialization process;
if the target host machine does not execute the initialization process, third indication information is sent to the target host machine, and the third indication information is used for indicating the target host machine to execute the initialization process.
11. The method of claim 10, wherein said determining whether said target host has performed an initialization procedure comprises:
sending a query request to a clone database of the target host, wherein the query request is used for querying whether the target host executes an initialization process;
and receiving a query response sent by the clone database, wherein the query response is used for indicating that the target host machine executes the initialization process, or the query response is used for indicating that the target host machine does not execute the initialization process.
12. A virtual machine installing method is applied to a virtual machine host machine, and comprises the following steps:
receiving first indication information sent by a virtual machine management server, wherein the first indication information carries an initial virtual machine template and is used for indicating that an initial virtual machine is created according to the initial virtual machine template;
creating the initial virtual machine according to the initial virtual machine template;
receiving second indication information sent by the virtual machine management server, wherein the second indication information carries an application virtual machine template and is used for indicating the initial virtual machine to create a target virtual machine according to the application virtual machine template;
creating the target virtual machine based on the initial virtual machine and the application virtual machine template.
13. The method of claim 12, wherein after creating the initial virtual machine according to the initial virtual machine template, the method further comprises:
and starting the initial virtual machine under the pre-starting execution environment PXE.
14. The method of claim 13, wherein the first indication information further carries an operating system version of the target virtual machine; after starting the initial virtual machine, the method further comprises:
acquiring a corresponding virtual machine image according to the operating system version of the target virtual machine;
decompressing the virtual machine image;
and switching the root directory of the initial virtual machine to an operating system corresponding to the virtual image.
15. The method according to claim 13, wherein the first indication information further carries network configuration information of the target virtual machine; after starting the initial virtual machine, the method further comprises:
and configuring the network of the initial virtual machine according to the network configuration information of the target virtual machine.
16. The method according to claim 13, wherein the first indication information further carries model information of the target virtual machine and/or installed template information corresponding to the target virtual machine; after starting the initial virtual machine, the method further comprises:
acquiring an installation template corresponding to the target virtual machine according to the machine type information of the target virtual machine and/or the installation template information corresponding to the target virtual machine;
and configuring at least one of a partition mode, a user group, a kernel version and a software manager package of the system of the initial virtual machine according to the installed template.
17. The method of claim 13, wherein after starting the initial virtual machine, the method further comprises:
and shutting down the initial virtual machine, and switching the network card mode of the initial virtual machine from the NAT mode to the bridging mode.
18. The method of claim 12, wherein before receiving the first indication information sent by the virtual machine management server, the method further comprises:
receiving third indication information sent by the virtual machine management server, wherein the third indication information is used for indicating the virtual machine host machine to execute an initialization process;
and executing an initialization process according to the third indication information.
19. The method of claim 18, wherein the performing an initialization procedure according to the third indication information comprises:
and configuring a dynamic host configuration protocol service, a simple file transfer protocol service, a virtual machine operating environment and a virtual machine installation network according to the third indication information.
20. A virtual machine management server, comprising:
the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving an installation request, and the installation request carries machine type information of a target virtual machine and/or installation template information corresponding to the target virtual machine;
the processing unit is used for generating an initial virtual machine template according to the model information and/or the installed template information;
a sending unit, configured to send first indication information to the target host, where the first indication information carries the initial virtual machine template and is used to indicate that an initial virtual machine is created according to the initial virtual machine template;
the processing unit is further used for generating an application virtual machine template according to the machine type information and/or the installed template information;
the sending unit is further configured to send second indication information to the target host machine under the condition that it is determined that the initial virtual machine is created by the target host machine, where the second indication information carries the application virtual machine template and is used to indicate that the target virtual machine is created based on the initial virtual machine and the application virtual machine template.
21. A virtual machine host, comprising:
a receiving unit, configured to receive first indication information sent by a virtual machine management server, where the first indication information carries an initial virtual machine template and is used to indicate that an initial virtual machine is created according to the initial virtual machine template;
the installation unit is used for creating the initial virtual machine according to the initial virtual machine template;
the receiving unit is further configured to receive second indication information sent by the virtual machine management server, where the second indication information carries an application virtual machine template and is used to indicate the initial virtual machine to create a target virtual machine according to the application virtual machine template;
the installation unit is further used for creating the target virtual machine based on the initial virtual machine and the application virtual machine template.
22. A virtual machine management server comprising a memory and a processor, the memory for storing a computer program; the processor is configured to execute the virtual machine mount method according to any one of claims 1-11 when the computer program is invoked.
23. A virtual machine host comprising a memory and a processor, the memory for storing a computer program; the processor is configured to execute the virtual machine mount method according to any one of claims 12-19 when the computer program is invoked.
24. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the virtual machine mount method according to any one of claims 1 to 19.
CN202010003911.5A 2020-01-03 2020-01-03 Virtual machine installation method and device Active CN113076171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010003911.5A CN113076171B (en) 2020-01-03 2020-01-03 Virtual machine installation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010003911.5A CN113076171B (en) 2020-01-03 2020-01-03 Virtual machine installation method and device

Publications (2)

Publication Number Publication Date
CN113076171A true CN113076171A (en) 2021-07-06
CN113076171B CN113076171B (en) 2023-12-19

Family

ID=76608335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010003911.5A Active CN113076171B (en) 2020-01-03 2020-01-03 Virtual machine installation method and device

Country Status (1)

Country Link
CN (1) CN113076171B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2019358A1 (en) * 2007-07-25 2009-01-28 Deutsche Telekom AG A method and a system for the creation and deployment of a virtual machine appliance on virtualised servers
US20100180014A1 (en) * 2009-01-14 2010-07-15 International Business Machines Corporation Providing network identity for virtual machines
US20110154331A1 (en) * 2009-12-18 2011-06-23 International Business Machines Corporation Cloning virtual machines in a virtual computer environment
CN103795759A (en) * 2012-10-31 2014-05-14 北京搜狐新媒体信息技术有限公司 Method and system for scheduling virtual machine mirror image file
CN106020937A (en) * 2016-07-07 2016-10-12 腾讯科技(深圳)有限公司 Method, device and system for creating virtual machine
WO2017166785A1 (en) * 2016-04-01 2017-10-05 华为技术有限公司 Method for deploying virtual machines, host machine, and system
CN108322490A (en) * 2017-01-17 2018-07-24 阿里巴巴集团控股有限公司 The method, apparatus and server of virtual machine configuration and the distributed cloud service system of deployment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2019358A1 (en) * 2007-07-25 2009-01-28 Deutsche Telekom AG A method and a system for the creation and deployment of a virtual machine appliance on virtualised servers
US20100180014A1 (en) * 2009-01-14 2010-07-15 International Business Machines Corporation Providing network identity for virtual machines
US20110154331A1 (en) * 2009-12-18 2011-06-23 International Business Machines Corporation Cloning virtual machines in a virtual computer environment
CN103795759A (en) * 2012-10-31 2014-05-14 北京搜狐新媒体信息技术有限公司 Method and system for scheduling virtual machine mirror image file
WO2017166785A1 (en) * 2016-04-01 2017-10-05 华为技术有限公司 Method for deploying virtual machines, host machine, and system
CN106020937A (en) * 2016-07-07 2016-10-12 腾讯科技(深圳)有限公司 Method, device and system for creating virtual machine
CN108322490A (en) * 2017-01-17 2018-07-24 阿里巴巴集团控股有限公司 The method, apparatus and server of virtual machine configuration and the distributed cloud service system of deployment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
彭晓平;张雪坚;黄波;: "基于KVM的虚拟化技术研究", 中国新通信, no. 20 *
秦培煜;: "Centos7中基于KVM的虚拟机构建", 科技传播, no. 23 *

Also Published As

Publication number Publication date
CN113076171B (en) 2023-12-19

Similar Documents

Publication Publication Date Title
CN108780410B (en) Network virtualization of containers in a computing system
EP3365780B1 (en) Multi-tenant multi-session catalogs with machine-level isolation
US10469592B2 (en) Virtualizing device management services on a multi-session platform
US9547624B2 (en) Computer system and configuration management method therefor
EP1920345B1 (en) Virtual data center for network resource management
US7499988B2 (en) Method for SAN-based BOS install volume group
US9052940B2 (en) System for customized virtual machine for a target hypervisor by copying image file from a library, and increase file and partition size prior to booting
CN109558212B (en) Virtualization management method and system of physical equipment, physical equipment and medium
US11159367B2 (en) Apparatuses and methods for zero touch computing node initialization
CN104572372A (en) System and method for building server performance testing environment
WO2004025486A2 (en) Use of off-motherboard resources in a computer system
EP3103016B1 (en) Virtualized application cluster
CN111857956B (en) Virtual machine starting method and equipment
US7631054B2 (en) Method and system for generating list of operating systems for a target device
US10713062B2 (en) System and method for configuring an information handling system
TWI648637B (en) System and method for deploying and operating mobile operating system on platform
US8782266B2 (en) Auto-detection and selection of an optimal storage virtualization protocol
KR100439175B1 (en) Method for automatically installing operating system in linux-based cluster system at remote place
CN113076171B (en) Virtual machine installation method and device
US9417900B2 (en) Method and system for automatic assignment and preservation of network configuration for a virtual machine
CN115296994A (en) Starting configuration method, device and medium for pooling heterogeneous computing resources
US20060075196A1 (en) Utilization of storage device from external terminal in network system
JP2006252124A (en) Network system, file access method, and program
WO2017046830A1 (en) Method and system for managing instances in computer system including virtualized computing environment
WO2012054023A1 (en) Computer system with computers that perform network boots

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