CN113886007A - Configuration method, management method, system and medium for KVM virtualization system - Google Patents
Configuration method, management method, system and medium for KVM virtualization system Download PDFInfo
- Publication number
- CN113886007A CN113886007A CN202111095760.1A CN202111095760A CN113886007A CN 113886007 A CN113886007 A CN 113886007A CN 202111095760 A CN202111095760 A CN 202111095760A CN 113886007 A CN113886007 A CN 113886007A
- Authority
- CN
- China
- Prior art keywords
- virtualization system
- component
- rpc
- kvm
- xapi
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45579—I/O management, e.g. providing access to device drivers or storage
Abstract
The present invention relates to the field of virtual machine technologies, and in particular, to a configuration and management method and medium for a KVM virtualization system, and a KVM virtualization system. In the KVM virtualization system, an interaction simulator QEMU used for managing the KVM virtualization system is loaded to a xapi component as a component, so that the interaction simulator QEMU is internally communicated with an external interface RPC of the xapi component, an operation request received from the external interface RPC can be directly transmitted to the interaction simulator QEMU through internal communication so as to operate each virtual machine in the KVM virtualization system, namely, an external tool directly operates a system process through the external interface RPC, so that the external tool does not need to know or rely on implementation details inside the KVM virtualization system, and the small KVM virtualization system is convenient to manage.
Description
Technical Field
The invention relates to the technical field of virtual machines, in particular to a configuration method, a management method, a computer readable storage medium and a virtualization system of a KVM virtualization system.
Background
KVM: the Kernel-Based Virtual Machine is a Kernel-Based Virtual Machine, a KVM is used as a loadable module of a Linux Kernel, the bottom layer virtualization of a CPU and the virtualization of a memory are realized by calling the Kernel function of the Linux, so that the Linux Kernel becomes a virtualization layer, and the Kernel-Based Virtual Machine is an open-source Linux native full virtualization solution Based on X86 hardware of virtualization extension (Intel VT or AMD-V). In KVM, the virtual machine is implemented as a conventional Linux process, scheduled by a standard Linux scheduler; each virtual CPU of the virtual machine is implemented as a conventional Linux process, which enables the KMV to use existing functionality of the Linux kernel. However, the KVM itself does not perform any hardware simulation, but simply manages the driving of the virtual hardware device, which uses the character device/dev/KVM as a management interface and is mainly responsible for the creation of the vCPU, the allocation of the virtual memory, the reading and writing of the vCPU register, and the operation of the vCPU.
The KVM is the lowest level virtualization hypervisor, which is used to simulate the operation of the CPU, lacks support for network and peripheral I/O, and therefore cannot be used directly as a virtualization system, but instead requires the client to set up the address space of a client virtual server through the/dev/KVM interface, provide it with simulated I/O, and map its video display back to the host's display screen. QEMU-KVM is an emulator interacting with a KVM kernel module, which provides complete network and I/O support, and is capable of handling a variety of client system requests such as I/O. The way of managing the KVM virtualization system in the prior art is usually that OpenStack indirectly controls QEMU-KVM through libvirt, and may implement the function of cross-VM platform (vmware, virtualbox xen, etc.). However, the connection relationship between the OpenStack and the KVM is complex, and some external tools/extension functions need to adapt to the connection manner of the OpenStack and the KVM, which is inconvenient for the small-sized KVM virtualization system.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a KVM virtualization system management method, which is convenient for managing a small-sized KVM virtualization system.
The inventor thinks that in the Xen virtualization system, the XML-RPC interface mode realized by the xapi-project open source project can realize the serial port communication of the virtual machine, and the external tool directly operates the system process through the RPC interface and does not need to know or depend on the implementation details inside the system.
XML-RPC is called XML Remote Procedure Call, wherein RPC (Remote Procedure Call) is a Remote method Call which is a method called on a Remote machine on a local machine, and the XML-RPC is an XML Remote method Call which uses http as a transmission protocol and XML as a coding format for transmitting information. The definition of Xml-Rpc remains as simple as possible, but at the same time enables complex data structures to be transferred, processed, returned.
For this reason, the inventors envision to directly replace libvirt of OpenStack with XML-RPC to interface QEMU-KVM of KVM virtualization system, but since the xapi component in the xapi-project open source project that provides the XML-RPC interface externally cannot directly manage the virtual machine, but links the XML-RPC to the XEN virtualization system through xenstore mechanism unique to the XEN virtual machine, it cannot directly use the XML-RPC as the external interface of the KVM virtualization system.
Therefore, the KVM virtualization system management method comprises the following steps: the KVM kernel module interaction simulator QEMU is used for achieving management of the KVM virtualization system, the xapi component comprises an external interface RPC, and the interaction simulator QEMU serves as a component to be loaded to the xapi component, so that the interaction simulator QEMU and the external interface RPC are communicated inside the xapi component.
Preferably, the external interface RPC comprises an XML-RPC interface, and the XML-RPC is an RPC protocol based on an XML format.
Preferably, the external interface RPC comprises a JSON-RPC interface, and the JSON-RPC is an RPC protocol based on a JSON format.
There is also provided a computer readable storage medium storing a computer program which, when executed by a processor, is capable of implementing the above-described KVM virtualization system configuration method.
For the KVM virtualization system configured by the configuration method, after receiving an external request from the external interface RPC, the xapi component calls the QEMU component through the internal interface, the called QEMU component operates the virtualization system according to the request and returns a result to the xapi component, and the xapi component returns the result to the external interface RPC.
Preferably, after the xapi component receives the external request and before the QEMU component is called, the determining step is performed: and judging whether the operation action contained in the request needs to be participated by the virtualization system, and calling the QEMU component through the internal interface if the judgment result is that the operation action needs to be participated by the virtualization system.
There is also provided a KVM virtualization system, including a plurality of virtual machines and a processor, where the processor has the above-mentioned computer-readable storage medium stored therein in advance, and a computer program on the computer-readable storage medium is executable by the processor.
Has the advantages that: in the KVM virtualization system, an interaction simulator QEMU used for managing the KVM virtualization system is loaded to a xapi component as a component, so that the interaction simulator QEMU is internally communicated with an external interface RPC of the xapi component, an operation request received from the external interface RPC can be directly transmitted to the interaction simulator QEMU through internal communication so as to operate each virtual machine in the KVM virtualization system, namely, an external tool directly operates a system process through the external interface RPC, so that the external tool does not need to know or rely on implementation details inside the KVM virtualization system, and the small KVM virtualization system is convenient to manage.
Detailed Description
The invention is described in further detail below with reference to specific embodiments.
In the KVM virtualization system, the following KVM virtualization system configuration method is adopted, the interaction simulator QEMU is configured into an interaction simulator QEMU component in the form of a xapi component in a xapi-project open source project, so that the interaction simulator QEMU component can directly communicate with the xapi component, and then the interaction simulator QEMU is loaded to the xapi component as a component, so that the interaction simulator QEMU is communicated with an external interface RPC pair in the xapi component inside the xapi component. The operation request received from the external interface RPC can be directly transmitted to the interaction simulator QEMU through internal communication so as to operate each virtual machine in the KVM virtualization system, namely, an external tool directly operates the system process through the external interface RPC, so that the external tool does not need to know or rely on the implementation details inside the KVM virtualization system, and the small KVM virtualization system is convenient to manage.
Preferably, the external interface RPC comprises an XML-RPC interface and a JSON-RPC interface, which may be used together or separately. Specifically, XML-RPC is an RPC protocol based on an XML format, and JSON-RPC is an RPC protocol based on a JSON format.
When the KVM virtualization system is used, the following KVM virtualization system management method is adopted, and for the KVM virtualization system configured by the configuration method, after receiving an external request from an external interface RPC, the xapi component executes a judgment step: and judging whether the operation action contained in the request needs to participate in the virtualization system, if so, calling the QEMU component through the internal interface, operating the virtualization system by the called QEMU component according to the request, then returning the result to the xapi component, and then returning the result to the external interface RPC by the xapi component.
The following illustrates the call procedure of the XML-RPC interface.
The client executes an external function, connection is established with a server side (namely a xapi component) through an external interface XML-RPC, the user logs in through a user name and a password, session interaction is generated, a virtual machine object is located through a virtual machine name, the operation of the user is judged to be free of participation of the virtual machine, and the operation belongs to simple data query, so that the KVM virtualization system does not need to call a QEMU component. And the client sends a virtual machine startup request through the external interface XML-RPC, and the client is judged to be related to the self operation of the virtual machine and needs the participation of a virtualization system, so that the QEMU component is called through the internal interface to operate the corresponding virtual machine startup.
The above embodiments are only embodiments of the present invention, and the scope of protection is not limited thereto. The insubstantial changes or substitutions will now be made by those skilled in the art based on the teachings of the present invention, which fall within the scope of the claims.
Claims (8)
- The configuration method of the KVM virtualization system is characterized by comprising the following steps of: the KVM kernel module interaction simulator QEMU is used for achieving management of the KVM virtualization system, the xapi component comprises an external interface RPC, and the interaction simulator QEMU serves as a component to be loaded to the xapi component, so that the interaction simulator QEMU and the external interface RPC are communicated inside the xapi component.
- 2. The configuration method for KVM virtualization system according to claim 1, wherein said external interface RPC comprises XML-RPC interface, XML-RPC is RPC protocol based on XML format.
- 3. The configuration method for a KVM virtualization system according to claim 1 or 2, wherein the external interface RPC comprises a JSON-RPC interface, the JSON-RPC being an RPC protocol based on the JSON format.
- 4. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, is capable of implementing the KVM virtualization system configuration method according to any of claims 1 to 3.
- The KVM virtualization system management method is characterized by comprising the following steps: for the KVM virtualization system configured according to any one of claims 1 to 3, after receiving an external request from the external interface RPC, the xapi component calls the QEMU component through the internal interface, the called QEMU component operates the virtualization system according to the request and returns a result to the xapi component, and the xapi component returns the result to the external interface RPC.
- 6. The KVM virtualization system management method according to claim 5, wherein after said xapi component receives an external request and before calling said QEMU component, performing the determining step of: and judging whether the operation action contained in the request needs to be participated by the virtualization system, and calling the QEMU component through the internal interface if the judgment result is that the operation action needs to be participated by the virtualization system.
- 7. Computer readable storage medium, in which a computer program is stored which, when being executed by a processor, is able to carry out the KVM virtualization system management method according to any of claims 5 or 6.
- A KVM virtualization system comprising a plurality of virtual machines and a processor, characterized by comprising a processor, a xapi component, and a KVM kernel module interaction simulator QEMU loaded to the xapi component, wherein a computer readable storage medium as claimed in claim 4 and/or 7 is pre-stored in the processor, and a computer program on the computer readable storage medium is executable by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111095760.1A CN113886007B (en) | 2021-09-18 | 2021-09-18 | Configuration method, management method, system and medium for KVM virtualization system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111095760.1A CN113886007B (en) | 2021-09-18 | 2021-09-18 | Configuration method, management method, system and medium for KVM virtualization system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113886007A true CN113886007A (en) | 2022-01-04 |
CN113886007B CN113886007B (en) | 2022-03-01 |
Family
ID=79009852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111095760.1A Active CN113886007B (en) | 2021-09-18 | 2021-09-18 | Configuration method, management method, system and medium for KVM virtualization system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113886007B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102262557A (en) * | 2010-05-25 | 2011-11-30 | 运软网络科技(上海)有限公司 | Method for constructing virtual machine monitor by bus architecture and performance service framework |
KR101394424B1 (en) * | 2013-04-22 | 2014-05-13 | 한국인터넷진흥원 | Hypervisor-based intrusion prevention platform and virtual network intrusion prevention system |
CN104503825A (en) * | 2014-12-29 | 2015-04-08 | 西安电子科技大学 | Mixed type equipment virtualization method based on KVM (Kernel-based Virtual Machine) |
CN104636183A (en) * | 2014-12-30 | 2015-05-20 | 北京天云融创软件技术有限公司 | Method for taking over Xen Server virtual machine on Cloud Stack |
CN106250208A (en) * | 2016-08-02 | 2016-12-21 | 福建升腾资讯有限公司 | Implementation method based on Xen virtual platform pond type desktop under various circumstances |
CN108733383A (en) * | 2018-03-30 | 2018-11-02 | 广东睿江云计算股份有限公司 | A kind of XenServer virtual machines are loaded into method, the system of CD ISO files |
US10671443B1 (en) * | 2019-07-16 | 2020-06-02 | Capital One Services, Llc | Infrastructure resource monitoring and migration |
-
2021
- 2021-09-18 CN CN202111095760.1A patent/CN113886007B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102262557A (en) * | 2010-05-25 | 2011-11-30 | 运软网络科技(上海)有限公司 | Method for constructing virtual machine monitor by bus architecture and performance service framework |
KR101394424B1 (en) * | 2013-04-22 | 2014-05-13 | 한국인터넷진흥원 | Hypervisor-based intrusion prevention platform and virtual network intrusion prevention system |
US20140317737A1 (en) * | 2013-04-22 | 2014-10-23 | Korea Internet & Security Agency | Hypervisor-based intrusion prevention platform and virtual network intrusion prevention system |
CN104503825A (en) * | 2014-12-29 | 2015-04-08 | 西安电子科技大学 | Mixed type equipment virtualization method based on KVM (Kernel-based Virtual Machine) |
CN104636183A (en) * | 2014-12-30 | 2015-05-20 | 北京天云融创软件技术有限公司 | Method for taking over Xen Server virtual machine on Cloud Stack |
CN106250208A (en) * | 2016-08-02 | 2016-12-21 | 福建升腾资讯有限公司 | Implementation method based on Xen virtual platform pond type desktop under various circumstances |
CN108733383A (en) * | 2018-03-30 | 2018-11-02 | 广东睿江云计算股份有限公司 | A kind of XenServer virtual machines are loaded into method, the system of CD ISO files |
US10671443B1 (en) * | 2019-07-16 | 2020-06-02 | Capital One Services, Llc | Infrastructure resource monitoring and migration |
Non-Patent Citations (3)
Title |
---|
ANSHU AWASTHI等: "Multiple hypervisor based Open Stack cloud and VM migration", 《2016 6TH INTERNATIONAL CONFERENCE - CLOUD SYSTEM AND BIG DATA ENGINEERING》 * |
XIAOBEI4929: "openstack,kvm,qemu-kvm以及libvirt之关系", 《HTTPS://BLOG.CSDN.NET/XIAOBEI4929/ARTICLE/DETAILS/41808633》 * |
刘川意 等: "基础设施云模块化解构", 《北京邮电大学学报》 * |
Also Published As
Publication number | Publication date |
---|---|
CN113886007B (en) | 2022-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109154849B (en) | Super fusion system comprising a core layer, a user interface and a service layer provided with container-based user space | |
US8495624B2 (en) | Provisioning a suitable operating system environment | |
WO2018119951A1 (en) | Gpu virtualization method, device, system, and electronic apparatus, and computer program product | |
US7721080B2 (en) | Management of option ROM | |
JP2011100431A (en) | Device and method for controlling virtual machine | |
US20110219373A1 (en) | Virtual machine management apparatus and virtualization method for virtualization-supporting terminal platform | |
US9558021B2 (en) | System and method for cross-platform application execution and display | |
JP2010521034A (en) | How to abstract an operating environment from an operating system | |
US20170371519A1 (en) | Automatic Document Handling with On-Demand Application Mounting | |
US20180309824A1 (en) | Dormant vdus in vnfd | |
US11928489B2 (en) | Extension application mechanisms through intra-process operation systems | |
CN110968392B (en) | Method and device for upgrading virtualized simulator | |
KR101249735B1 (en) | Device and method for executing Android applications on general purpose operating systems, and computer readable recording medium for the same | |
CN115309511B (en) | Xen-based data interaction method and device, storage medium and electronic equipment | |
US10467078B2 (en) | Crash dump extraction of guest failure | |
US10552194B2 (en) | Virtualization operations for directly assigned devices | |
CN111459606A (en) | Method for quickly creating virtual machine under virtualization and server | |
US9047134B2 (en) | System and method for increasing the capabilities of a mobile device | |
US10649832B2 (en) | Technologies for headless server manageability and autonomous logging | |
CN113886007B (en) | Configuration method, management method, system and medium for KVM virtualization system | |
US20150381766A1 (en) | Application transfer system, application transfer method, terminal, and program | |
US20230122396A1 (en) | Enabling shared graphics and compute hardware acceleration in a virtual environment | |
US11726852B2 (en) | Hardware-assisted paravirtualized hardware watchdog | |
Chai et al. | TEEI-A Mobile Security Infrastructure for TEE Integration | |
KR20100122431A (en) | Sharing input/output(i/o) resources across multiple computing systems and/or environments |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20220104 Assignee: GUANGZHOU AEROSPACE YUNHONG TECHNOLOGY CO.,LTD. Assignor: WINHONG INFORMATION TECHNOLOGY CO.,LTD. Contract record no.: X2023980035964 Denomination of invention: KVM virtualization system configuration method, management method, system and media Granted publication date: 20220301 License type: Common License Record date: 20230525 |