Virtual machine migration detection by the host operating system
By monitoring host identifiers, the guest OS detects VM migrations and adjusts configurations, addressing inefficiencies in transparent VM migration and enhancing system stability.
Patent Information
- Application Number
- JP2022527960
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-11-13
- Filing Date
- 2020-11-10
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-11-10
AI Technical Summary
Existing methods for virtual machine (VM) migration do not adequately address the need for efficient hardware detection and configuration adjustments in guest operating systems (OS) during transparent migration, leading to inefficiencies and potential errors due to undetected hardware changes.
A guest OS is configured to monitor host identifiers (HIDs) and detect changes using periodic queries to the host computer system, allowing it to determine VM migrations transparently and make necessary configuration adjustments.
Enables seamless VM migration by detecting hardware changes without disrupting the guest OS, thereby reducing errors and improving system efficiency and stability.
Smart Images

Figure 0007563857000001 
Figure 0007563857000002 
Figure 0007563857000003
Abstract
Description
[Technical field]
[0001] The present invention relates generally to methods, systems, and computer program products for virtual machine migration. More specifically, the present invention relates to methods, systems, and computer program products for detection of virtual machine migration by a host operating system. [Background technology]
[0002] A virtual machine (VM) is a software-defined computer and guest operating system that runs on a host system that runs its own host operating system. Generally, a VM provides a software execution environment and may have a virtual processor, virtual system memory, virtual storage, and various virtual devices. VMs represent a form of system virtualization that is implemented through some management functionality, typically hypervisor technology. A hypervisor, also called a virtual machine manager (VMM), achieves fine-grained dynamic resource sharing using a thin layer of code in software or firmware. Hypervisors are generally the primary technology for system virtualization because they provide the greatest level of flexibility in how virtual resources are defined and managed.
[0003] VMs can be migrated between a source host computing platform ("Source Host") and a target host computing platform ("Target Host") connected across a network, which can be a local area network or a wide area network that may include the Internet. Migration allows for clean separation between hardware and software, thereby improving equipment fault management, load balancing, and low level system maintenance. Live migration allows administrators to migrate running VMs between different physical machines without disconnecting running clients or application programs. Summary of the Invention
[0004] An exemplary embodiment is for detecting a VM migration by a guest operating system (OS) running on a VM. One embodiment includes storing in computer memory by the guest OS a VM identifier (VMID) provided by the VM and a first host identifier (HID) provided by the host computer system. The embodiment also includes determining by the guest OS that the VM performs a migration that is transparent to the guest OS. The embodiment further includes detecting by the guest OS that the VM is migrating based on comparing the first HID to a second HID provided to the guest OS in response to a HID request from the guest OS.
[0005] One embodiment includes a computer usable program product that includes a computer readable storage medium and program instructions stored on the storage medium.
[0006] One embodiment includes a computer system including a processor, a computer readable memory, a computer readable storage medium, and program instructions stored on the storage medium for execution by the processor via the memory.
[0007] According to one aspect, a computer-implemented method is provided that includes storing in computer memory by a guest operating system (OS) running on a virtual machine (VM) a VM identifier (VMID) provided by the VM and a first host identifier (HID) provided by a first host computer system, determining by the guest OS that the VM performs a migration that is transparent to the guest OS, detecting by the guest OS that the VM is being migrated based on comparing the first HID and a second HID provided to the guest OS in response to a HID request from the guest OS, and updating configuration settings of the guest OS by the guest OS in response to detecting that the VM is being migrated.
[0008] According to another aspect, a computer program product for detecting VM migration is provided that includes one or more computer readable storage media and program instructions collectively stored on the one or more computer readable storage media, the program instructions being executable by the controller circuit to cause a controller circuit to perform operations including storing, in computer memory, a VM identifier (VMID) provided by the VM and a first host identifier (HID) provided by a first host computer system, by a guest OS running on the VM; determining, by the guest OS, that the VM performs a migration that is transparent to the guest OS; detecting, by the guest OS, that the VM is being migrated based on comparing the first HID and a second HID provided to the guest OS in response to a HID request from the guest OS; and updating, by the guest OS, configuration settings of the guest OS in response to detecting that the VM is being migrated.
[0009] According to another aspect, a computer system is provided that includes a processor, one or more computer-readable storage media, and program instructions collectively stored on the one or more computer-readable storage media, the program instructions being executable by the processor to cause the processor to perform operations including storing, in computer memory, a VM identifier (VMID) provided by the VM and a first host identifier (HID) provided by a first host computer system; determining, by the guest OS, that the VM performs a migration that is transparent to the guest OS; detecting, by the guest OS, that the VM is being migrated based on comparing the first HID and a second HID provided to the guest OS in response to a HID request from the guest OS; and updating, by the guest OS, configuration settings of the guest OS in response to detecting that the VM is being migrated.
[0010] The novel features believed characteristic of the invention are set forth in the appended claims.
[0011] Preferred embodiments of the invention will now be described, by way of example only, with reference to the following drawings in which: [Brief description of the drawings]
[0012] [Figure 1] 1 is a block diagram of a network of data processing systems in which illustrative embodiments may be implemented; [Diagram 2] 1 illustrates a block diagram of a data processing system in which illustrative embodiments may be implemented; [Diagram 3] FIG. 2 is a block diagram of an exemplary computing system environment configuration for hosting VMs and supporting live migration, according to an exemplary embodiment. [Figure 4] 4 is a flowchart of an example process for detecting a VM migration by a guest OS, according to an example embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Live migration is a technology that facilitates moving an entire running VM from one physical machine to another. Live VM migration at the whole VM level means that the active memory and execution state is transferred from the source to the destination. As a result, live VM migration allows a VM to be moved to another physical machine without interrupting the workload inside the VM. Live migration of VMs and standby mode of the physical server is automatically orchestrated by an algorithmic engine.
[0014] The support and framework required for live VM migration can be divided into several models based on the extent of awareness the VM provides to the guest OS that a VM migration is occurring or has occurred. These models are cooperative, notification-only, and transparent. In the cooperative model, the VM provides notification to the guest OS about the VM migration activity and ensures that the notification is received by the guest OS. In the notification-only model, the VM only provides notification to the guest OS about the VM migration activity before and / or after the VM migration occurs. In the transparent model, the VM does not notify the guest OS of the VM migration that has occurred, but instead seeks to make the migration transparent to the guest OS, meaning that the guest OS is not aware that a migration is occurring or has occurred.
[0015] The virtualization technology that makes it easy to create and use VMs also makes them hardware agnostic, meaning that they can run on a variety of hardware. However, this agnostic nature of VMs has limitations. For example, depending on the hardware configuration at the source and destination of a live VM migration, the guest OS running on the migrating VM may not perform optimally without making configuration adjustments to the OS components. As the guest OS becomes aware of the hardware changes, it can make configuration adjustments. However, problems arise when the guest OS is not aware of the hardware changes, such as when the guest OS is running on a VM that is configured for migrations that are transparent to the guest OS.
[0016] In an exemplary embodiment, it is recognized that there is a need for improved hardware detection for a guest OS running on a VM, including one where the guest OS requires or benefits from configuration changes for a particular hardware component, such as a CPU, GPU, etc. Current methods of configuring an OS for a particular hardware configuration typically involve user intervention when troubleshooting by notifying the guest OS of errors that occur, which is inefficient and time intensive.
[0017] Exemplary embodiments recognize that currently available tools or solutions do not address these needs or provide adequate solutions to these needs. Exemplary embodiments generally address or resolve the above problems and other problems related to errors that occur to a guest OS due to VM migration not being detected or not being notified. In some embodiments, a guest OS running on a VM detects VM migration for various VMs having different migration notification models, including a transparent model configured such that a VM is migrated from one host computer system to another without notifying the guest OS. In one embodiment, the guest OS detects that a VM is being migrated from a source computer system to a destination computer system by monitoring a host identifier (HID) and recognizing that a change to the HID means that there has been a change in the hardware on which the VM runs and therefore a VM migration is occurring.
[0018] "Identifier," as used herein, refers to any information that is uniquely associated with some hardware or software, and depending on the embodiment, may be uniquely associated with a particular piece of hardware, such as a serial number or license information, or may be uniquely associated with some broader aspect of the hardware or software, non-limiting examples of the latter aspect being information uniquely associated with the model, class, type, version, brand, or revision of the hardware or software. In some embodiments, migration detection by the guest OS is primarily concerned with certain changes to the host computer system and / or VMs, such that VM migrations to another host computer system with the same hardware are ignored as they are not of concern to the guest OS.
[0019] An embodiment may be implemented as a software application. An application implementing an embodiment may be configured as a modification to an existing system, as a separate application operating in conjunction with an existing system, as a stand-alone application, or a combination thereof.
[0020] In one embodiment, the guest OS running on the VM determines whether the VM notifies the guest OS in case of a VM migration. If the VM determines that the guest OS will not notify the guest OS of the VM migration but will instead perform a migration that is transparent to the guest OS, the guest OS initiates a migration detection routine that includes monitoring the HID. The guest OS detects the VM migration by detecting a change in the HID.
[0021] In one embodiment, a guest OS running on the VM is provided with the VMID and HID in response to one or more queries by the guest OS. In one embodiment, the queries by the guest OS include polling central processing unit (CPU) registers for information about the host computer system running the VM. For example, in one embodiment, the host computer system comprises a CPU that includes special purpose registers (SPRs) implemented on the processor cores that serve various purposes such as debugging, timers, memory management, and interrupts. In some embodiments, the SPRs include registers that store identifying information about the CPU, such as a processor version register (PVR), a system version register (SVR), or a chip identification register (CIR), or combinations thereof. In some embodiments, the PVR stores various information about the CPU, such as manufacturer ID, core type, core version, and core revision. The PVR or CIR distinguish between processor cores with different attributes that may affect software, and the PVR value allows software to distinguish between multiple processor core types. In an integrated device, the PVR identifies the core and the SVR identifies the IC.
[0022] In one embodiment, the guest OS queries firmware or data stored in memory that includes a description of the hardware components associated with the host computer system and / or the VM or both. For example, in one embodiment, the guest OS queries a device tree or configuration file to identify information about the VM and / or the host computer system or both. In some embodiments, the guest OS provides the VMID and the HID in response to a single query, such as a query to the device tree. In some embodiments, in some embodiments, the guest OS provides the VMID in response to one request and the HID in response to another request.
[0023] In one embodiment, a guest OS running on a VM compares the HID received in response to an HID query by the guest OS with a previously stored HID and detects a change in the HID to detect a VM migration that has migrated or is migrating from a source computer system to a destination computer system. In one embodiment, the HID query is one of a plurality of periodic HID queries from the guest OS to the current host computer system. In some embodiments, a plurality of periodic HID queries from the guest OS to the current host computer system are made at regular intervals. In some embodiments, this regular interval can be any desired period within the current hardware capabilities.
[0024] In some embodiments, this regular interval can be selected to prevent errors from occurring after migration. For example, in some embodiments, when a VM migrates to a certain hardware, an error occurs after a period t in the guest OS. In such embodiments, the guest OS never allows time t to elapse without detecting the migration and makes a configuration change to prevent the error, and selects a regular interval i < t to prevent the occurrence of the error.
[0025] In one embodiment, a guest OS running on a VM detects a VM migration that is being or has been migrated from a source computer system to a destination computer system by comparing the HID received in response to a HID query by the guest OS to a previously stored HID and detecting that the HID has changed. In one embodiment, the HID query is one of multiple periodic HID queries from the guest OS to the current host computer system. In some embodiments, multiple periodic HID queries from the guest OS to the current host computer system are made at various intervals. In some embodiments, the various intervals can be any desired period within the current hardware capabilities. In some embodiments, the various intervals depend on the availability of system resources. For example, in some embodiments, the query is set to a low priority and waits for other system processes to complete or system resources to become available before the next query is issued.
[0026] In one embodiment, a guest OS running on a VM detects a VM migration from a source computer system to a destination computer system upon receiving a new HID in response to a query to the host computer system, where a new HID is associated with the destination computer system, and the guest OS detects the new HID based on a comparison to a previously stored HID associated with the source computer system. In one embodiment, the guest OS stores the new HID in computer memory and uses the new HID to detect future VM migrations based on another change to the host computer system's HID. In one embodiment, the guest OS overwrites the previously stored HID when storing the new HID in memory. In one embodiment, the guest OS stores a number of previous host system HIDs in computer memory in addition to storing the current HID.
[0027] In one embodiment, a guest OS running on the VM detects a VM migration from a source computer system to a destination computer system based at least in part on a comparison of a previously received HID to a recently received HID. In such an embodiment, the guest OS detects that a configuration change to the guest OS is desirable based on the recently received HID. In such an embodiment, the guest OS makes the configuration change to the guest OS. In one embodiment, the configuration change includes adjusting a performance measurement setting.
[0028] For clarity of this description, and without implying any limitations to this description, exemplary embodiments are described with some exemplary configurations. From this disclosure, one skilled in the art will be able to envision numerous changes, adaptations, and modifications of the described configurations to achieve the described objectives, and the same are envisioned within the scope of the exemplary embodiments.
[0029] Additionally, the figures and exemplary embodiments use simplified diagrams of a data processing environment: in an actual computing environment, there may be additional structures or components not shown or described herein, or structures or components different from those shown but with similar functionality as described herein, without departing from the scope of the exemplary embodiments.
[0030] Moreover, the exemplary embodiments are described only as examples with respect to specific actual or hypothetical components, and the steps described by various exemplary embodiments can be adapted to provide, for example, an explanation of decisions made by a machine learning classifier model.
[0031] Any particular manifestation of these and other similar artifacts is not intended to be limiting of the present invention, and any suitable manifestation of these and other similar artifacts may be selected within the scope of the exemplary embodiments.
[0032] The examples of the present disclosure are used only for clarity of explanation and are not limited to the exemplary embodiments. Any advantages listed herein are merely examples and are not limited to the exemplary embodiments. Additional or different advantages may be realized by certain exemplary embodiments. Moreover, a specific exemplary embodiment may have some, all, or none of the above-mentioned advantages.
[0033] Additionally, exemplary embodiments may be implemented with respect to any type of data, data source, or access to data sources across a data network. Any type of data storage device may provide data to embodiments of the invention locally at a data processing system or across a data network within the scope of the present invention. When embodiments are described with a mobile device, any type of data storage device suitable for use with a mobile device may provide data locally at the mobile device or across a data network within the scope of exemplary embodiments.
[0034] Exemplary embodiments are described using specific code, contraindication descriptions, computer-readable storage media, high-level features, historical data, designs, architectures, protocols, layouts, schemas, and tools by way of example only and are not limited to these exemplary embodiments. Additionally, exemplary embodiments are described in some examples for clarity of explanation using specific software, tools, and data processing environments. Exemplary embodiments may be used in conjunction with other equivalent or similar target structures, systems, applications, or architectures. For example, other equivalent mobile devices, structures, systems, applications, or architectures thereof may be used within the scope of the present invention in connection with such embodiments of the present invention. An exemplary embodiment may be implemented in hardware, software, or a combination thereof.
[0035] The examples of the present disclosure are used only for clarity of explanation and are not intended to be limiting of the exemplary embodiments. Additional data, operations, actions, tasks, activities, and manipulations are contemplated from the present disclosure, and the same are contemplated within the scope of the exemplary embodiments.
[0036] Any advantages listed herein are merely examples and are not intended to be limiting of example embodiments. Additional or different advantages may be realized by certain example embodiments. Moreover, a particular example embodiment may have some, all, or none of the above-mentioned advantages.
[0037]
[0023] With reference to the drawings, and in particular with reference to Figures 1 and 2, these are diagrams of example data processing environments in which illustrative embodiments may be implemented. Figures 1 and 2 are only examples and are not intended to assert or imply any limitation with respect to the environments in which different embodiments may be implemented. Illustrative embodiments may make many modifications to the depicted environments based on the following description.
[0038] 1 illustrates a block diagram of a network of data processing systems in which an exemplary embodiment may be implemented. Data processing environment 100 is a network of computers in which an exemplary embodiment may be implemented. Data processing environment 100 includes network 102. Network 102 is the medium used to provide communications links between various devices and computers connected together in data processing environment 100. Network 102 may include connections such as wires, wireless communication links, or fiber optic cables.
[0039] Client or server refers only to the role of one particular data processing system connected to the network 102 and is not intended to exclude other configurations or roles of these data processing systems. The data processing system 104 is coupled to the network 102. Software applications may run on any data processing system in the data processing environment 100. Any software application described as running on the processing system 104 of FIG. 1 may be configured to run in a similar manner on another data processing system. Any data or information stored or generated on the data processing system 104 of FIG. 1 may be configured to be stored or generated in a similar manner on another data processing system. The data processing system 104 may store data and may have software applications or software tools that execute computing processes thereon. In one embodiment, the data processing system 104 includes a memory 124, which includes an application 105A that may be configured to implement one or more of the data processor functions described herein according to one or more embodiments.
[0040] Server 106 is coupled to network 102 along with storage unit 108. Storage unit 108 includes database 109 configured to store data as described herein with respect to various embodiments, e.g., image data and attribute data. Server 106 is a conventional data processing system. In one embodiment, server 106 includes a VM application 105B that includes a guest OS, which may be configured to implement one or more processor functions described herein in accordance with one or more embodiments.
[0041] Clients 110, 112, and 114 are also coupled to network 102. A conventional data processing system, such as server 106, or client 110, 112, or 114, may store data and may have software applications or software tools that execute conventional computing processes thereon.
[0042] By way of example only, and without implying any limitation to such an architecture, Figure 1 illustrates certain components that may be used in an exemplary implementation of an embodiment. For example, server 106 and clients 110, 112, 114 are illustrated as servers and clients by way of example only, and no limitation to a client-server architecture is implied. As another example, an embodiment may be distributed across several data processing systems and data networks as illustrated, whereas another embodiment may be implemented on a single data processing system within the scope of an exemplary embodiment. Conventional data processing systems 106, 110, 112, and 114 also represent exemplary nodes in clusters, partitions, and other configurations suitable for implementing an embodiment.
[0043] The device 132 is an example of a conventional computing device as described herein. For example, the device 132 may take the form of a smartphone, a tablet computer, a laptop computer, a stationary or portable client 110, a wearable computing device, or any other suitable device. In one embodiment, the device 132 transmits a request to the server 106 to execute one or more data processing tasks by a VM application 105B, such as an initiation process as described herein of a guest OS hosted by a VM. Any software application described as executing in another conventional data processing system of FIG. 1 may be configured to execute in a similar manner in the device 132. Any data or information stored or generated in another conventional data processing system of FIG. 1 may be configured to be stored or generated in a similar manner in the device 132.
[0044] Server 106, storage unit 108, data processing system 104, and clients 110, 112, 114, and device 132 may be coupled to network 102 using wired connections, wireless communication protocols, or other suitable data connectivity. Clients 110, 112, and 114 may be, for example, personal computers or network computers.
[0045] In the illustrated example, server 106 may provide data such as boot files, OS images, and applications to clients 110, 112, and 114. Clients 110, 112, and 114 may be clients to server 106 in this example. Clients 110, 112, 114, or some combination thereof, may include their own data, boot files, OS images, and applications. Data processing environment 100 may include additional servers, clients, and other devices not shown.
[0046] In the illustrated example, memory 124 can provide data such as boot files, OS images, and applications to processor 122. Processor 122 may also include its own data, boot files, OS images, and applications. Data processing environment 100 may include additional memory, processors, and other devices not shown.
[0047] In one embodiment, one or more VM applications 105A of data processing system 104 and VM application 105B of server 106 implement an embodiment of a VM running a guest OS described herein. In a specific embodiment, a VM running a guest OS is implemented using one of network application 105A and network application 105B in a single server or processing system. In another specific embodiment, a VM running a guest OS is implemented using both network application 105A and network application 105B in a single server or processing system. Server 106 includes multiple GPUs 107 including multiple nodes, each of which may include one or more GPUs described herein.
[0048] In the depicted example, data processing environment 100 may be the Internet. Network 102 may represent a collection of networks and gateways that use Transmission Control Protocol / Internet Protocol (TCP / IP) and other protocols to communicate with one another. At the heart of the Internet is a backbone of data communications links between major nodes or host computers, including thousands of commercial, governmental, educational, and other computer systems that route data and messages. Of course, data processing environment 100 may also be implemented as a number of different types of networks, such as, for example, an intranet, a local area network (LAN), a wide area network (WAN), etc. FIG. 1 is intended as an example, and not as an architectural limitation for different illustrative embodiments.
[0049] Among other uses, the data processing environment 100 may be used to implement a client-server environment in which the exemplary embodiments may be implemented. A client-server environment allows for the distribution of software applications and data across a network such that the applications function using interactivity between traditional client and server data processing systems. The data processing environment 100 may also employ a service-oriented architecture that may package interoperable software components distributed across a network together as a coherent business application. The data processing environment 100 may also take the form of a cloud and employ a cloud computing model of service delivery to enable convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that may be rapidly provisioned and released with minimal administrative effort or interaction with a provider of the services.
[0050] Referring to Figure 2, this figure illustrates a block diagram of a data processing system in which the exemplary embodiments may be implemented. Data processing system 200 is an example of a computer, such as data processing system 104, server 106, or clients 110, 112, and 114 of Figure 1, or other type of device in which computer usable program code or process-implementing instructions may be located for the exemplary embodiments.
[0051] Data processing system 200 may also represent a conventional data processing system or configurations therein, such as conventional data processing system 132 of FIG. 1, in which computer usable program code or instructions implementing the processes of the exemplary embodiments may be located. Data processing system 200 is described as a computer only, by way of example and not by way of limitation. Implementations in the form of other devices, such as device 132 of FIG. 1, may modify data processing system 200, for example, by adding a touch interface, or even eliminate certain illustrated components from data processing system 200, without departing from the general description of the operation and functionality of data processing system 200 described herein.
[0052] In the illustrated example, data processing system 200 employs a hub architecture including a north bridge and memory controller hub (NB / MCH) 202 and a south bridge and input / output (I / O) controller hub (SB / ICH) 204. A processing unit 206, a main memory 208, and a graphics processor 210 are coupled to north bridge and memory controller hub (NB / MCH) 202. Processing unit 206 may include one or more processors, one or more special purpose registers (SPRs), such as a processor version register (PVR), a system version register (SVR), and / or a chip identification register (CIR), and may be implemented using one or more heterogeneous processor systems. Processing unit 206 may be a multi-core processor. Graphics processor 210 may be coupled to NB / MCH 202 via an accelerated graphics port (AGP) in some embodiments.
[0053] In the illustrated example, a local area network (LAN) adapter 212 is coupled to the south bridge and I / O controller hub (SB / ICH) 204. An audio adapter 216, a keyboard and mouse adapter 220, a modem 222, a read only memory (ROM) 224, a universal serial bus (USB) and other ports 232, and PCI / PCIe devices 234 are coupled to the south bridge and I / O controller hub 204 via a bus 238. A hard disk drive (HDD) or solid state drive (SSD) 226 and a CD-ROM 230 are coupled to the south bridge and I / O controller hub 204 via a bus 240. The PCI / PCIe devices 234 may include, for example, Ethernet adapters, add-in cards, and PC cards for notebook computers. PCI uses a card bus controller, but PCIe does not. ROM 224 may be, for example, a flash binary input / output system (BIOS). Hard disk drive 226 and CD-ROM 230 may use, for example, an Integrated Drive Electronics (IDE), Serial Advanced Technology Attachment (SATA) interface, or variations such as External SATA (eSATA) and Micro SATA (eSATA). Super I / O (SIO) devices 236 may be coupled to South Bridge and I / O Controller Hub (SB / ICH) 204 via bus 238.
[0054] Memory such as main memory 208, ROM 224, or flash memory (not shown) are some examples of computer usable storage devices. Hard disk drives or solid state drives 226, CD-ROM 230, and other similarly usable devices are some examples of computer usable storage devices that include computer usable storage media.
[0055] An OS runs on the processing unit 206. The OS coordinates and provides control of various components within the data processing system 200 of FIG. 2. The OS may be a commercially available OS for any type of computing platform, including, but not limited to, server systems, personal computers, and mobile devices. An object-oriented or other type of programming system may run in conjunction with the OS and provide calls to the OS from programs or applications running on the data processing system 200.
[0056] Instructions for the OS, the object oriented programming system, and applications or programs, such as application 105 of FIG. 1, may be located on a storage device, such as in the form of code 226A on hard disk drive 226, and loaded into at least one of one or more memories, such as main memory 208, for execution by processing unit 206. The processes of the illustrative embodiments may be performed by processing unit 206 using computer-implemented instructions, which may be located in a memory, such as main memory 208, read only memory 224, or in one or more peripheral devices.
[0057] Additionally, in some cases, code 226A may be downloaded over network 201A from remote system 201B, in which case similar code 201C is stored on storage device 201D, and in other cases, code 226A may be downloaded over network 201A to remote system 201B, in which case the downloaded code 201C is stored on storage device 201D.
[0058] The hardware in Figures 1-2 may vary depending on the implementation. Other internal hardware or peripheral devices, such as flash memory, equivalent non-volatile memory, or optical disk drives, may be used in addition to or in place of the hardware depicted in Figures 1-2. The processes of the illustrative embodiments may also be applied to multiprocessor data processing systems.
[0059] In some illustrative examples, data processing system 200 may be a personal digital assistant (PDA) configured generally with flash memory to provide non-volatile memory for storing OS files and / or user generated data. The bus system may include one or more buses, such as a system bus, an I / O bus, and a PCI bus. Of course, the bus system may be implemented using any type of communications fabric or architecture that provides for the transport of data between different components or devices attached to the fabric or architecture.
[0060] The communications unit may include one or more devices used to transmit and receive data, such as a modem or network adapter. The memory may be, for example, main memory 208 or a cache, such as a cache found in the north bridge and memory controller hub 202. The processing unit may include one or more processors or CPUs.
[0061] 1-2 and the above embodiments are not meant to imply architectural limitations. For example, data processing system 200 may be a tablet computer, a laptop computer, or a telephone device in addition to taking the form of a mobile or wearable device.
[0062] When a computer or data processing system is described as a virtual machine, virtual device, or virtual component, the virtual machine, virtual device, or virtual component operates in the manner of data processing system 200 using virtualized representations of some or all of the components depicted in data processing system 200. For example, in a virtual machine, virtual device, or virtual component, processing unit 206 is manifested as a virtualized instance of all or some of the hardware processing units 206 available in the host data processing system, main memory 208 is manifested as a virtualized instance of all or a portion of the main memory 208 available in the host data processing system, and disk 226 is manifested as a virtualized instance of all or a portion of the disk 226 available in the host data processing system. The host data processing system in such a case is represented by data processing system 200.
[0063] 3, a block diagram of an exemplary computing system environment 300 in accordance with an exemplary embodiment is shown. The exemplary embodiment includes a virtual machine 304 running a guest OS 314. In one particular embodiment, the virtual machine 304 running the guest OS 314 is an example of the application 105A / 105B of FIG.
[0064] In the illustrated embodiment, a computing system environment 300 configured for live migration includes a source computer system 302 communicatively coupled to a destination computer system 316 over a computer communications network, e.g., a LAN, a WAN, or the Internet. The source computer system 302 includes host computer hardware 312, which is an example of the data processing system 200 shown in FIG. 2, running a host OS 310 that supports the operation of a hypervisor 308. The hypervisor 308 can manage the operation of a pre-migration version of a VM 304, which hosts the operation of a guest OS 314 having a migration detection module 306.
[0065] In the illustrated embodiment, the computing system environment 300 further includes a destination computer system 316. The destination computer system 316 includes a host computer hardware 322, which is an example of the data processing system 200 shown in FIG. 2, and executes a host OS 320 that supports the operation of a hypervisor 318. The hypervisor 318 can then manage the operation of a migrated version of a VM 304', which hosts the operation of a guest OS 304' having a migration detection module 306'. The different virtualized computing environment 210B can also include at least one host server 230B that supports the operation of a hypervisor 240B. The hypervisor 240B can then manage the operation of a number of different VMs 260B, each of which can host the execution of one or more application components (not shown) that are combined to provide a computing application. Additionally, the live migration logic 300 may be coupled to both the secure virtualized computing environment 210A and the disparate virtualized computing environment 210B. The live migration logic 300 may include program code that enables a selected one of the VMs 260A to be live migrated from the secure virtualized computing environment 210A to the disparate virtualized computing environment 210B while maintaining security of data communications therebetween.
[0066] In the illustrated embodiment, program code having migration detection module 306 / 306′ may enable VM migration detection. In some embodiments, migration detection module 306 running on VM 304 detects VM migration for various VMs having different migration notification models, including a transparent model configured for a VM to be migrated from one host computer system to another without notifying guest OS 314. In one embodiment, guest OS 314 detects that a VM has been migrated from source computer system 302 to destination computer system 316 by monitoring a host identifier (HID) and recognizing that a change to the HID means that there has been a change in the hardware running the VM and therefore a VM migration is occurring.
[0067] 4, which is a flow chart of an example process 400 for detecting a VM migration by a guest OS, according to an example embodiment. In a particular embodiment, the guest OS 314 and / or migration detection module 306 perform the process 400.
[0068] In one embodiment, at block 402, the application queries the host VM and / or host OS for a host identifier and a VM migration class. In some embodiments, the application detects whether the VM performs a migration that is transparent to the guest OS. Then, in one embodiment, at block 404, the application creates a host environment profile that includes the host identifier received in response to the request. Then, at block 406, the application initiates a migration detection service to periodically query the host VM and / or OS for the identifier and compare the response to the identifier stored in the environment profile. Then, at block 408, the application determines that the VM is being migrated by detecting that the identifier in the query response is different from the identifier stored in the environment profile. Finally, at block 410, the application updates the environment profile by replacing the identifier with the new identifier received in the query response.
[0069] The following definitions and abbreviations should be used in interpreting the claims and the specification. As used herein, the terms "comprises," "comprising," "includes," "including," "has," "having," "contains," or "containing," or any variation thereof, are intended to cover a non-exclusive inclusion. For example, a composition, mixture, process, method, article, or device that includes a list of elements is not necessarily limited to only those elements, but can include other elements not expressly listed or inherent in such composition, mixture, process, method, article, or device.
[0070] Moreover, the term "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any embodiment or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. The terms "at least one" and "one or more" are understood to include any integer number greater than or equal to one, i.e., 1, 2, 3, 4, 5, etc. The term "multiple" is understood to include any integer number greater than or equal to two, i.e., 2, 3, 4, 5, etc. The term "connected" can include indirect and direct "connected."
[0071] When reference is made herein to "one embodiment," "an embodiment," "an exemplary embodiment," or the like, the described embodiment may include a particular feature, structure, or characteristic, but each embodiment may or may not include the particular feature, structure, or characteristic. Moreover, such phrases do not necessarily refer to the same embodiment. Furthermore, when a particular feature, structure, or characteristic is described in connection with one embodiment, it is submitted that it is within the knowledge of one of ordinary skill in the art to affect such feature, structure, or characteristic in connection with other embodiments, whether or not explicitly described.
[0072] The terms "about," "substantially," "approximately," and variations thereof are intended to include the degree of error associated with the measurement of a particular quantity based on the equipment available at the time of filing this application. For example, "about" can include a range of ±8% or 5%, or 2% of a given value.
[0073] The description of various embodiments of the present invention has been presented for illustrative purposes, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements beyond those found in the market, or to enable others skilled in the art to understand the embodiments described herein.
[0074] The description of various embodiments of the present invention has been presented for illustrative purposes, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements beyond those found in the market, or to enable others skilled in the art to understand the embodiments described herein.
[0075] Thus, in exemplary embodiments, a computer-implemented method, system or apparatus, and computer program product are provided for managing participation in an online community and other related features, functions, or operations. Where an embodiment, or portions thereof, is described in terms of a type of device, a computer-implemented method, system or apparatus, computer program product, or portions thereof, it is adapted or configured for use with that type of device, as appropriate and equivalent terms.
[0076] Where an embodiment is described as being implemented in an application, delivery of the application in a software as a service (SaaS) model is contemplated within the scope of the exemplary embodiments. In a SaaS model, the capabilities of the application implementing the embodiment are provided to a user by running the application in a cloud infrastructure. The user can access the application with a variety of client devices through a thin-client interface, such as a web browser (e.g., web-based email) or other light-client application. The user does not manage or control the underlying cloud infrastructure, including the network, servers, OS, or storage of the cloud infrastructure. In some cases, the user may not even manage or control the capabilities of the SaaS application. In other cases, the SaaS implementation of the application may allow for possible exceptions to limited user-specific application configuration settings.
[0077] The present invention may be a system, method, or computer program product, or combination thereof, at any possible level of technical detail integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to perform aspects of the present invention.
[0078] A computer readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), static random access memories (SRAM), portable compact disk read-only memories (CD-ROM), digital versatile disks (DVDs), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridge-in-groove structures having instructions recorded thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, should not be construed as being themselves transitory signals such as electric waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or electrical signals transmitted over wires.
[0079] The computer readable program instructions described herein can be downloaded from a computer readable storage medium to each computing / processing device or to an external computer or storage device via a network, such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network can include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and sends the computer readable program instructions for storage in a computer readable storage medium in each computing / processing device.
[0080] The computer readable program instructions for carrying out the operations of the present invention may be either assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or source or object code written in any combination of one or more programming languages, including object oriented programming languages such as Smalltalk, C++, and procedural programming languages such as the "C" programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or partially on the remote computer or entirely on the remote computer. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, a field programmable gate array (FPGA), or a programmable logic array (PLA), may execute computer readable program instructions according to state information of the computer readable program instructions to implement aspects of the invention.
[0081] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.
[0082] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to generate a machine such that the instructions, executed via the processor of the computer or other programmable data processing apparatus, generate means for implementing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may also be stored on a computer readable storage medium that can cause a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner, and thus a computer readable storage medium having instructions stored therein may include an article of manufacture including instructions that implement aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.
[0083] The computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device such that the instructions, which execute on the computer, other programmable apparatus, or other device, implement the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams, causing a series of operational steps to be performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process.
[0084] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block of the flowcharts or block diagrams may represent a module, segment, or portion of instructions, including one or more executable instructions for implementing the specified logical function. In some alternative embodiments, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may be executed in reverse order, depending on the functionality involved. It should also be noted that each block of the block diagrams and / or flowchart illustrations, as well as combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that performs the specified functions or operations or implements a combination of dedicated hardware and computer instructions.
[0085] Embodiments of the present invention may be delivered as part of a service agreement with a client corporation, a non-profit organization, a government agency, an internal organizational structure, and the like. Aspects of these embodiments may include configuring a computer system to execute and deploy software, hardware, and web services that implement some or all of the methods described herein. Aspects of these embodiments may also include analyzing a client's operations and making recommendations responsive to the analysis, building a system that implements some of the recommendations, integrating the system into existing processes and infrastructure, metering the use of the system, allocating costs to users of the system, and billing for the use of the system. Although each of the above embodiments of the present invention has been described by describing individual advantages, the present invention is not limited to any particular combination thereof. Conversely, such embodiments may be combined in any manner and number depending on the intended deployment of the present invention without losing their beneficial effects.
Claims
1. storing in computer memory, by a guest operating system (OS) running on a virtual machine (VM), a first host identifier (HID) provided by a first host computer system; determining, by the guest OS, based on information provided by the VM, that the VM is configured to perform a transparent migration without notification to the guest OS; detecting, by the guest OS, that the VM is being migrated based on comparing the first HID to a second HID provided to the guest OS in response to a HID request from the guest OS if the guest OS determines that the VM is configured to be migrated transparently; updating, by the guest OS, configuration settings of the guest OS in response to detecting that the VM is being migrated; 4. A computer-implemented method comprising:
2. 2. The computer-implemented method of claim 1, wherein the VM-provided information is a VM identifier (VMID) provided by the VM in response to a VMID request from the guest OS and stored in the computer memory.
3. 3. The computer-implemented method of claim 2, wherein the first HID is provided by the first host computer system in response to an initial HID request from the guest OS.
4. The computer-implemented method of claim 2 , wherein the VMID and the first HID are provided to the guest OS in response to an initial request from the guest OS.
5. 3. The computer-implemented method of claim 2, wherein determining that the VM is configured to transition transparently and without notification to the guest OS is based at least in part on the VM-ID provided by the VM.
6. 2. The computer-implemented method of claim 1, further comprising storing, by the guest OS, the second HID in the computer memory in response to detecting that the VM is being migrated.
7. 7. The computer-implemented method of claim 6, wherein storing the second HID comprises overwriting the first HID in the computer memory.
8. The computer-implemented method of claim 1 , wherein updating the configuration settings includes adjusting settings for performance measurement.
9. The computer-implemented method of claim 8 , wherein updating the configuration settings includes determining to make changes to settings based at least in part on the second HID.
10. A method for storing, by a guest operating system (OS) running on a virtual machine (VM), in computer memory, a VM identifier (VMID) provided by the VM and a first host identifier (HID) provided by a first host computer system; determining, by the guest OS, that the VM will perform a migration that is transparent to the guest OS; detecting, by the guest OS, that the VM has been migrated based on comparing the first HID with a second HID provided to the guest OS in response to a HID request from the guest OS; and updating, by the guest OS, configuration settings of the guest OS in response to detecting that the VM is being migrated; wherein the HID request is one of a plurality of periodic HID requests from the guest OS to a current host computer system.
11. The computer-implemented method of claim 10 , wherein the periodic HID requests include requests from the guest OS made at regular intervals.
12. The computer-implemented method of claim 10 , wherein the plurality of periodic HID requests comprises requests from the guest OS made at various intervals.
13. 1. A computer system including a processor, one or more computer readable storage media, and program instructions collectively stored on the one or more computer readable storage media, the program instructions causing the processor to: storing in computer memory by a guest operating system (OS) running on a virtual machine (VM) a first host identifier (HID) provided by a first host computer system; determining, by the guest OS, based on information provided by the VM, that the VM is configured to perform a transparent migration without notification to the guest OS; detecting, by the guest OS, that the VM is being migrated based on comparing the first HID to a second HID provided to the guest OS in response to a HID request from the guest OS if the guest OS determines that the VM is configured to be migrated transparently; updating, by the guest OS, configuration settings of the guest OS in response to detecting that the VM is being migrated; A computer system executable by the processor to cause the computer to perform operations including:
14. 14. The computer system of claim 13, wherein the information provided by the VM is a VM Identifier (VMID) provided by the VM in response to a VMID request from the guest OS and stored in the computer memory.
15. 15. The computer system of claim 14, wherein the first HID is provided by the first host computer system in response to an initial HID request from the guest OS.
16. 15. The computer system of claim 14, wherein the VMID and the first HID are provided to the guest OS in response to an initial request from the guest OS.
17. 14. The computer system of claim 13, wherein determining that the VM is configured to migrate transparently and without notification to the guest OS is based at least in part on the VM-ID provided by the VM.
18. 14. The computer system of claim 13, further comprising storing, by the guest OS, a second HID in the computer memory in response to detecting that the VM is being migrated.
19. 20. The computer system of claim 18, wherein storing the second HID comprises overwriting the first HID in the computer memory.
20. 14. The computer system of claim 13, wherein updating the configuration settings includes adjusting performance measurement settings.
21. 21. The system of claim 20, wherein updating the configuration settings includes determining to change settings based at least in part on the second HID.
22. A computer system including a processor, one or more computer-readable storage media, and program instructions collectively stored on the one or more computer-readable storage media, the program instructions causing the processor to: storing in computer memory by a guest operating system (OS) running on the virtual machine (VM), a VM identifier (VMID) provided by the virtual machine (VM) and a first host identifier (HID) provided by a first host computer system; determining, by the guest OS, that the VM will perform a migration that is transparent to the guest OS; detecting, by the guest OS, that the VM has been migrated based on comparing the first HID with a second HID provided to the guest OS in response to a HID request from the guest OS; and updating, by the guest OS, configuration settings of the guest OS in response to detecting that the VM is being migrated; and the HID request is one of a plurality of periodic HID requests from the guest OS to a current host computer system.
23. 23. The computer system of claim 22, wherein the plurality of periodic HID requests comprises requests from the guest OS made at regular intervals.
24. 23. The computer system of claim 22, wherein the plurality of periodic HID requests comprises requests from the guest OS made at various intervals.
25. A computer program comprising program code means adapted to perform the method according to any of claims 1 to 12 when said method is executed on a computer.
Citation Information
Patent Citations
Method of executing dispersion application-program
JP1990109136A
Method and system for detecting virtual machine migration
US20150032836A1
