Information processing device and method for controlling information processing device
The information processing device addresses the inability of conventional server virtualization to detect guest OS abnormalities by implementing a host-side and guest-side processing unit to request and respond to status information, ensuring timely restarts or reinitializations for enhanced system availability.
Patent Information
- Application Number
- JP2020102616
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-06-12
- Publication Date
- 2024-10-03
- Estimated Expiration
- 2040-06-12
AI Technical Summary
Conventional server virtualization technologies fail to detect abnormalities in guest operating systems (OS) from the host OS perspective, leading to potential system failures and reduced availability.
An information processing device that includes a host-side processing unit and a guest-side processing unit, where the host OS periodically requests status information from the guest OS, and upon detecting abnormalities, initiates restarts or reinitializations to maintain system availability.
Enables the host OS to detect and respond to abnormalities in the guest OS, improving system availability by restarting or reinstalling the guest OS when necessary.
Smart Images

Figure 0007560968000001 
Figure 0007560968000002 
Figure 0007560968000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, and How to control it Regarding. [Background technology]
[0002] 2. Description of the Related Art Conventionally, server virtualization technology that allows multiple virtual machine systems to be started and used on a host OS has been known (Non-Patent Document 1). [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Etsuji Nakai, "Practical Use of KVM Server Virtualization", Nikkei Linux, September 2015, pp.138-143 Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the above conventional technology, the host OS and the guest OS operate as different systems, so that the host OS cannot detect an abnormality in a process on the guest OS or an abnormality in the guest OS itself.
[0005] The present invention has been made in view of the above-mentioned circumstances, and provides an information processing device capable of detecting an abnormality in a process on a guest OS or an abnormality in the guest OS itself from a host OS; How to control it One of its objectives is to provide. [Means for solving the problem]
[0006] One aspect of the present invention that solves the problems of the conventional examples described above is an information processing device having a controller unit including a storage unit, a host side processing means that executes processing of a host operating system, and a guest side processing means that executes processing as a guest operating system on a virtual machine system that operates on the host operating system executed by the host side processing means, wherein the controller unit accepts requests for status information as processing of an application program that operates within a guest operating system executed by the guest side processing means, responds to the request, and provides status information that represents the operating status of the guest operating system.
[0007] In this way, by configuring the host side to periodically request status information and the guest side to respond to it, the host OS can detect abnormalities in processes on the guest OS or abnormalities in the guest OS itself.
[0008] Here, the host side processing means of the controller unit may send a request for status information to the guest side processing means, and if the status information is not obtained in response to the status information request, or if the obtained status information indicates an abnormality, the host side processing means may restart the guest operating system executed by the guest side processing means.
[0009] This allows the guest OS to be restarted even if an abnormality occurs, improving availability on the guest OS side.
[0010] Furthermore, the host-side processing means of the controller unit may send a status information request to the guest-side processing means after restarting the guest operating system executed by the guest-side processing means, and if no status information is obtained in response to the status information request, or if the obtained status information indicates an abnormality, initialize the guest operating system.
[0011] Even if rebooting the guest OS does not restore the system, you can improve the availability of the guest OS by initializing it.
[0012] In addition, the host side processing means of the controller unit may hold an installation disk image of a virtual machine system including a guest operating system, and when initializing the guest operating system, may use the installation disk image to reinstall the virtual machine system including the guest operating system.
[0013] This improves the restartability of the guest OS and improves availability on the guest OS side.
[0014] Another aspect of the present invention is a control method for an information processing device, in which a controller unit executes a host side processing step for executing processing of a host operating system, and a guest side processing step for executing processing as a guest operating system on a virtual machine system running on the host operating system executed in the host side processing step, and the controller unit accepts a request for status information as processing of an application program running within the guest operating system executed in the guest side processing step, responds to the request, and provides status information representing the operating status of the guest operating system.
[0015] Yet another aspect of the present invention is a program that causes a computer running a host operating system to function as a means for operating a virtual machine system on the host operating system, a means for executing a guest operating system on the virtual machine system, and a status confirmation means that runs on the host operating system and checks the status of a process running on the guest operating system. Effect of the Invention
[0016] According to the present invention, an abnormality in a process on a guest OS or an abnormality in the guest OS itself can be detected from the host OS. [Brief description of the drawings]
[0017] [Figure 1] 1 is a block diagram illustrating an example of a configuration of an information processing device according to an embodiment of the present invention. [Diagram 2] 1 is a functional block diagram illustrating an example of an information processing device according to an embodiment of the present invention. [Diagram 3] 1 is a flowchart illustrating an example of processing on a guest OS of an information processing device according to an embodiment of the present invention. [Figure 4] 1 is a flowchart illustrating an example of a process for managing a guest OS in an information processing device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] An embodiment of the present invention will be described with reference to the drawings. As shown in Fig. 1, an information processing device 1 according to an embodiment of the present invention includes a control unit 11, a main memory unit 12, an interface unit 13, a storage unit 14, and a network communication unit 15. Here, the control unit 11, the main memory unit 12, the interface unit 13, and the network communication unit 15 correspond to the controller unit of the present invention.
[0019] The control unit 11 is a program-controlled device such as a CPU, and operates according to a program stored in the main memory unit 12. In one example of the present embodiment, the control unit 11 operates as a first operating system (hereinafter referred to as a host OS), and also executes processing as a virtual machine system (VM) on the first operating system. Furthermore, the control unit 11 operates a second operating system (hereinafter referred to as a guest OS) on the virtual machine system.
[0020] The control unit 11 executes the processing of the corresponding application programs on each of the operating systems, the host OS and the guest OS. The specific content of the processing of the control unit 11 will be described later.
[0021] The main memory unit 12 is a memory device or the like, and stores a program executed by the control unit 11. This program is read from a system area set in the storage unit 14 and stored in the main memory unit 12. The main memory unit 12 also operates as a work memory for the control unit 11.
[0022] The interface unit 13 is interposed between the control unit 11 and the storage unit 14 , and executes processing to write data to the storage unit 14 or read data from the storage unit 14 in accordance with instructions input from the control unit 11 .
[0023] The storage unit 14 is a disk device such as a hard disk drive (HDD) or a solid state drive (SSD), and holds various data. In one example of the present embodiment, the storage unit 14 has a storage area divided into a program storage area 14a, a system area 14b, and a user data area 14c.
[0024] Of these, the program storage area 14a stores the host OS program, application programs executed on the host OS, and the like.
[0025] Also, the system area 14b stores an image file of a file system for a guest OS, its backup, and information on access rights for each user to each file and directory in the user data area 14c, user registration authentication information, etc. One of the features of this embodiment is that data of an installation image (initial image) of an image file of a file system for a guest OS is held as a backup separately from the image file of the file system used by the virtual machine system.
[0026] At least one directory (hereinafter, for convenience, referred to as a shared directory) is stored in the user data area 14c, and files that are user data are stored under each shared directory.
[0027] The network communication unit 15 includes a plurality of network interfaces LAN1, LAN2, ... (hereinafter, when there is no need to distinguish between them, the reference numeral will be abbreviated to LAN). This network communication unit 15 is connected to the network via any of the network interfaces LAN, and transmits and receives information to and from computer devices (including itself) on the network according to instructions input from the control unit 11.
[0028] In this embodiment, the network communication unit 15 includes three network interfaces LAN1, LAN2, and LAN3. LAN1 is configured with communication parameters such as an IP address by the guest OS and is controlled by the guest OS. LAN2 and LAN3 are configured with communication parameters such as an IP address by the host OS and are controlled by the host OS.
[0029] That is, application programs on the guest OS send and receive information to and from computer devices on the network via the network interface LAN1. In this embodiment, the guest OS logically sets a virtual network interface (virtual NIC) therein. The virtual machine system then passes through (outputs as is) data that is instructed to be sent via this virtual network interface to the network interface LAN1. The virtual machine system also passes through data that arrives at the network interface LAN1 to the virtual network interface set by the guest OS.
[0030] In this example, application programs on the host OS transmit and receive information to and from computer devices on the network via the network interface LAN2 or LAN3.
[0031] Next, a description will be given of the operation of the control unit 11. The control unit 11 in this embodiment functionally includes a host-side processing unit 20 that executes a host OS to operate as the host OS and also operates according to an application program on the host OS, and a guest-side processing unit 30 that executes a guest OS to operate as the guest OS and also operates according to an application program on the guest OS, as shown in FIG.
[0032] The host-side processing unit 20 functionally includes a file management unit 21, a virtual machine system unit 22, and a guest OS management unit 23. The guest-side processing unit 30 functionally includes a file system sharing processing unit 31, a file search unit 32, and a response processing unit 33.
[0033] The file management unit 21 accepts an access request from another information processing device (such as a personal computer) on the network, instructed by the user. The file management unit 21 authenticates the user of the information processing device that is the source of the access request. This authentication may be performed by a conventionally known method, such as receiving authentication information such as the user name and password of the user from the information processing device and comparing the user name and password recorded in the registered authentication information previously stored in the system area 14b of the storage unit 14.
[0034] The file management unit 21 accepts requests from the other information processing devices operated by the authenticated users to write user data to the user data area 14c of the storage unit 14 and to read user data stored in the user data area 14c.
[0035] In one example of this embodiment, a shared directory is generated in the user data area 14c. In addition, in the system area 14b, access right information is stored that associates information for identifying the shared directory with information indicating whether each user can read and write the user data (files) in the shared directory for each shared directory. In addition, the information for identifying the shared directory may be the path name of the shared directory.
[0036] When the file management unit 21 receives user data (various files) and information specifying the shared directory where the data is to be stored from the other information processing device operated by the authenticated user, the file management unit 21 refers to the access right information and checks whether the authenticated user is allowed to write to the shared directory (storage destination) where the data is to be stored, specified by the information. If the user is allowed to write to the storage destination, the file management unit 21 stores the received user data in the shared directory where the data is to be stored.
[0037] Furthermore, when the file management unit 21 receives information (which may be a path name including a shared directory specification) specifying user data from the other information processing device operated by the authenticated user, it refers to the access right information and checks whether the authenticated user is allowed to read data from the shared directory (read source) specified by the information. If the user is set to be allowed to read data from the read source, the file management unit 21 reads the user data specified by the received information from the read source shared directory and transmits it to the other information processing device via the network.
[0038] That is, in this example of the present embodiment, the access rights to each file are determined based on the access rights information of the shared directory that contains the file.
[0039] The file management unit 21 also performs processes such as rewriting the access right information by the user set as the administrator, and moving and deleting user data. However, since the file management unit 21 operates as a so-called NAS (Network Attached Storage) and is widely known, a detailed explanation will be omitted here.
[0040] The virtual machine system unit 22 is realized by using a virtual machine system program that runs on the host OS, such as KVM (Kernel-based Virtual Machine) / QEMU, etc. This virtual machine system unit 22 provides functions as a virtual CPU, virtual memory, virtual input / output interface, and virtual network interface (virtual NIC), and runs a guest OS on it.
[0041] In the example of this embodiment, the virtual machine system unit 22 sets a virtual file system (such as VirtFS) to realize access from the guest OS to the system area 14b and the user data area 14c of the storage unit 14 of the information processing device 1. As a result, the host-side processing unit 20 makes the authentication information (user name, etc.) of the user in the host OS and the information of the access right of each user set on the host OS side for each file stored in the user data area 14c of the storage unit 14 accessible from the guest OS executed by the guest-side processing unit 30.
[0042] The virtual machine system unit 22 also mounts a file of a file system image for the virtual machine system stored in the system area 14b as a file system in a virtual disk device logically connected to the virtual machine system, and starts a guest OS program recorded in the file system image. Data such as application programs executed on the guest OS are also recorded in the file system image.
[0043] In this embodiment, the virtual machine system unit 22 provides at least one logical virtual network interface.
[0044] The guest OS management unit 23 repeatedly sends a request for state information to the guest side processing unit 30 at a predetermined timing (for example, at regular timing). The guest OS management unit 23 also waits for a response to the request for state information sent from the guest side processing unit 30. The guest OS management unit 23 measures the time for which it is waiting for a response, and when this time exceeds a predetermined time threshold, it assumes that no state information has been obtained and executes abnormality processing, which will be described later.
[0045] Furthermore, if the guest OS management unit 23 receives a response to the request for status information from the guest-side processing unit 30 before the time threshold is exceeded, the guest OS management unit 23 judges whether the content of the response indicates an abnormality. If the content of the response does not indicate an abnormality, the guest OS management unit 23 waits until it sends out a request for status information at the next timing. On the other hand, if the content of the received response indicates an abnormality, the guest OS management unit 23 executes the next abnormality processing.
[0046] If no status information is obtained in response to a request for status information, or if the obtained status information indicates an abnormality, the guest OS management unit 23 executes the following processing as an abnormality process.
[0047] That is, the guest OS management unit 23 instructs the guest side processing unit 30 to restart the guest OS. This instruction can be given as an instruction to reboot the guest OS, for example.
[0048] After issuing an instruction to execute a restart, the guest OS management unit 23 repeatedly sends out a request for state information at a predetermined timing (for example, at regular timing). If the guest OS management unit 23 does not obtain state information in response to the request for state information even after a predetermined time (restart waiting time) has elapsed after issuing an instruction to execute a restart, or if the obtained state information indicates an abnormality, the guest OS management unit 23 initializes the guest OS.
[0049] Specifically, when initializing the guest OS, the guest OS management unit 23 stops the operation of the virtual machine system unit 22. Next, the guest OS management unit 23 deletes the file of the file system image for the virtual machine system stored in the system area 14b, and copies the file of the backup (initial image) of the file system image for the virtual machine system stored in the system area 14b. The file obtained by this copying becomes the file of the file system image for the new virtual machine system.
[0050] In other words, this causes the guest OS management unit 23 to reinstall the virtual machine system including the guest OS.
[0051] Then, the guest OS management unit 23 restarts the virtual machine system unit 22. In this case, the virtual machine system unit 22 restarts using the file system image for the virtual machine system that has become the new initial image.
[0052] The file system sharing processing unit 31 of the guest side processing unit 30 mounts (makes accessible) the file system of the storage unit 14 under the control of the host OS as a file system of the guest OS via a virtual file system (e.g., VirtFS) provided by the virtual machine system unit 22 running on the host OS side.
[0053] In this embodiment, the file system sharing processing unit 31 mounts the system area 14b and the user data area 14c in the storage unit 14 on the guest OS side.
[0054] In this embodiment, the user settings in the host OS are not the same as those in the guest OS, so the access rights of the host OS user are ignored on the guest OS side. Under this setting, a command that operates with the authority of any user account from the guest OS side can access all files in the system area 14b and user data area 14c of the storage unit 14 on the host OS side.
[0055] The file system sharing processing unit 31 also accepts input of authentication information including information (user name) identifying the user who requested the file search and information about the user's password from a file search unit 32 (application program) described later.
[0056] The file system sharing processing unit 31 refers to the registration authentication information of the host OS stored in the system area 14b in the storage unit 14, and compares the user name and password recorded in the registration authentication information with the user name and password accepted from the file search unit 32, thereby authenticating the user of the file search unit 32.
[0057] If the authentication is successful, the file system sharing processing unit 31 refers to the access rights information managed by the host OS and stored in the system area 14b in the storage unit 14, and reads out the access rights information for the authenticated user.
[0058] Based on the read access right information, the file system sharing processing unit 31 outputs information specifying a shared directory that the authenticated user is permitted to read from to the file search unit 32. Then, the file system sharing processing unit 31 instructs the file search unit 32 to search only for files under the shared directory specified by that information.
[0059] Furthermore, when the file search unit 32 fails to authenticate the user, the file system sharing processing unit 31 outputs information indicating that the authentication has failed to the file search unit 32. Alternatively, when the file search unit 32 fails to authenticate the user, the file system sharing processing unit 31 outputs, to the file search unit 32, information specifying a shared directory to which a guest user (a user without a set user name) is permitted to access.
[0060] The file search unit 32 receives a request to search for user data in the user data area 14c of the storage unit 14 from a user on the network via a virtual network interface provided by the virtual machine system unit 22. The file search unit 32 requests the user who has made the search request to input a user name and password, and outputs the input user name and password to the file system sharing processing unit 31.
[0061] When the file search unit 32 receives information specifying a shared directory containing a file to be searched from the file system sharing processing unit 31, the file search unit 32 requests the user who has requested the search to input information that will be a search key. The file search unit 32 may request the input of this information by presenting a web page to the user.
[0062] When the user inputs information that is a search key, the file search unit 32 uses the information that is the search key to search for files under a shared directory in the user data area 14c of the storage unit 14 that is specified by the information input from the file system sharing processing unit 31. Then, the file search unit 32 presents the results of the search to the user who made the search request.
[0063] This search processing may be similar to the processing performed using a search system such as Apache Solr (trademark) provided by the Apache Software Foundation, so a detailed explanation will be omitted here.
[0064] The application programs such as the file search unit 32 generate various information (hereinafter referred to as preference information) used for the processing, such as file index information and operation setting information, and in this embodiment, the application programs such as the file search unit 32 directly write this preference information to the system area 14b of the host OS storage unit 14 via a virtual file system provided by the virtual machine system unit 22 operating on the host OS side. As a result, even when the above-mentioned guest OS is initialized, the preference information required for the operation of the application programs such as the file search unit 32 is maintained in the state before initialization.
[0065] In addition to the above-mentioned information, the preference information may include various data generated by application programs, etc. For example, the preference information may include media data such as documents, image data, and audio data generated by application programs, various data obtained by calculation such as calculation results and mechanical learning data, and other data.
[0066] Furthermore, in this embodiment, when information indicating that authentication has failed is input from the file system sharing processing unit 31 to the file search unit 32, the file search unit 32 presents the user who made the search request with information indicating that the input authentication information is incorrect, and asks the user to input the user name and password again.
[0067] The response processing unit 33 receives a request for status information from the guest OS management unit 23 of the host-side processing unit 20 and sends out status information in response to the request. In one example of this embodiment, the response processing unit 33 receives a request for status information by HTTP (Hyper-Text Transfer Protocol) and sends out status information in response to the request. In this case, the response processing unit 33 transmits and receives requests and responses to and from the guest OS management unit 23 of the host-side processing unit 20 via, for example, a virtual network interface, a network interface LAN1, a network, and a network interface LAN2 (or LAN3).
[0068] When the response processing unit 33 receives a request for state information from the guest OS management unit 23 of the host-side processing unit 20, it checks the operation status (process status) of predetermined application programs such as the file search unit 32.
[0069] If the operating status of a predetermined application program such as the file search unit 32 indicates an abnormality (for example, the process is not running, memory consumption exceeds a predetermined threshold, or the process remains in a state waiting for a specified processing after termination), the response processing unit 33 sends status information indicating the abnormality to the guest OS management unit 23 of the host side processing unit 20.
[0070] In addition, if the operation status of a predetermined application program such as the file search unit 32 does not indicate an abnormality, the response processing unit 33 sends status information indicating that the operation status is normal to the guest OS management unit 23 of the host side processing unit 20.
[0071] In addition, if the guest OS is not operating normally or if the response processing unit 33 is not started (has terminated abnormally), the response processing unit 33 will not be able to send a response to the above request.
[0072] [Operation] The information processing device 1 of this embodiment basically has the above configuration and operates as follows. In this example, the information processing device 1 stores user data of a user in the storage unit 14. The information processing device 1 also operates a host OS, and further operates a virtual machine system on the host OS, and operates a guest OS in the virtual machine system.
[0073] The information processing device 1 operates as a NAS using a program running on the host OS, and accepts instructions to write (store) user data and read user data stored in the storage unit 14 from a personal computer PC used by a user via the network.
[0074] Here, the network interface LAN1 of the information processing device 1 is set as an interface for a guest OS running on a virtual machine system to communicate with a PC or the like on a network. Also, the network interfaces LAN2 and LAN3 are set as interfaces for a host OS to communicate with a PC or the like on a network.
[0075] In the following example, the storage unit 14 is assumed to have a storage area divided into a program storage area 14a, a system area 14b, and a user data area 14c. The system area 14b stores registration authentication information for authenticating users and access right information that records the access right to the shared directory in the user data area 14c for each user.
[0076] Furthermore, in this embodiment, the system area 14b stores a file of a file system image for a virtual machine system. The virtual file system recorded in this file stores the guest OS, application programs that run on the guest OS, and various data used by them.
[0077] Also, the system area 14b stores a backup (initial image) of a file system image for the virtual machine system. This initial image corresponds to an image immediately after the guest OS and applications that run on it are installed, and is in a state where operation is guaranteed in advance.
[0078] The information processing device 1 receives an instruction to write or read user data from a personal computer PC used by a user via the network interface LAN 2 or LAN 3. The information processing device 1 authenticates the user of the PC that is the source of the access request, using the registered authentication information stored in the system area 14b of the storage unit 14.
[0079] When the information processing device 1 succeeds in authenticating the user, it refers to the instruction received from the user. If the instruction received from the user is, for example, an instruction to store user data specifying a shared directory as a storage destination, it determines whether the user has the authority to write to the specified shared directory based on the access right information predetermined for the user. Then, when the user is set to be able to write to the specified shared directory, the information processing device 1 stores the received user data in the shared directory specified as a storage destination.
[0080] Furthermore, when the instruction received from the successfully authenticated user is information identifying user data (which may be a path name including a shared directory specification) and an instruction to read the user data identified by the information, the information processing device 1 refers to the access right information previously determined for the user, and checks whether the authenticated user is allowed to read data from the shared directory (read source) identified by the information. If the user is set to be allowed to read from the read source, the information processing device 1 reads the user data identified by the received information from the read source shared directory, and sends it to the PC used by the user via the network.
[0081] On the other hand, the information processing device 1 is assumed to operate, for example, a file search application program as processing on the guest OS side. Such an example corresponds to a case where an application program for a NAS function that is compatible with the host OS but does not operate on the guest OS and a file search application that operates on the guest OS but does not operate on the host OS are operated on one information processing device 1.
[0082] The guest OS runs on a virtual machine system that runs on the host OS, and mounts the system area 14b and user data area 14c in the storage unit 14 managed by the host OS on the guest OS side. As already mentioned, the user settings in the host OS at this time are not the same as the user settings in the guest OS, so the access rights of the user of the host OS are set to be ignored on the guest OS side. Therefore, all files in the system area 14b and user data area 14c of the storage unit 14 on the host OS side can be accessed from a command that runs with the authority of an arbitrary user account on the guest OS.
[0083] When an application program on a guest OS accesses a file stored in the user data area 14c or the like under the management of the host OS, such as for a file search, the information processing device 1 operates as illustrated in FIG.
[0084] That is, the information processing device 1 receives a request to search for user data in, for example, the user data area 14c of the storage unit 14 from a user's PC via a network interface LAN1 that the guest OS uses for communication with PCs and the like on the network (S1).
[0085] The information processing device 1 requests the user who has requested the search to input a user name and password (S2), and when authentication information such as a user name and password is input, the information processing device 1 compares the authentication information with the registered authentication information of the host OS stored in the system area 14b in the storage unit 14, and authenticates the user (S3). In the following, it is assumed that the authentication is successful.
[0086] The information processing device 1 refers to the access right information managed by the host OS, which is stored in the system area 14b in the storage unit 14, and reads out the access right information related to the authenticated user (S4).
[0087] Then, the information processing device 1 identifies a shared directory in the user data area 14c that is permitted for reading by the authenticated user based on the read access right information (S5).Then, the information processing device 1 sets files in the shared directory identified in step S5 as search targets (S6).
[0088] The information processing device 1 also requests the user who made the search request to input search key information (S7), and when the user inputs the search key information (S8), the information processing device 1 uses the search key information to search for files matching the input search key among the files that were the subject of the search in step S6 (search process: S9).Then, the information processing device 1 transmits and presents the results of the search process in step S9 to the user who made the search request (S10).
[0089] In this example of the present embodiment, the application program on the guest OS side refers to the user authentication information on the host OS side and the access rights setting information used by the host OS for files and directories, and executes processing for a user authenticated by the authentication information within the scope of access rights defined by the referenced setting information. Therefore, even if the user authority settings of the host OS and the guest OS are different, the application program running on the guest OS can access files on the file system taking into account the user authority of the host OS.
[0090] Furthermore, the information processing device 1 of this embodiment monitors the operating status of the guest OS as the operation of the application program on the host OS, and maintains the services provided by the application program on the guest OS.
[0091] For this purpose, the guest OS executes a process of accepting a request for status information from the host OS and sending status information in response to the request. In one example of this embodiment, the request for status information is sent from the host OS to the guest OS via a network, and the guest OS sends a response to the request to the host OS via the network. Here, the request and response are sent and received using a well-known protocol such as HTTP.
[0092] As a process on the guest OS side, the information processing device 1 checks the status of a process of a predetermined application program, such as a file search application program, every time it receives a request for status information from the host OS side. If the status of the process indicates an abnormality, the information processing device 1 sends status information indicating that the process is abnormal to the host OS side, and if the status of the process does not indicate an abnormality, it sends status information indicating that the process is normal to the host OS side.
[0093] As already mentioned, if the guest OS is not operating normally, or if the process for sending the response is not operating normally, the response to the request is not sent.
[0094] In this example, the information processing device 1 executes an application program for managing a guest OS on a host OS, and performs the process illustrated in Fig. 4. The following process is performed as a process on the host OS.
[0095] The information processing device 1 repeatedly transmits a request for status information at a predetermined timing (for example, at regular intervals) to the network interface LAN1 that the guest OS uses for communication with the network (S11).
[0096] Then, the information processing device 1 waits for a response to the request, and determines whether or not the status information has been obtained before a predetermined time threshold is exceeded (that is, before a timeout occurs) (S12).
[0097] If a response to the request for status information is received from the guest OS via the network before the timeout occurs (S12: Yes), the information processing device 1 determines whether the content of the response indicates an abnormality (S13).
[0098] If the content of the response indicates an abnormality in step S13 (S13: Yes), the information processing device 1 proceeds to step S14. Also, if there is no response to the request for status information from the guest OS via the network before the timeout in step S12 (S12: No), the information processing device 1 proceeds to step S14 and continues processing.
[0099] As the process of step S14, the information processing device 1 instructs the guest OS to execute a reboot (S14). Then, the information processing device 1 waits for a predetermined time required for the reboot, and sends a request for state information (S15).
[0100] The information processing device 1 waits for a response to the request, and determines whether or not the status information has been obtained before a predetermined time threshold is exceeded (that is, before a timeout occurs) (S16).
[0101] If a response to the request for status information is received from the guest OS via the network before the timeout occurs (S16: Yes), the information processing device 1 determines whether the content of the response indicates an abnormality (S17).
[0102] If the content of the response indicates an abnormality in step S17 (S17: Yes), the information processing device 1 proceeds to step S18. Also, if there is no response to the request for status information from the guest OS via the network before the timeout in step S16 (S16: No), the information processing device 1 proceeds to step S18 and continues processing.
[0103] The information processing device 1 initializes the guest OS as the process of step S18 (S18). This initialization of the guest OS is performed as follows. Specifically, the information processing device 1 stops the operation of the virtual machine system operating on the host OS, deletes the file of the file system image for the virtual machine system stored in the system area 14b, copies the backup file (initial image) of the file system image for the virtual machine system stored in the system area 14b, and reinstalls the virtual machine system including the guest OS. Then, the information processing device 1 starts up the virtual machine system on the host OS again. After that, the information processing device 1 returns to step S11 and continues the process.
[0104] On the other hand, if the content of the response does not indicate an abnormality in step S13 or step S17 (S13, S17: No), the information processing device 1 returns to step S11 and continues the process.
[0105] As a result, in this embodiment, the host OS can detect abnormalities in processes on the guest OS or abnormalities in the guest OS itself, and execute processing to address the abnormality, improving the availability of services provided on the guest OS.
[0106] [Local Bridge Settings] In the above description of the present embodiment, the host OS and the guest OS executed on the information processing device 1 share at least a part of the memory area of the storage unit 14 in a virtual file system, and communicate with each other via the network interfaces LAN1, 2, and 3 to execute the above-mentioned processes. However, the present embodiment is not limited to this.
[0107] For example, a virtual machine system running on a host OS may set up a virtual network bridge. In this example, the host OS and the guest OS each set up a virtual network interface and connect to this virtual network bridge. This allows the host OS and the guest OS to perform network communication using various protocols such as HTTP via this virtual network bridge.
[0108] Therefore, in this example, the guest OS management unit 23 on the host OS and the response processing unit 33 on the guest OS may transmit and receive requests and responses via this virtual network bridge.
[0109] In this case, the host OS and guest OS set the IP addresses of the virtual network interfaces for connecting to the virtual network bridge after the IP addresses assigned to the physical network interfaces LAN1, 2, 3 are set (by a DHCP server, etc.). At this time, the host OS and guest OS make the network addresses of the IP addresses assigned to the network interfaces LAN1, 2, 3 different from the network addresses of the IP addresses of the virtual network interfaces. This prevents problems caused by multiple devices with the same IP address appearing on the network.
[0110] [Using NFS] Furthermore, if operations such as search processing via a virtual file system cannot reach a practical speed due to some cause such as hardware issues, NFS may be used.
[0111] In this example, the host OS executed by the host side processing unit 20 sets at least a portion of the file system in the storage unit 14 managed by the host OS itself so that it can be accessed via NFS mount from application programs, etc. executed under the management of the guest side processing unit 30.
[0112] Then, the guest OS executed by the guest side processing unit 30 mounts the user data area 14c of the storage unit 14 on the guest OS side via the above-mentioned virtual network bridge, or via the network interfaces LAN1 and LAN2 or LAN3 using a network file system (NFS).
[0113] In this example as well, the guest OS side authenticates the user who has accessed the file search unit 32 by using the registered authentication information on the host OS side through the operation of the file system sharing processing unit 31. The file system sharing processing unit 31 also instructs the file search unit 32 to search only files in shared directories in the user data area 14c of the NFS-mounted storage unit 14, for which access rights are set as readable for the authenticated user (access rights are set on the host OS side).
[0114] In this example of the present embodiment, setting information (NFS route information, etc.) used for NFS mounting is recorded in the system area 14b of the storage unit 14 so that it can be referenced from the guest OS. In addition to the information described above, information that needs to be referenced from the guest OS, such as network settings (participation domain name, etc.), is also recorded in the system area 14b of the storage unit 14. [Explanation of symbols]
[0115] 1 information processing device, 11 control unit, 12 main memory unit, 13 interface unit, 14 storage unit, 15 network communication unit, 20 host side processing unit, 21 file management unit, 22 virtual machine system unit, 23 guest OS management unit, 30 guest side processing unit, 31 file system sharing processing unit, 32 file search unit, 33 response processing unit.
Claims
1. An information processing device, A storage section; a controller unit including a host side processing means for executing processing of a host operating system, and a guest side processing means for executing processing as a guest operating system on a virtual machine system that operates on the host operating system executed by the host side processing means; The controller unit the guest-side processing means accesses user access right information set by a host operating system stored in the storage unit, and controls user access to a file system of the storage unit using the access right information; a controller unit that receives a request for status information from the host processing means as a process of an application program that operates within a guest operating system executed by the guest processing means, responds to the request, and provides status information that represents an operation status related to the guest operating system; the host operating system and the guest operating system each set a network interface, and the host operating system and the guest operating system transmit and receive a request for the status information and status information in response to the request via the set network interface; An information processing apparatus in which the host operating system virtually sets a file system of the storage unit to a state accessible as a file system of the guest operating system.
2. 2. The information processing device according to claim 1, An information processing device in which the host side processing means of the controller unit sends a request for status information to the guest side processing means, and if the status information is not obtained in response to the status information request, or if the obtained status information indicates an abnormality, the information processing device restarts the guest operating system executed by the guest side processing means.
3. 3. The information processing device according to claim 2, An information processing device in which the host side processing means of the controller unit sends a status information request to the guest side processing means after restarting the guest operating system executed by the guest side processing means, and if no status information is obtained in response to the status information request, or if the obtained status information indicates an abnormality, the information processing device initializes the guest operating system.
4. 4. The information processing device according to claim 3, An information processing device in which the host side processing means of the controller unit holds an installation disk image of a virtual machine system including a guest operating system, and when initializing the guest operating system, uses the installation disk image to reinstall the virtual machine system including the guest operating system.
5. A method for controlling an information processing device having a storage unit and a controller unit, comprising: The controller unit a host side process for executing processes of a host operating system; A guest side processing step for executing processing as a guest operating system on a virtual machine system that operates on a host operating system executed in the host side processing step; In the guest-side processing step, accessing user access right information set by a host operating system and stored in the storage unit, and controlling user access to a file system of the storage unit using the access right information; accepting a request for status information from the host operating system as a process for an application program operating within the guest operating system executed in the guest-side processing step, responding to the request, and providing status information representing an operation status related to the guest operating system; In processing between the host operating system and the guest operating system, a network interface is set, and the host operating system and the guest operating system transmit and receive a request for the status information and status information in response to the request via the set network interface; A method for controlling an information processing apparatus, which, in processing of the host operating system, sets a file system of the storage unit to a state where it can be accessed virtually as a file system of the guest operating system.
Citation Information
Patent Citations
Virtual machine operation management system, operation management method therefor and program
JP2010134557A
Virtual computer system, recovery processing method and of virtual machine, and program therefor
JP2011060055A
Information processor and information processing system
JP2014191491A
On-demand disposable virtual work system
US20150212842A1
Shared Memory Using Memory Mapped Files Between Host And Guest On A Computing Device
US20180165133A1
