A method and device for implementing container host compatibility with virtual host image files

A virtual host and image file technology, applied in the field of cloud computing, can solve problems such as incompatibility and difficult migration of virtual host business

Active Publication Date: 2020-07-03
北京青云科技股份有限公司
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the traditional usage mode, since the container host and the virtual host have a set of independent and incompatible image files, it is difficult to migrate the business of the virtual host to the container host

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
  • A method and device for implementing container host compatibility with virtual host image files
  • A method and device for implementing container host compatibility with virtual host image files
  • A method and device for implementing container host compatibility with virtual host image files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In the following description, for purposes of illustration rather than limitation, specific details, such as specific system architectures, interfaces, and techniques, are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

[0043] figure 1 A schematic flowchart of a method for implementing a container host compatible with a virtual host image file provided by an embodiment of the present invention, specifically as figure 1 As shown, the method includes:

[0044] Step 110, using the first running command to map the virtual host image file to a virtual hard disk.

[0045] Specifically, it is first necessary to obt...

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 relates to a method for enabling a container host to be compatible with mirror image files of a virtual host. The method comprises the steps of mapping the mirror image files of the virtual host to a virtual hard disk by utilizing a first running instruction; mapping all the files in the virtual hard disk into a first folder of a host machine by utilizing a second running instruction, wherein the first folder is any folder of the host machine; obtaining operation system files of the virtual host from the first folder; and by utilizing the operations system files of the virtual host, starting the container host. The mirror image files of the virtual host are mapped to the virtual hard disk, and then all the files in the virtual hard disk are mapped into the first folder of the host machine. The first folder serves as a root directory of the container host, the operation system files of the virtual host are obtained from the first folder, and the container host is started by utilizing the operation system files of the virtual host. In the whole process, the container host already can be compatible with the mirror image files of the virtual host, and can execute corresponding actions after being started.

Description

technical field [0001] The invention relates to the field of cloud computing, in particular to a method and device for realizing container host compatibility with virtual host image files. Background technique [0002] Container hosts and virtual hosts are two types of instances provided by the cloud platform. The container host is based on the isolation technology provided by the Linux Kernel; the virtual host is based on the virtualization technology, such as Linux KVM. Due to different implementation mechanisms, the image of the container host contains all the files of the container file system, usually in the form of a file compression package; while the image of the virtual host is based on a virtual hard disk device, which is an image file of the hard disk, so they use completely different storage format and content. [0003] Compared with virtual hosts, container hosts have the characteristics of fast startup, high resource utilization, and low performance overhead....

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/14G06F16/16G06F16/13G06F9/455
CPCG06F11/1448G06F16/13G06F16/16
Inventor 陈海泉
Owner 北京青云科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products