Virtual machine control program, virtual machine control method, and information processing device
The virtual machine control program facilitates rapid migration by using platform and virtual machine identifiers for license authentication, addressing delays in existing systems by allowing seamless migration without re-acquiring licenses.
Patent Information
- Application Number
- JP2021000052
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-04
- Publication Date
- 2024-08-28
- Estimated Expiration
- 2041-01-04
AI Technical Summary
Existing virtual machine migration systems face delays due to the need for re-obtaining licenses when virtual machines are moved between physical machines, as current license authentication methods prevent execution on non-licensed machines, hindering timely migration.
A virtual machine control program and method that utilize a virtual machine identifier and infrastructure identifier to perform rapid license authentication, allowing migration without re-acquiring licenses by comparing platform and virtual machine identifiers during migration.
Enables quick migration of licensed virtual machines by authenticating using platform identifiers, preventing unauthorized execution and suppressing delays associated with re-obtaining licenses, thus ensuring legitimate migration without disruption.
Smart Images

Figure 0007541239000007 
Figure 0007541239000002 
Figure 0007541239000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a virtual machine control program, a virtual machine control method, and an information processing device. [Background technology]
[0002] Computer virtualization technology places one or more virtual machines on a physical machine. The physical machine runs control software such as a hypervisor. The control software allocates a portion of the physical machine's hardware resources to each virtual machine, separating information processing between the virtual machines. Hardware resources include processor resources, memory resources, storage resources, and communication resources. A virtual machine may run a guest OS (Operating System). A virtual machine may also run middleware such as a virtual router, a firewall, or a database management system.
[0003] The control software may execute migration to move virtual machines between physical machines. For example, when a failure occurs in a physical machine, the control software may move all virtual machines arranged on that physical machine to a normal physical machine. Also, for example, when maintenance work is performed on a physical machine, the control software may move all virtual machines arranged on that physical machine to a physical machine that is not the subject of maintenance. Also, for example, when the load on a physical machine is high, the control software may move some of the virtual machines arranged on that physical machine to a physical machine with a low load.
[0004] An information processing system has been proposed that manages licenses for software installed in a virtual machine. The proposed information processing system stores usage permission information including a virtual machine ID, a user ID, and a list of permitted software. In response to a request from a user terminal, the information processing system performs user authentication, replicates the virtual machine, and updates the usage permission information. When starting software in the virtual machine, the information processing system performs license authentication based on the usage permission information. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2014-2583 A Summary of the Invention [Problem to be solved by the invention]
[0006] An information processing system may start a virtual machine by receiving a license on a virtual machine basis from a virtual machine vendor. For example, the information processing system may obtain a virtual machine image in which a guest OS and various middleware are packaged from a virtual machine vendor, and start a virtual machine using the obtained virtual machine image. In this case, license authentication may be performed to prevent unauthorized execution of a virtual machine that violates the license.
[0007] One method of license authentication is to assign a virtual machine identifier to a virtual machine, which changes depending on which physical machine it is executed on, and to associate the virtual machine identifier with license data. This license authentication denies the virtual machine from being executed on any physical machine other than the specific physical machine. However, when a virtual machine is moved by migration, the physical machine at the migration destination denies the virtual machine from being executed. This may require procedures such as re-obtaining a license from the virtual machine vendor, which may delay migration.
[0008] Therefore, in one aspect, an object of the present invention is to quickly execute migration of a virtual machine protected by a license. [Means for solving the problem]
[0009] In one aspect, a virtual machine control program is provided that causes a computer to execute the following processes: Obtain setting information that associates a first virtual machine identifier assigned to a virtual machine, a first infrastructure identifier assigned to a computer group capable of executing migration of the virtual machine, and license data indicating a license for the virtual machine; When migration from another computer to the computer is executed, execute a first authentication process including a comparison between a second infrastructure identifier assigned to the computer group to which the computer belongs and the first infrastructure identifier indicated by the setting information; If the first authentication process is successful, skip the second authentication process including a comparison between the second virtual machine identifier, which is an identifier assigned to the virtual machine and depends on the computer, and the first virtual machine identifier indicated by the setting information.
[0010] According to another aspect, there is provided a virtual machine control method executed by a computer, and an information processing device having a storage unit and a processing unit. Effect of the Invention
[0011] On the one hand, it enables faster migration of license-protected virtual machines. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a diagram illustrating an information processing device according to a first embodiment. [Diagram 2] FIG. 11 illustrates an example of an information processing system according to a second embodiment. [Diagram 3] FIG. 2 is a block diagram showing an example of hardware included in a node. [Figure 4]FIG. 2 is a block diagram showing an example of software contained in a node. [Diagram 5] FIG. 13 is a diagram illustrating an example of an environment file. [Figure 6] FIG. 11 is a sequence diagram illustrating an example of creating a virtual machine. [Figure 7] FIG. 11 is a sequence diagram illustrating an example of migration. [Figure 8] 13 is a flowchart showing an example of a license authentication procedure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] The present embodiment will be described below with reference to the drawings. [First embodiment] A first embodiment will be described.
[0014] FIG. 1 is a diagram illustrating an information processing apparatus according to a first embodiment. A virtual machine 13 may be arranged in the information processing device 10 of the first embodiment. The virtual machine 13 is a virtual computer formed by computer virtualization technology using a part of the hardware resources of a physical machine. The hardware resources include processor resources, memory resources, storage resources, and communication resources. The virtual machine 13 may be migrated from the information processing device 20 to the information processing device 10. In the migration, the physical machine on which the virtual machine 13 is arranged is changed. The information processing devices 10 and 20 are, for example, server devices. The information processing devices 10 and 20 may be called computers, physical machines, servers, or nodes.
[0015] The information processing device 10 has a storage unit 11 and a processing unit 12. The storage unit 11 may be a volatile semiconductor memory such as a random access memory (RAM). The storage unit 11 may also be a non-volatile storage such as a hard disk drive (HDD) or a flash memory. The processing unit 12 is, for example, a processor such as a central processing unit (CPU), a graphics processing unit (GPU), or a digital signal processor (DSP). The processing unit 12 may include an electronic circuit for a specific purpose such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). The processor executes a program stored in a memory such as a RAM (which may be the storage unit 11). A set of multiple processors may be called a multiprocessor or simply a "processor."
[0016] The virtual machine 13 may be a virtual machine in the narrow sense including a guest OS, or may be a lightweight container that does not include a guest OS. The virtual machine 13 may include middleware such as a virtual router, a firewall, and a storage management system. The virtual machine 13 is started from a virtual machine image in which the guest OS and various middleware are packaged, for example.
[0017] A license is granted to each virtual machine 13. For example, a virtual machine image and license data are provided by a virtual machine vendor. The license for the virtual machine 13 may stipulate the expiration date of the virtual machine 13 and functions that are permitted to be turned on in the virtual machine 13. The license for the virtual machine 13 prohibits unauthorized duplication of the virtual machine 13 based on the same virtual machine image.
[0018] A virtual machine identifier is assigned to the virtual machine 13. The virtual machine identifier depends on the physical machine on which the virtual machine 13 is placed. For example, the virtual machine identifier includes a symbol string corresponding to the identifier of the physical machine, such as the host name, IP (Internet Protocol) address, or MAC (Media Control Access) address of the physical machine. When migration of the virtual machine 13 is performed, the virtual machine identifier changes.
[0019] A platform identifier is assigned to a set of physical machines capable of executing migration of a virtual machine 13. The range of physical machines capable of executing migration is defined, for example, by a system administrator. For example, a platform identifier is assigned to a set of control software such as a hypervisor executed on those physical machines. The control software of different physical machines communicate with each other to execute migration of a virtual machine 13. A set of linked control software may be called a virtualization platform.
[0020] The storage unit 11 stores setting information 14 for the virtual machine 13. The setting information 14 is used for license management of the virtual machine 13. The setting information 14 may be called environment information or an environment file. The setting information 14 is generated, for example, when the virtual machine 13 is created on any physical machine based on a license or when the virtual machine 13 is started for the first time. When the information processing device 10 is a migration destination physical machine, the setting information 14 may be transferred from the migration source physical machine. When the virtual machine 13 is started on the information processing device 10, the setting information 14 may be provided to the virtual machine 13 via control software of the information processing device 10 (for example, via a hypervisor).
[0021] The setting information 14 includes a virtual machine identifier 15a, an infrastructure identifier 16a, and license data 17. The virtual machine identifier 15a and the infrastructure identifier 16a are associated with the license data 17. The virtual machine identifier 15a is, for example, a virtual machine identifier that depends on a physical machine at the time when a license is granted to the virtual machine 13. The virtual machine identifier 15a may be provided to a virtual machine vendor to receive a license, or may be associated with the license data 17 by the virtual machine vendor. The setting information 14 may include a digital signature for verifying the authenticity of the virtual machine identifier 15a.
[0022] The infrastructure identifier 16a is the infrastructure identifier of the physical machine set to which the physical machine belongs at the time when a license is granted to the virtual machine 13. The infrastructure identifier 16a may be provided to the virtual machine 13 from the control software of any physical machine when the virtual machine 13 is created on the physical machine or when the virtual machine 13 is started for the first time, for example. The infrastructure identifier 16a may be provided to the virtual machine vendor to receive a license, or may be associated with the license data 17 by the virtual machine vendor. The setting information 14 may include a digital signature for verifying the authenticity of the infrastructure identifier 16a.
[0023] The license data 17 indicates a license for the virtual machine 13. The license data 17 may indicate an expiration date for the virtual machine 13. The license data 17 may also indicate functions that are permitted to be turned on in the virtual machine 13.
[0024] When the virtual machine 13 is executed on the information processing device 10, the processing unit 12 performs license authentication for the virtual machine 13. Cases when the virtual machine 13 is executed on the information processing device 10 include a case where the virtual machine 13 is migrated from the information processing device 20 to the information processing device 10 and other cases. The processing unit 12 may perform license authentication immediately after the virtual machine 13 is started on the information processing device 10, or may perform license authentication after a certain period of time has elapsed since the start-up. The license authentication may be executed within the virtual machine 13, or may be implemented by an authentication program included in the virtual machine image.
[0025] If the license authentication is successful, the processing unit 12 permits the execution of the virtual machine 13 in the information processing device 10. For example, the processing unit 12 permits various functions of the virtual machine 13 to be turned ON in accordance with the license data 17. On the other hand, if the license authentication is unsuccessful, the processing unit 12 denies the execution of the virtual machine 13 in the information processing device 10. For example, the processing unit 12 turns OFF various functions of the virtual machine 13. In the latter case, the processing unit 12 may transmit an error message indicating a license violation to the administrator terminal.
[0026] When performing license authentication, the processing unit 12 acquires at least one of a virtual machine identifier 15b and a base identifier 16b for the virtual machine 13. The virtual machine identifier 15b is a virtual machine identifier that depends on the information processing device 10. The virtual machine identifier 15b is assigned to the virtual machine 13 when the virtual machine 13 is started up on the information processing device 10, for example. When the information processing device 10 is a physical machine at the migration destination, the virtual machine identifier 15b is different from the virtual machine identifier before the migration.
[0027] The board identifier 16b is a board identifier assigned to the physical machine set to which the information processing device 10 belongs. The board identifier 16b is held, for example, by control software executed by the information processing device 10, and is notified to the virtual machine 13 from the control software. If the migration of the virtual machine 13 from the information processing device 20 to the information processing device 10 is valid, the information processing devices 10 and 20 have the same board identifier. In this case, the board identifier 16b is the same as the board identifier before the migration.
[0028] When the virtual machine 13 is executed in the information processing device 10 due to migration, the processing unit 12 performs authentication processing 18. The authentication processing 18 includes a comparison between the board identifier 16b and the board identifier 16a indicated by the setting information 14. For example, the processing unit 12 determines that the authentication processing 18 is successful when the board identifiers 16a and 16b are the same, and determines that the authentication processing 18 is unsuccessful when the board identifiers 16a and 16b are different. When the authentication processing 18 fails, the processing unit 12 may determine that the migration is unauthorized and refuse to execute the virtual machine 13. On the other hand, when the authentication processing 18 is successful, the processing unit 12 skips the authentication processing 19.
[0029] The authentication process 19 includes a comparison between the virtual machine identifier 15b and the virtual machine identifier 15a indicated by the setting information 14. For example, the processing unit 12 determines that the authentication process 19 is successful if the virtual machine identifiers 15a, 15b are the same, and determines that the authentication process 19 is unsuccessful if the virtual machine identifiers 15a, 15b are different. If the authentication process 19 is skipped, the virtual machine 13 may be permitted to run even if its virtual machine identifier has changed. Therefore, the virtual machine 13 may be permitted to run even if the physical machine has changed since the time the license was first issued.
[0030] If the authentication process 18 during migration is successful, the processing unit 12 may permit execution of the virtual machine 13 on the condition that the execution complies with the license data 17. For example, if the virtual machine 13 is within its expiration date, the processing unit 12 turns on the function of the virtual machine 13.
[0031] When the virtual machine 13 is executed in the information processing device 10 due to a reason other than migration, the processing unit 12 may perform authentication process 19. In this case, the identity of the information processing device 10 with the physical machine when the license was originally issued is required. When the authentication process 19 fails, the processing unit 12 may determine that the virtual machine 13 has been illegally copied and may refuse to execute the virtual machine 13. When performing the authentication process 19, the processing unit 12 may also perform authentication process 18, or may omit authentication process 18.
[0032] As described above, the information processing device 10 according to the first embodiment performs license authentication of the virtual machine 13. In the license authentication, when the information processing device 10 is a physical machine of a migration destination, the information processing device 10 performs authentication process 18 using the board identifier 16b and skips authentication process 19 using the virtual machine identifier 15b.
[0033] As a result, in a situation where a license is issued for each virtual machine, the virtual machine 13 is protected by the license. Also, the virtual machine identifier 15a depending on the physical machine is associated with the license data 17. Thus, a license violation of illegally duplicating the virtual machine 13 is detected. On the other hand, in the case of a legitimate migration, the execution of the virtual machine 13 by the migration destination physical machine is permitted. Thus, the migration is completed without waiting for procedures such as reacquiring a license from the virtual machine vendor, and migration delays are suppressed. In this way, migration is performed quickly.
[0034] [Second embodiment] Next, a second embodiment will be described. FIG. 2 illustrates an example of an information processing system according to the second embodiment.
[0035] The information processing system of the second embodiment includes a network 30, a storage server 31, an administrator terminal 32, a license server 33, and a plurality of nodes including nodes 100, 100a, and 100b. The network 30 may include a local area network (LAN) or a wide area network such as the Internet. The node 100 corresponds to the information processing device 20 of the first embodiment. The node 100a corresponds to the information processing device 10 of the first embodiment.
[0036] The nodes 100, 100a, and 100b are server devices on which one or more virtual machines can be placed. The nodes 100, 100a, and 100b may be called computers, information processing devices, physical machines, or servers. The nodes 100, 100a, and 100b each execute a hypervisor that controls a virtual machine. The hypervisors of multiple nodes cooperate to form a common virtualization platform. On the same virtualization platform, migration can be performed to change the node on which a virtual machine is placed. The migration may be offline migration, which involves shutting down and restarting the guest OS, or live migration, which replicates memory data without shutting down the guest OS.
[0037] The storage server 31 is a server device that stores data using non-volatile storage such as an HDD or SSD. The storage server 31 stores virtual machine images for starting virtual machines and user data used by the virtual machines. Guest OSs and various middleware programs are packaged as virtual machine images. The virtual machine images are provided by, for example, a virtual machine vendor.
[0038] The administrator terminal 32 is a client device used by an administrator of the information processing system. The administrator may be called an operator. The administrator terminal 32 may be called a computer, an information processing device, a client, or an operator terminal. When creating a new virtual machine, the administrator terminal 32 requests a virtual machine license from the license server 33. The administrator terminal 32 receives license data from the license server 33 and transmits the license data to the node that starts the virtual machine. A license is issued for each virtual machine by a virtual machine vendor. A virtual machine license is different from the licenses of individual software such as a guest OS and middleware included in the virtual machine.
[0039] The administrator terminal 32 may instruct the nodes 100, 100a, and 100b to migrate a virtual machine. Migration may be performed to evacuate a virtual machine on a failed node to another node. Migration may also be performed to evacuate a virtual machine on a node undergoing maintenance work to another node. Migration may also be performed for load balancing, moving a virtual machine from a node with a high load to a node with a low load. When the node on which a virtual machine is placed is changed, the administrator terminal 32 may request the license server 33 to reissue a license for that virtual machine.
[0040] The administrator defines the range of nodes belonging to the same virtualization platform, that is, the range of nodes to which virtual machines can be migrated. The range of the same virtualization platform may be all nodes owned by a certain business operator, or may be a portion of the nodes owned by a certain business operator. The hypervisor of each node holds information indicating the range of the virtualization platform. The hypervisors of multiple nodes belonging to the same virtualization platform communicate with each other.
[0041] The license server 33 is a server device used by a virtual machine vendor. The license server 33 may be called a computer, an information processing device, or a server. The license server 33 may also be replaced by a client device. The license server 33 manages licenses for virtual machine images that the virtual machine vendor provides to businesses. The license server 33 receives a license issuance request from the administrator terminal 32, and transmits license data to the administrator terminal 32. When issuing a license, manual confirmation may be performed. Therefore, it may take several days from receiving a license issuance request to transmitting the license data.
[0042] FIG. 3 is a block diagram illustrating an example of hardware included in a node. The node 100 has a CPU 101, a RAM 102, a HDD 103, an image interface 104, an input interface 105, a media reader 106, and a communication interface 107. The above units are connected to a bus. The other nodes, the storage server 31, the administrator terminal 32, and the license server 33 may have the same hardware as the node 100. The CPU corresponds to the processing unit 12 in the first embodiment. The RAM or the HDD corresponds to the storage unit 11 in the first embodiment.
[0043] The CPU 101 is a processor that executes instructions of a program. The CPU 101 loads at least a part of the program and data stored in the HDD 103 into the RAM 102 and executes the program. The node 100 may have multiple processors. A collection of processors may be called a multiprocessor or simply a "processor."
[0044] The RAM 102 is a volatile semiconductor memory that temporarily stores the programs executed by the CPU 101 and data used in the calculations by the CPU 101. The node 100 may have a type of volatile memory other than a RAM.
[0045] The HDD 103 is a non-volatile storage that stores software programs such as an operating system (OS), middleware, and application software, and data. The node 100 may have other types of non-volatile storage, such as a flash memory or an SSD (Solid State Drive).
[0046] The image interface 104 outputs an image to a display device 111 connected to the node 100 in accordance with an instruction from the CPU 101. The display device 111 is, for example, a CRT (Cathode Ray Tube) display, a liquid crystal display, an organic EL (Electro Luminescence) display, or a projector. Other types of output devices such as a printer may be connected to the node 100.
[0047] The input interface 105 receives an input signal from an input device 112 connected to the node 100. The input device 112 is, for example, a mouse, a touch panel, or a keyboard. A plurality of types of input devices may be connected to the node 100.
[0048] The medium reader 106 is a reading device that reads the program and data recorded on the recording medium 113. The recording medium 113 is, for example, a magnetic disk, an optical disk, or a semiconductor memory. The magnetic disk includes a flexible disk (FD) and a HDD. The optical disk includes a compact disc (CD) and a digital versatile disc (DVD). The medium reader 106 copies the program and data read from the recording medium 113 to another recording medium such as the RAM 102 or the HDD 103. The read program may be executed by the CPU 101.
[0049] The recording medium 113 may be a portable recording medium. The recording medium 113 may be used for distributing programs and data. The recording medium 113 and the HDD 103 may be called computer-readable recording media.
[0050] The communication interface 107 is connected to the network 30. The communication interface 107 may communicate with other nodes, the storage server 31, and the administrator terminal 32. The communication interface 107 may be a wired communication interface connected to a wired communication device such as a switch or a router. The communication interface 107 may also be a wireless communication interface connected to a wireless communication device such as a base station or an access point.
[0051] As described above, virtual machine images provided by virtual machine vendors are protected by licenses. Illegally duplicating a virtual machine image and starting a virtual machine on an unexpected node is a violation of the license. Therefore, the nodes 100, 100a, and 100b perform license authentication when starting a virtual machine.
[0052] However, if license authentication is performed too strictly, there is a risk that node change due to migration cannot be performed smoothly. If a license must be reacquired every time the node on which a virtual machine is placed is changed, it becomes difficult to perform migration in a timely manner. For example, it becomes difficult to quickly evacuate a virtual machine when a node failure occurs. Therefore, the information processing system of the second embodiment performs license authentication taking migration into consideration.
[0053] FIG. 4 is a block diagram showing an example of software contained in a node. The node 100 has a hypervisor 120 and a virtual machine 130. The node 100a has a hypervisor 120a. The hypervisors 120, 120a and the virtual machine 130 are implemented using a program. The other nodes also have similar hypervisors. The hypervisors 120, 120a belong to the same virtualization infrastructure. Therefore, it is possible to move the virtual machine 130 from the node 100 to the node 100a.
[0054] The hypervisor 120 includes an infrastructure ID manager 121, an environment file manager 122, and a migration controller 123. The hypervisor 120a includes an infrastructure ID manager 121a, an environment file manager 122a, and a migration controller 123a. The following describes the hypervisor 120 as a representative. The hypervisor 120a also has the same functions as the hypervisor 120.
[0055] The platform ID management unit 121 holds a platform ID that identifies a virtualization platform. Hypervisors that belong to the same virtualization platform, i.e., hypervisors of a group of nodes that can migrate virtual machines between each other, have the same platform ID. The platform ID may be notified from the administrator terminal 32, or may be determined by the platform ID management units of different nodes communicating with each other. When the virtual machine 130 starts up in the node 100, the platform ID management unit 121 notifies the virtual machine 130 of the platform ID.
[0056] The environment file management unit 122 manages an environment file indicating the license of each virtual machine. The environment file corresponds to the setting information 14 of the first embodiment. The environment file of the virtual machine 130 is generated by the virtual machine 130 when the virtual machine 130 is generated and started for the first time.
[0057] In the case of migration in which the virtual machine 130 is moved to the node 100a, the environment file management unit 122 acquires a copy of the environment file from the virtual machine 130. Then, the environment file management unit 122 transfers the environment file to the hypervisor 120a of the node 100a. The environment file may be directly transmitted between the hypervisors 120 and 120a, or may be copied via another information processing device. In the case of migration in which the node 100 accepts the virtual machine 130, the environment file management unit 122 receives the environment file from the migration source node and provides the environment file to the virtual machine 130.
[0058] The migration control unit 123 executes migration of the virtual machine 130 in response to an instruction from the administrator terminal 32. In the case of migration to move the virtual machine 130 to the node 100a, the migration control unit 123 shuts down the guest OS of the virtual machine 130. The migration control unit 123 releases the hardware resources allocated to the virtual machine 130 and deletes the virtual machine 130 from the node 100.
[0059] In the case of migration in which the node 100 accepts the virtual machine 130, the migration control unit 123 allocates hardware resources to the virtual machine 130. The migration control unit 123 reads out a virtual machine image from the storage server 31, and starts the guest OS and other software of the virtual machine 130 based on the virtual machine image. The hardware resources include processor resources such as the CPU 101, memory resources such as the storage area of the RAM 102, storage resources such as the storage area of the HDD 103, and communication resources such as the bandwidth of the communication interface 107.
[0060] When booting the virtual machine 130, the hypervisor 120 assigns a virtual machine ID to the virtual machine 130. The virtual machine ID in the second embodiment is generated using a node ID that identifies a node. Therefore, the virtual machine ID changes before and after migration. The node ID is, for example, a host name, an IP address, a MAC address, etc. The virtual machine ID includes, for example, the node ID or a hash value of the node ID.
[0061] Although offline migration has been described above, the migration control unit 123 may execute live migration. In the case of live migration in which the virtual machine 130 is moved to the node 100a, the migration control unit 123 suspends the guest OS of the virtual machine 130 without shutting it down, and copies the memory data to the node 100a. The migration control unit 123 releases hardware resources while the virtual machine 130 is in the suspended state, and deletes the virtual machine 130 from the node 100.
[0062] The virtual machine 130 has a guest OS 131, a virtual router 132, a firewall 133, an environment file storage unit 134, and a license management unit 135. The guest OS 131 is an operating system that manages hardware resources allocated to the virtual machine 130 and controls the execution of various software on the virtual machine 130. The virtual router 132 is a software router that transfers packets between the virtual machine 130 and the outside. The firewall 133 is security software that detects and blocks unauthorized communications at the packet level or application level.
[0063] The environment file storage unit 134 stores an environment file indicating a license for the virtual machine 130. The environment file storage unit 134 is implemented, for example, by using a storage area of the RAM 102 allocated to the virtual machine 130. The license management unit 135 manages the environment file and performs license authentication when the virtual machine 130 is started. The license management unit 135 is, for example, a service that is executed when the virtual machine 130 is started.
[0064] The license management unit 135 generates an environment file when creating the virtual machine 130, and stores the environment file in the environment file storage unit 134. At this time, the license management unit 135 acquires a virtual machine ID and an infrastructure ID from the hypervisor 120. The license management unit 135 also receives license data from the administrator terminal 32. The license management unit 135 writes the virtual machine ID, the infrastructure ID, and the license data in the environment file.
[0065] In the case of migration from node 100 to node 100a, the license management unit 135 provides the environment file stored in the environment file storage unit 134 to the hypervisor 120. After that, the license management unit 135 obtains the environment file from the hypervisor 120a and stores it in the environment file storage unit 134. In addition, the license management unit 135 obtains a virtual machine ID and an infrastructure ID from the hypervisor 120a. Then, the license management unit 135 performs license authentication based on the environment file.
[0066] In license authentication, the license management unit 135 verifies the legitimacy of the node that starts the virtual machine 130, and therefore in principle requires that the current virtual machine ID and the virtual machine ID in the environment file match. However, since the virtual machine ID has changed when starting after migration, the above two virtual machine IDs do not match. Therefore, instead of matching the virtual machine ID, the license management unit 135 requires that the current platform ID and the platform ID in the environment file match. Furthermore, in addition to the legitimacy of the node, the license management unit 135 verifies the fulfillment of other license conditions, such as the license expiration date.
[0067] FIG. 5 is a diagram illustrating an example of an environment file. The environment file 136 is stored in the environment file storage unit 134 of the virtual machine 130. When migrating from the node 100 to the node 100a, the environment file 136 is saved in the hypervisor 120 and transferred to the hypervisor 120a.
[0068] The environment file 136 includes a virtual machine ID, a platform ID, a serial number, an expiration date, and a function flag. The serial number, the expiration date, and the function flag are defined by the virtual machine vendor. The serial number, the expiration date, and the function flag are included in the license data transmitted from the license server 33 to the administrator terminal 32.
[0069] The virtual machine ID is an identifier for identifying the virtual machine 130, and changes depending on the node on which the virtual machine 130 is placed. The virtual machine ID is generated from identification information for identifying the node and identification information for distinguishing the virtual machine within the node. The virtual machine ID may be a character string obtained by concatenating the above two pieces of identification information, may be a concatenation of codes (e.g., hash values) converted from each of the above two pieces of identification information, or may be a code converted from a character string obtained by concatenating the above two pieces of identification information.
[0070] The platform ID is an identifier for identifying a virtualization platform corresponding to the range of nodes on which migration can be performed. Movement of the virtual machine 130 between nodes having the same platform ID is a valid migration permitted by the virtual machine vendor. The serial number is an identifier for identifying the license of the virtual machine 130.
[0071] The expiration date is the date of the license for the virtual machine 130. Even if the node that starts the virtual machine 130 is legitimate, starting the virtual machine 130 after the expiration date is refused. The expiration date of a provisional license, which will be described later, is set to a short period such as one week or one month. The function flag indicates whether the licensee can use each function included in the virtual machine 130. The function of the virtual machine 130 corresponds to software such as a web server, for example. When the virtual machine 130 starts up, the virtual machine 130 enables functions whose function flags are ON and disables functions whose function flags are OFF.
[0072] The virtual machine ID and the license data are linked by the virtual machine vendor. When issuing a license, the virtual machine ID is provided by the business operator to the virtual machine vendor. The license data may include a digital signature indicating the authenticity of the virtual machine ID. The virtual machine 130 can confirm that the virtual machine ID in the environment file 136 has not been tampered with by verifying the digital signature. Also, the platform ID may be provided by the business operator to the virtual machine vendor, and the platform ID and the license data may be linked by the virtual machine vendor. The license data may include a digital signature indicating the authenticity of the platform ID.
[0073] Next, the procedures for creating a virtual machine, migration, and license authentication will be explained. FIG. 6 is a sequence diagram illustrating an example of creating a virtual machine. The administrator terminal 32 transmits a virtual machine creation request to the hypervisor 120 (S10). The hypervisor 120 reads a virtual machine image from the storage server 31, and starts the virtual machine 130 based on the virtual machine image. The hypervisor 120 also generates a virtual machine ID that depends on the node ID of the node 100, and transmits the virtual machine ID to the virtual machine 130. The virtual machine 130 generates an environment file in the environment file storage unit 134, and writes the virtual machine ID to the environment file (S11). The virtual machine 130 transmits a completion response indicating the completion of the startup to the hypervisor 120 (S12).
[0074] The platform ID management unit 121 transmits the platform ID of the virtualization platform to which the hypervisor 120 belongs to the license management unit 135. The license management unit 135 writes the platform ID in the environment file (S13). The license management unit 135 transmits a completion response indicating that the platform ID has been normally received to the platform ID management unit 121 (S14).
[0075] The administrator terminal 32 transmits the temporary license data to the license management unit 135. The temporary license data is license data indicating a temporary license issued before the creation of the virtual machine 130, and is transmitted from the license server 33 to the administrator terminal 32. The temporary license data includes a serial number and a temporary expiration date that is shorter than that of the permanent license. The temporary license data is not linked to a virtual machine ID. The license management unit 135 writes the temporary license data to the environment file (S15). The license management unit 135 transmits the virtual machine ID of the virtual machine 130 to the administrator terminal 32 (S16).
[0076] The administrator terminal 32 transmits a permanent license request including the virtual machine ID to the license server 33. The license management unit 135 may further transmit an infrastructure ID to the administrator terminal 32, and the permanent license request from the administrator terminal 32 to the license server 33 may further include the infrastructure ID (S17). The license server 33 transmits permanent license data to the administrator terminal 32. The permanent license data is license data indicating a permanent license issued after the virtual machine 130 is created, and is linked to the virtual machine ID. The permanent license data includes a serial number, a longer expiration date than the temporary license, and a function flag (S18).
[0077] The administrator terminal 32 transmits this license data to the license management unit 135. The license management unit 135 writes this license data in the environment file (S19). The license management unit 135 transmits a completion response to the administrator terminal 32 (S20).
[0078] FIG. 7 is a sequence diagram showing an example of migration. When migrating the virtual machine 130 from the node 100 to the node 100a, the administrator terminal 32 transmits an environment file save request to the environment file management unit 122 (S21). The environment file management unit 122 transmits an environment file save request to the license management unit 135 (S22). The license management unit 135 transmits the environment file stored in the environment file storage unit 134 to the environment file management unit 122 (S23). The environment file management unit 122 transmits a completion response to the administrator terminal 32 (S24).
[0079] The administrator terminal 32 transmits a migration request to the hypervisor 120 (S25). The migration control unit 123 transmits a shutdown command to the guest OS of the virtual machine 130, releases the hardware resources of the virtual machine 130, and deletes the virtual machine 130 from the node 100 (S26). The migration control unit 123 notifies the migration control unit 123a of the completion of deletion of the virtual machine 130.
[0080] The migration control unit 123a reads out the virtual machine image from the storage server 31, and starts the virtual machine 130 based on the virtual machine image. The migration control unit 123a also generates a virtual machine ID that depends on the node ID of the node 100a, and transmits the virtual machine ID to the virtual machine 130 (S27). The virtual machine 130 transmits a completion response to the migration control unit 123a (S28).
[0081] The platform ID management unit 121a transmits the platform ID of the virtualization platform to which the hypervisor 120a belongs to the license management unit 135 (S29). The license management unit 135 transmits a completion response to the platform ID management unit 121a (S30). The environment file management unit 122 transfers the environment file of the virtual machine 130 to the environment file management unit 122a. The environment file management unit 122a transmits the environment file to the license management unit 135. The license management unit 135 stores the environment file in the environment file storage unit 134 (S31). The license management unit 135 transmits the completion response to the environment file management unit 122a (S32).
[0082] The license management unit 135 executes license authentication based on the platform ID received from the hypervisor 120a and the environment file stored in the environment file storage unit 134. If the license authentication is successful, the license management unit 135 turns on some or all of the functions of the virtual machine 130 in accordance with this license data. If the license authentication is unsuccessful, the license management unit 135 turns off the functions of the virtual machine 130. The virtual machine 130 transmits the license authentication result to the hypervisor 120a. The license authentication result indicates the success or failure of the license authentication (S33). The hypervisor 120a transmits the license authentication result to the administrator terminal 32 (S34).
[0083] Note that the environment file is not automatically updated after migration of the virtual machine 130. Even if the current virtual machine ID differs from the virtual machine ID included in the environment file, if the difference occurs due to a valid migration, the migration destination node 100a does not determine the difference as a license violation. If the movement of the virtual machine 130 is not temporary, the administrator terminal 32 may request the license server 33 to reissue the license using a new virtual machine ID. The administrator terminal 32 may transmit the corrected license data to the virtual machine 130. However, the migration of the virtual machine 130 itself is completed without waiting for the license to be reissued.
[0084] FIG. 8 is a flowchart showing an example of a license authentication procedure. Here, in addition to the license authentication immediately after migration, a procedure for license authentication when the virtual machine 130 is started for a reason other than migration will also be described.
[0085] (S40) The license management unit 135 detects the startup of the virtual machine 130. (S41) The license management unit 135 receives the current virtual machine ID from the hypervisor. The license management unit 135 also receives the platform ID of the virtualization platform to which the hypervisor belongs from the hypervisor. The license management unit 135 also receives the environment file that was previously used by the virtual machine 130 from the hypervisor.
[0086] (S42) The license management unit 135 determines whether the current startup of the virtual machine 130 corresponds to startup on the migration destination node. Whether or not the startup is on the migration destination node is identified, for example, through communication with the hypervisor. If it is startup on the migration destination node, the process proceeds to step S44. Otherwise, that is, if it is normal startup, the process proceeds to step S43.
[0087] (S43) The license management unit 135 determines whether the current virtual machine ID received from the hypervisor matches the virtual machine ID included in the environment file. If they match, it is determined that the startup is valid, and the process proceeds to step S45. If they do not match, it is determined that the virtual machine 130 has been illegally copied, and the process proceeds to step S47.
[0088] (S44) The license management unit 135 determines whether the platform ID received from the hypervisor matches the platform ID included in the environment file. If they match, it is determined that a valid migration has been performed, and the process proceeds to step S45. If they do not match, it is determined that an invalid migration has been performed, and the process proceeds to step S47.
[0089] (S45) The license management unit 135 determines whether the license defined in the environment file is still valid. If the license is still valid, the process proceeds to step S46. If the license is not yet valid, the process proceeds to step S47.
[0090] (S46) License management unit 135 enables or disables each function of virtual machine 130 in accordance with the license data in the environment file. Functions whose function flags are ON are enabled, and functions whose function flags are OFF are disabled. Then, the process proceeds to step S48.
[0091] (S47) The license management unit 135 determines that the startup of the virtual machine 130 is a license violation, and disables each function of the virtual machine 130. (S48) The license management unit 135 outputs a license authentication result indicating whether the license authentication was successful or unsuccessful. If step S46 is executed, the license authentication is successful, and if step S47 is executed, the license authentication is unsuccessful.
[0092] As described above, the information processing system of the second embodiment starts a virtual machine based on a virtual machine image provided by a virtual machine vendor. Various software is packaged in the virtual machine image. A license is issued for each virtual machine by the virtual machine vendor. This simplifies the management of the virtual machines.
[0093] Furthermore, the license data for each virtual machine is linked to a virtual machine ID. The virtual machine ID assigned to a virtual machine is an identifier that depends on the node on which the virtual machine is placed. Therefore, license authentication restricts the nodes that can start the virtual machine, and unauthorized duplication of the virtual machine is suppressed.
[0094] Furthermore, license authentication after migration is performed based on the platform ID instead of the virtual machine ID. Nodes with the same platform ID are predefined as nodes that may perform migration. Therefore, a legitimate migration is not determined to be a license violation, and the migration is completed without waiting for procedures such as license reissue. On the other hand, startup on a node with a different platform ID is determined to be an unauthorized migration and is rejected. In this way, unauthorized duplication of virtual machines is suppressed, and legitimate migration of virtual machines is performed quickly. [Explanation of symbols]
[0095] 10,20 Information processing device 11 Storage section 12 Processing section 13 Virtual Machines 14 Configuration Information 15a,15b Virtual Machine Identifier 16a, 16b Base Identifier 17 License Data 18,19 Authentication process
Claims
1. On the computer, acquiring setting information that associates a first virtual machine identifier assigned to a virtual machine, a first infrastructure identifier assigned to a group of computers capable of executing migration of the virtual machine, and license data indicating a license for the virtual machine; When the migration is performed from another computer to the computer, a first authentication process is performed including a comparison between a second infrastructure identifier assigned to a computer group to which the computer belongs and the first infrastructure identifier indicated by the setting information; If the first authentication process is successful, skipping a second authentication process including a comparison between a second virtual machine identifier, which is an identifier assigned to the virtual machine and depends on the computer, and the first virtual machine identifier indicated by the setting information. A virtual machine control program that executes the processing.
2. causing the computer to further execute a process of executing the second authentication process when the virtual machine is started on the computer by a process other than the migration; The virtual machine control program according to claim 1.
3. In the migration, the setting information is transferred from the virtual machine to a first hypervisor executed on the other computer, transferred from the first hypervisor to a second hypervisor executed on the computer, and transferred from the second hypervisor to the virtual machine. The virtual machine control program according to claim 1.
4. the second infrastructure identifier is a common identifier assigned to different hypervisors running on different computers including the computer; The virtual machine control program according to claim 1.
5. the second infrastructure identifier is notified to the virtual machine from a hypervisor executed on the computer, and the first authentication process is executed on the virtual machine. The virtual machine control program according to claim 1.
6. The computer acquiring setting information that associates a first virtual machine identifier assigned to a virtual machine, a first infrastructure identifier assigned to a group of computers capable of executing migration of the virtual machine, and license data indicating a license for the virtual machine; When the migration is performed from another computer to the computer, a first authentication process is performed including a comparison between a second infrastructure identifier assigned to a computer group to which the computer belongs and the first infrastructure identifier indicated by the setting information; If the first authentication process is successful, skipping a second authentication process including a comparison between a second virtual machine identifier, which is an identifier assigned to the virtual machine and depends on the computer, and the first virtual machine identifier indicated by the setting information. A method for controlling a virtual machine.
7. An information processing device, a storage unit that stores setting information that associates a first virtual machine identifier assigned to a virtual machine, a first platform identifier assigned to an information processing device group that can execute migration of the virtual machine, and license data indicating a license for the virtual machine; a processing unit that, when the migration from another information processing device to the information processing device is executed, executes a first authentication process including a comparison between a second platform identifier assigned to an information processing device group to which the information processing device belongs and the first platform identifier indicated by the setting information, and, when the first authentication process is successful, skips a second authentication process including a comparison between a second virtual machine identifier, which is an identifier assigned to the virtual machine and dependent on the information processing device, and the first virtual machine identifier indicated by the setting information; An information processing device having the above configuration.
Citation Information
Patent Citations
Migration control method and device of virtual machine
CN106909439A
Information processing apparatus, information processing system, information processing method, and program
JP2014002583A
Information processing system and control method of the same
JP2016167143A
Managing authentication of virtual clients
US8739257B1
Method of managing virtual computer, computer system and computer
WO2012081114A1
