Method and device for configuring USB equipment for KVM virtual machine in OpenStack

A virtual machine and device technology, applied in the field of cloud computing, can solve problems such as imperfect application scenario support and inability to penetrate USB devices of clients

Pending Publication Date: 2019-09-17
YANGTZE OPTICAL FIBRE & CABLE CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, in OpenStack, the support for cloud desktop application scenarios is not perfect. The virtual machine of the cloud desktop cannot penetrate the client's USB device into the cloud desktop, or allow the virtual machine of the cloud desktop to operate the data in the USB device.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for configuring USB equipment for KVM virtual machine in OpenStack

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0020] Such as figure 1 As shown, a method for configuring USB devices for KVM virtual machines in OpenStack,

[0021] Through the analysis of the source code, we can know that in the business process of OpenStack, the / nova / virt / libvirt / config.py file defines all the required virtual devices and the attributes of these devices; / nova / virt / libvirt The / driver.py file defines which device should be used for the virtual machine and which properties should be used by the device. OpenStack is a device required to configure virtual machines through xml files. In order to configure a USB device for a virtual machine, a PCI dev...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and device for configuring USB equipment for a KVM virtual machine in OpenStack, and the method comprises the following steps: 1), adding a method for configuring the USB equipment in the process of configuring the KVM virtual machine equipment according to the service process of starting the virtual machine of the OpenStack, and configuring model, start port and index parameters of the USB equipment in the method; 2) calling a method for configuring the USB equipment, and configuring the mode model of the USB equipment to be nec-xhci; 3) configuring KVM virtual machine equipment, and adding a method for configuring PCI equipment, configuring model and index parameters of the PCI equipment; 4) after the configuration from the step 1) to the step 3) is completed, generating an xml file for configuring the KVM virtual machine by the subsequent flow of the OpenStack, outputting the xml file to libvirt by the OpenStack, and generating the KVM virtual machine by the libvirt according to the configuration information; and 5) installing driving software supporting the USB 3.0 in the virtual machine according to the operating system of the virtual machine. The invention provides a feasible method for configuring the USB equipment for the KVM virtual machine in the OpenStack.

Description

technical field [0001] The invention relates to cloud computing technology, in particular to a method and device for configuring a USB device for a KVM virtual machine in OpenStack. Background technique [0002] OpenStack is currently the most widely used open source cloud computing framework, and it is still under continuous development and improvement. Cloud desktop is an application method of cloud computing. It is easy to maintain and has higher data security. It is a popular application method. Currently, in OpenStack, the support for cloud desktop application scenarios is not perfect. The virtual machine of the cloud desktop cannot penetrate the client's USB device into the cloud desktop, or let the virtual machine of the cloud desktop operate the data in the USB device. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a method and a device for configuring a USB device for a KVM virtual machine in OpenStack...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/455
CPCG06F9/45558G06F2009/45579
Inventor李成马千里戴维娇梅蕊
OwnerYANGTZE OPTICAL FIBRE & CABLE CO LTD