Method and apparatus for enabling container host to be compatible with mirror image files of virtual host

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

Active Publication Date: 2017-11-10
北京青云科技股份有限公司
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
  • Method and apparatus for enabling container host to be compatible with mirror image files of virtual host
  • Method and apparatus for enabling container host to be compatible with mirror image files of virtual host
  • Method and apparatus for enabling container host to be compatible with mirror image files of virtual host

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structure, interface, technology, etc. are proposed for a thorough understanding of the present invention. However, it should be clear to those skilled in the art that the present invention can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of the present invention.

[0043] figure 1 This is a schematic flow diagram of a method for implementing container host compatibility with virtual host image files according to an embodiment of the present invention, specifically as follows figure 1 As shown, the method includes:

[0044] Step 110: Map the virtual host image file to a virtual hard disk using the first running instruction.

[0045] Specifically, the storage path of the...

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, and in particular to a method and device for realizing compatibility of a container host with a virtual host image file. Background technique [0002] Container hosts and virtual hosts are two instances provided by the cloud platform. The container host is based on isolation technology provided by Linux Kernel; the virtual host is based on 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, which are usually provided in the form of a file compressed package; while the image of the virtual host is based on a virtual hard disk device, which is a hard disk image file, so they use completely different storage Format and content. [0003] Compared with virtual hosts, container hosts have the characteristics of fast startup speed, 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 Applications(China)
IPC IPC(8): G06F11/14G06F17/30
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