CN107341073B - Method and device for realizing compatibility of container host and virtual host image file - Google Patents

Method and device for realizing compatibility of container host and virtual host image file Download PDF

Info

Publication number
CN107341073B
CN107341073B CN201710428228.4A CN201710428228A CN107341073B CN 107341073 B CN107341073 B CN 107341073B CN 201710428228 A CN201710428228 A CN 201710428228A CN 107341073 B CN107341073 B CN 107341073B
Authority
CN
China
Prior art keywords
host
folder
virtual
file
container
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.)
Active
Application number
CN201710428228.4A
Other languages
Chinese (zh)
Other versions
CN107341073A (en
Inventor
陈海泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qingyun Science And Technology Co ltd
Original Assignee
Beijing Qingyun Science And Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qingyun Science And Technology Co ltd filed Critical Beijing Qingyun Science And Technology Co ltd
Priority to CN201710428228.4A priority Critical patent/CN107341073B/en
Publication of CN107341073A publication Critical patent/CN107341073A/en
Application granted granted Critical
Publication of CN107341073B publication Critical patent/CN107341073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method for realizing compatibility of a container host and a virtual host mirror image file, which comprises the following steps: mapping the virtual host image file into a virtual hard disk by using a first operation instruction; mapping all files in the virtual hard disk to a first folder of the host machine by using a second operation instruction, wherein the first folder is any folder of the host machine; acquiring an operating system file of the virtual host from the first folder; and starting the container host by using the operating system file of the virtual host. The virtual host mirror image file is mapped into a virtual hard disk, and then all files in the virtual hard disk are mapped into a first folder of a host. And taking the first folder as a root directory of the container host, acquiring the operating system file of the virtual host from the first folder, and starting the container host by using the operating system file of the virtual host. In the process, the container host can be compatible with the image file of the virtual host, and can execute corresponding action after being started.

Description

Method and device for realizing compatibility of container host and virtual host image file
Technical Field
The invention relates to the field of cloud computing, in particular to a method and a device for realizing compatibility of a container host and a virtual host image file.
Background
The container host and the virtual host are two examples provided by the cloud platform. The container host is based on the isolation technology provided by Linux Kernel; the virtual host is based on virtualization technology, such as Linux KVM. Because the implementation mechanisms are different, the mirror image of the container host contains all files of the container file system, and is usually provided in the form of a file compression package; the mirror image of the virtual host is based on the virtual hard disk device, which is the mirror image file of the hard disk, so that they use completely different storage formats and contents.
Compared with a virtual host, the container host has the characteristics of high starting speed, high resource utilization rate, low performance overhead and the like. Moreover, because the container host does not need to allocate a separate operating system for each application, instances are smaller in size and faster in creation and migration. This means that a single operating system can carry more container hosts than virtual hosts, which is more favorable for service deployment.
Based on the above advantages of the container host, the user would prefer to migrate the traffic of the virtual host to the inside of the container host for processing. However, in the conventional usage, the container host and the vm respectively have a set of independent and incompatible image files, so that the service of the vm is difficult to migrate to the container host.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method and an apparatus for implementing compatibility of a container host and a virtual host image file.
In a first aspect, the present invention provides a method for implementing compatibility of a container host with a virtual host image file, where the method includes:
mapping the virtual host image file into a virtual hard disk by using a first operation instruction;
mapping all files in the virtual hard disk to a first folder of the host machine by using a second operation instruction, wherein the first folder is any folder of the host machine;
acquiring an operating system file of the virtual host from the first folder;
the container host is started using the operating system file of the virtual host.
The invention has the beneficial effects that: the virtual host mirror image file is mapped into a virtual hard disk, and then all files in the virtual hard disk are mapped into a first folder of a host. And taking the first folder as a root directory of the container host, acquiring the operating system file of the virtual host from the first folder, and starting the container host by using the operating system file of the virtual host. In the process, the container host can be compatible with the image file of the virtual host, and can execute corresponding action after being started.
Further, after mapping all the files in the virtual hard disk to the first folder of the host machine by using the second operation instruction, the method further includes:
mapping the service data file corresponding to the container host to a second folder of the host;
creating a combined file system according to the files in the first folder and the files in the second folder;
acquiring an operating system file of the virtual host from the combined file system;
and starting the container host according to the operating system file of the virtual host, wherein the second folder is any folder except the first folder in the host.
The beneficial effect of adopting the further scheme is that: after all the files in the virtual hard disk are mapped to the first folder of the host machine by using the second operation instruction, the service data of the container host machine can be mapped to the second folder of the host machine. And, from the files in the first folder and the files in the second folder, a federated file system is created. And further acquiring the operating system file of the virtual host from the combined file system, and starting the container host by using the operating system file of the virtual host. And the container host uses the combined file system, so that the better performance of the container host can be ensured.
Further, the combined file system comprises an upper storage path and a lower storage path, wherein the lower storage path is used for storing files of the first folder, and the upper storage path is used for storing files of the second folder.
The beneficial effect of adopting the further scheme is that: it has been briefly stated in the further above that the use of a federated file system by a container host may result in better performance of the container host. The combined file system includes an upper storage path and a lower storage path, where the upper storage path is used for storing data files of the second folder, that is, data files corresponding to the container host; and the lower layer stores the mirror image of the virtual host. The upper layer may be used for reading/writing files and the lower layer may be used for reading files only. The aim is that reading or writing at the upper layer can be adapted to different capabilities of different container hosts. And the lower layer is read only, so as to ensure that the mirror image file of the virtual host is not changed.
Further, when the container host is started, the method further comprises:
the federated file system is mapped to the root folder of the container host so that the software in the container host shares the files in the root folder.
The beneficial effect of adopting the further scheme is that: in the process of starting the container host, the first folder or the second folder, that is, the folder to which the virtual host image file is mapped, can be used as the root folder of the container host, so that all software in the container host can directly access all files in the root folder of the container host and perform corresponding processing.
In a second aspect, the present invention provides an apparatus for enabling a container host to be compatible with a virtual host image file, where the apparatus includes:
the processing unit is used for mapping the virtual host image file into a virtual hard disk by using a first operation instruction;
mapping all files in the virtual hard disk to a first folder of the host machine by using a second operation instruction, wherein the first folder is any folder of the host machine;
acquiring an operating system file of the virtual host from the first folder;
and the starting unit is used for starting the container host by utilizing the operating system file of the virtual host.
The invention has the beneficial effects that: the virtual host mirror image file is mapped into a virtual hard disk, and then all files in the virtual hard disk are mapped into a first folder of a host. And taking the first folder as a root directory of the container host, acquiring the operating system file of the virtual host from the first folder, and starting the container host by using the operating system file of the virtual host. In the process, the container host can be compatible with the image file of the virtual host, and can execute corresponding action after being started.
Further, the processing unit is further configured to:
mapping the service data file corresponding to the container host to a second folder of the host;
creating a combined file system according to the files in the first folder and the files in the second folder;
acquiring an operating system file of the virtual host from the combined file system;
the starting unit is used for starting the container host according to the operating system file of the virtual host, wherein the second folder is any folder except the first folder in the host.
The beneficial effect of adopting the further scheme is that: after all the files in the virtual hard disk are mapped to the first folder of the host machine by using the second operation instruction, the service data of the container host machine can be mapped to the second folder of the host machine. And, from the files in the first folder and the files in the second folder, a federated file system is created. And further acquiring the operating system file of the virtual host from the combined file system, and starting the container host by using the operating system file of the virtual host. And the container host uses the combined file system, so that the better performance of the container host can be ensured.
Furthermore, the combined file system comprises an upper storage path and a lower storage path, wherein the lower storage path is used for storing files of the first folder, and the upper storage path is used for storing files of the second folder.
The beneficial effect of adopting the further scheme is that: it has been briefly stated in the further above that the use of a federated file system by a container host may result in better performance of the container host. The combined file system includes an upper storage path and a lower storage path, where the upper storage path is used for storing data files of the second folder, that is, data files corresponding to the container host; and the lower layer stores the mirror image of the virtual host. The upper layer may be used for reading/writing files and the lower layer may be used for reading files only. The aim is that reading or writing at the upper layer can be adapted to different capabilities of different container hosts. And the lower layer is read only, so as to ensure that the mirror image file of the virtual host is not changed.
Further, the processing unit is further configured to map the federated file system to a root folder of the container host, so that the software in the container host shares files in the root folder.
The beneficial effect of adopting the further scheme is that: in the process of starting the container host, the first folder or the second folder, that is, the folder to which the virtual host image file is mapped, can be used as the root folder of the container host, so that all software in the container host can directly access all files in the root folder of the container host and perform corresponding processing.
Drawings
Fig. 1 is a schematic flowchart of a method for implementing compatibility of a container host and a virtual host image file according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for implementing compatibility of a container host and a virtual host image file according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for implementing compatibility of a container host and a virtual host image file according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, interfaces, techniques, etc. in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from 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.
Fig. 1 is a schematic flowchart of a method for implementing compatibility of a container host and a virtual host image file according to an embodiment of the present invention, and specifically as shown in fig. 1, the method includes:
step 110, mapping the virtual host image file to a virtual hard disk by using the first operation instruction.
Specifically, a storage path of the virtual host image file in the host is obtained first. The first operation instruction may be, for example, an instruction of qemu-nbd, and the image file of the virtual host is read from the storage location of the image file of the virtual host in the host by using the first operation instruction, and then is mapped to the virtual hard disk. From the practical application, the I/O operation instruction is mapped to be a read/write operation instruction.
And step 120, mapping all files in the virtual hard disk to a first folder of the host machine by using a second operation instruction, wherein the first folder is any folder of the host machine.
Specifically, all files in the virtual hard disk are mapped to a first folder in the host machine. As shown in step 110, all files in the virtual hard disk are all files aggregated by the virtual host image file, and only are mapped to the virtual hard disk.
In this step, all files in the virtual hard disk are mapped to the first folder in the host machine by using a second operation instruction, for example, a mount instruction. That is, all the files in the virtual hard disk are stored in one folder of the host. And this folder may be any one of the folders in the host.
Step 130, obtaining the operating system file of the virtual host from the first folder.
Specifically, if the container host needs to be compatible with the image file of the virtual host, the container host is actually started by using the operating file system of the virtual host. Therefore, the operating file system of the virtual host is acquired first.
As seen in step 120, the image file of the virtual host has been indirectly mapped to the first folder of the host. Then the operating system files of the virtual host need to be retrieved from the first folder.
Preferably, the image file of the virtual host at least comprises a boot file and an operating system file, wherein the boot file is used for indicating a storage path of the operating system file of the virtual host. When the image file of the virtual host is indirectly mapped into the first folder, the boot file is also mapped into the first folder. The host machine only needs to read the boot file and acquire the operating system file of the virtual machine from the operating system file storage position of the virtual machine according to the instruction of the boot file.
After the operating system file of the virtual host is obtained, step 140 can be executed.
Step 140, the container host is started up using the operating system files of the virtual host.
By the steps, the container host can be compatible with the image file of the virtual host, and the service corresponding to the virtual host can be processed in the container host.
The method for realizing the compatibility of the container host and the virtual host mirror image file provided by the embodiment of the invention maps the virtual host mirror image file into the virtual hard disk, and then maps all files in the virtual hard disk into the first folder of the host. And taking the first folder as a root directory of the container host, acquiring the operating system file of the virtual host from the first folder, and starting the container host by using the operating system file of the virtual host. In the process, the container host can be compatible with the image file of the virtual host, and can execute corresponding action after being started.
However, the performance of the container host in the above scheme may be slightly better than that of the virtual host. In order to improve the performance of the container host, the service is better provided for the user, and the user experience is improved. An embodiment of the present invention further provides another method for implementing compatibility of a container host and a virtual host image file, and as shown in fig. 2 specifically, the method includes the following steps:
step 210, mapping the virtual host image file into a virtual hard disk by using a first operation instruction.
Specifically, a storage path of the virtual host image file in the host is obtained first. The first operation instruction may be, for example, an instruction of qemu-nbd, and the image file of the virtual host is read from the storage location of the image file of the virtual host in the host by using the first operation instruction, and then is mapped to the virtual hard disk. From the practical application, the I/O operation instruction is mapped to be a read/write operation instruction.
Step 220, mapping all files in the virtual hard disk to a first folder of the host machine by using a second operation instruction, wherein the first folder is any folder of the host machine.
Specifically, all files in the virtual hard disk are mapped to a first folder in the host machine. As can be seen from step 210, all files in the virtual hard disk are all files aggregated by the virtual host image file, and are only mapped to the virtual hard disk.
In this step, all files in the virtual hard disk are mapped to the first folder in the host. That is, all the files in the virtual hard disk are stored in one folder of the host. And this folder may be any one of the folders in the host.
Step 230, mapping the service data file corresponding to the container host to a second folder of the host.
Specifically, the service data file corresponding to the host in the container is mapped to a second folder in the host, where the second folder may be any folder in the host except for the first folder. Or may be a newly created folder. The purpose of mapping the service data corresponding to the container host to the second folder is that a user can modify the service data of the container host through the host according to actual needs so as to meet different requirements.
Step 240, a federated file system is created from the files in the first folder and the files in the second folder.
Specifically, a combined file system is created according to files in the first folder and files in the second folder, which is to create a virtual folder in the host that can contain all files in the first folder and the second folder.
And this virtual folder comprises two layers. The upper layer is used for storing files in the second folder, namely business data files corresponding to the container host, and the lower layer is used for storing files in the first folder, namely virtual host image files. The files stored in the upper layer are files which can be read/written, and the files stored in the lower layer are read-only files. The method aims to ensure that a user can randomly change the service data file corresponding to the container host under the condition that the mirror image file is not changed so as to realize different service functions. If the change of the lower storage is needed, the file in the read-only layer is modified by using the copy-on-write technology of the combined file system, the file works on the file level, the file in the read-only layer is modified, and the file is copied to the upper writable layer and then modified. Of course, the upper layer may be set as a readable/writable file according to actual needs, and the lower layer may also be set as a readable/writable file. Or may be arranged in other forms according to actual needs, and is not limited in any way here.
Step 250, starting the container host according to the operating system file of the virtual host.
Further preferably, when the container host is started, the method further includes step 260, mapping the federated file system to a root folder of the container host, so that the software in the container host shares files in the root folder.
Readers will appreciate that the benefits of mapping business data corresponding to a container host to a second folder, rather than mapping an image file to the same folder at the same time, include:
first, the image file may be multiplexed.
Specifically, if the host starts the container host, multiple tasks are executed. The mapped 'mirror files' in the first folder can also be shared, and one 'mirror file' is not needed to be arranged in a one-to-one correspondence mode for each task, so that the storage space is saved.
Second, the service data can be separated from the "mirror image file" and can be managed conveniently.
The container host business data can be added, deleted or changed according to actual needs. Without this affecting the alteration or deletion of the "image file" or the like. Moreover, the 'image file' can update the version at any time without influencing the change of the business data. In short, after separation, each can make changes at any time without affecting the other.
Of course, if the service data to be processed already exists in the virtual host before the image file is mapped to the host, then the service data to be processed by the virtual host and the image file are simultaneously mapped to the first folder. And the second folder is the business data of the container host. The two points above apply equally and do not create any conflict.
The reader should also understand that although some steps of this embodiment are different from those of the previous embodiment, this embodiment can be understood as an "upgraded version" of the previous embodiment, and the performance of the container host can be optimized by using the union file system. An implicit advantage of the two embodiments of the present invention is that the mirror image of the virtual host does not need to be copied to the host, thereby reducing the use of storage space in the host. By utilizing the layer-by-layer mapping relationship, the container host can be compatible with the mirror image file of the virtual host, and the container host is started by utilizing the operating file system of the virtual host. Some of the traffic of the virtual host is handled in the container host.
Corresponding to the two embodiments, an embodiment of the present invention further provides a schematic structural diagram of an apparatus for implementing compatibility of a container host and a virtual host image file, and as shown in fig. 3 specifically, the apparatus includes: a processing unit 301 and a start-up unit 302.
The processing unit 301 is configured to map the virtual host image file into a virtual hard disk by using a first operation instruction; mapping all files in the virtual hard disk to a first folder of the host machine by using a second operation instruction, wherein the first folder is any folder of the host machine; and acquiring the operating system file of the virtual host from the first folder.
Preferably, the first folder includes: a boot file; the boot file is used for indicating a storage path of the operating system file of the virtual host, so that the host acquires the operating system file of the virtual host according to the storage path of the operating system file of the virtual host indicated by the boot file.
A starting unit 302, configured to start the container host by using the operating system file of the virtual host.
Further preferably, the processing unit 301 is further configured to map the service data file corresponding to the container host to a second folder of the host; creating a combined file system according to the files in the first folder and the files in the second folder; and acquiring the operating system file of the virtual host from the joint file system.
The starting unit 302 is configured to start the container host according to the operating system file of the virtual host, where the second folder is any folder in the host except the first folder.
Specifically, the combined file system includes an upper storage path and a lower storage path, where the lower storage path is used to store files of a first folder, and the upper storage path is used to store files of a second folder.
Further preferably, the processing unit 301 is further configured to map the federated file system to a root folder of the container host, so that the software in the container host shares files in the root folder.
The method steps executed by each functional unit in the apparatus for implementing the compatibility of the container host and the virtual host image file provided by the embodiment of the present invention have been described in detail in the first two embodiments, and are not described herein again for simplicity and convenience of description.
The device for realizing the compatibility of the container host and the virtual host mirror image file provided by the embodiment of the invention maps the virtual host mirror image file into the virtual hard disk, and then maps all files in the virtual hard disk into the first folder of the host. And taking the first folder as a root directory of the container host, acquiring the operating system file of the virtual host from the first folder, and starting the container host by using the operating system file of the virtual host. In the process, the container host can be compatible with the image file of the virtual host, and can execute corresponding action after being started. In addition, the mirror image file of the virtual host does not need to be copied to the host, so that the use of the storage space in the host is reduced. By utilizing the layer-by-layer mapping relationship, the container host can be compatible with the mirror image file of the virtual host, and the container host is started by utilizing the operating file system of the virtual host. Some of the traffic of the virtual host is handled in the container host.
The reader should understand that in the description of this specification, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, each functional unit in the embodiments of the present invention may be integrated into one processing unit 301, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. A method for realizing compatibility of a container host and a virtual host image file is characterized by comprising the following steps:
mapping the virtual host image file into a virtual hard disk by using a first operation instruction;
mapping all files in the virtual hard disk to a first folder of a host machine by using a second operation instruction, wherein the first folder is any folder of the host machine;
acquiring an operating system file of the virtual host from the first folder;
starting a container host by using the operating system file of the virtual host;
after mapping all the files in the virtual hard disk to the first folder of the host machine by using the second operation instruction, the method further includes:
mapping the service data file corresponding to the container host to a second folder of the host;
creating a combined file system according to the files in the first folder and the files in the second folder;
acquiring an operating system file of the virtual host from the joint file system;
and starting the container host according to the operating system file of the virtual host, wherein the second folder is any folder except the first folder in the host.
2. The method of claim 1, wherein the federated file system comprises an upper storage path and a lower storage path, wherein the lower storage path is used to store the files of the first folder, and the upper storage path is used to store the files of the second folder.
3. The method of claim 2, wherein when the container host is booted, the method further comprises:
and mapping the combined file system into a root folder of the container host, so that the software in the container host can share the files in the root folder.
4. An apparatus for enabling a container host to be compatible with a virtual host image file, the apparatus comprising: the processing unit is used for mapping the virtual host image file into a virtual hard disk by using a first operation instruction;
mapping all files in the virtual hard disk to a first folder of a host machine by using a second operation instruction, wherein the first folder is any folder of the host machine;
acquiring an operating system file of the virtual host from the first folder;
the starting unit is used for starting the container host by utilizing the operating system file of the virtual host;
the processing unit is further to:
mapping the service data file corresponding to the container host to a second folder of the host;
creating a combined file system according to the files in the first folder and the files in the second folder;
acquiring an operating system file of the virtual host from the joint file system;
the starting unit is configured to start the container host according to an operating system file of the virtual host, where the second folder is any folder of the host except the first folder.
5. The apparatus of claim 4, wherein the federated file system comprises an upper storage path and a lower storage path, wherein the lower storage path is used to store the files of the first folder, and the upper storage path is used to store the files of the second folder.
6. The apparatus of claim 5, wherein the processing unit is further configured to,
and mapping the combined file system into a root folder of the container host, so that the software in the container host can share the files in the root folder.
CN201710428228.4A 2017-06-08 2017-06-08 Method and device for realizing compatibility of container host and virtual host image file Active CN107341073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710428228.4A CN107341073B (en) 2017-06-08 2017-06-08 Method and device for realizing compatibility of container host and virtual host image file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710428228.4A CN107341073B (en) 2017-06-08 2017-06-08 Method and device for realizing compatibility of container host and virtual host image file

Publications (2)

Publication Number Publication Date
CN107341073A CN107341073A (en) 2017-11-10
CN107341073B true CN107341073B (en) 2020-07-03

Family

ID=60220287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710428228.4A Active CN107341073B (en) 2017-06-08 2017-06-08 Method and device for realizing compatibility of container host and virtual host image file

Country Status (1)

Country Link
CN (1) CN107341073B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022206230A1 (en) * 2021-03-31 2022-10-06 阿里巴巴(中国)有限公司 Method and apparatus for starting secure container

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558275A (en) * 2018-10-25 2019-04-02 深圳点猫科技有限公司 A kind of method and electronic equipment of the factory reset based on educational system
CN111984280B (en) * 2019-05-22 2024-05-17 阿里巴巴集团控股有限公司 Container compatibility, upgrading method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103441847A (en) * 2013-08-13 2013-12-11 广东工业大学 Vehicle identity authentication method based on virtual machine migration technology
CN105245373A (en) * 2015-10-12 2016-01-13 天津市普迅电力信息技术有限公司 Construction and operation method of container cloud platform system
CN105511943A (en) * 2015-12-03 2016-04-20 华为技术有限公司 Docker container running method and device
CN105677444A (en) * 2015-12-31 2016-06-15 联想(北京)有限公司 Method and device for starting virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103441847A (en) * 2013-08-13 2013-12-11 广东工业大学 Vehicle identity authentication method based on virtual machine migration technology
CN105245373A (en) * 2015-10-12 2016-01-13 天津市普迅电力信息技术有限公司 Construction and operation method of container cloud platform system
CN105511943A (en) * 2015-12-03 2016-04-20 华为技术有限公司 Docker container running method and device
CN105677444A (en) * 2015-12-31 2016-06-15 联想(北京)有限公司 Method and device for starting virtual machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022206230A1 (en) * 2021-03-31 2022-10-06 阿里巴巴(中国)有限公司 Method and apparatus for starting secure container

Also Published As

Publication number Publication date
CN107341073A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
US10025806B2 (en) Fast file clone using copy-on-write B-tree
US10613786B2 (en) Heterogeneous disk to apply service level agreement levels
US10860560B2 (en) Tracking data of virtual disk snapshots using tree data structures
US9367244B2 (en) Composing a virtual disk using application delta disk images
US9448728B2 (en) Consistent unmapping of application data in presence of concurrent, unquiesced writers and readers
EP2840495B1 (en) Container-based processing method and apparatus
US8635429B1 (en) Method and apparatus for mapping virtual drives
US20150089182A1 (en) Automatically aligning virtual blocks to physical blocks
US10740038B2 (en) Virtual application delivery using synthetic block devices
CN107209683B (en) Backup image restore
US10296454B2 (en) Granular unmapping with variable addressing in a data store
US9792075B1 (en) Systems and methods for synthesizing virtual hard drives
CN113312155B (en) Virtual machine creation method, device, equipment, system and computer program product
US9460009B1 (en) Logical unit creation in data storage system
US20160350010A1 (en) Providing block size compatibility with a storage filter
CN107341073B (en) Method and device for realizing compatibility of container host and virtual host image file
CN102521016A (en) Method and system for operating multiple virtual machines
US9128746B2 (en) Asynchronous unmap of thinly provisioned storage for virtual machines
US20140123122A1 (en) System and method for virtual machine offline patching without mount the virtual disk
US9348769B2 (en) Managing zeroed logical volume
US10983819B2 (en) Dynamic provisioning and delivery of virtual applications
US10942670B2 (en) Direct access flash transition layer
US20230066840A1 (en) Efficiently providing a guest context access to file content at a host context
CN113986117A (en) File storage method, system, computing device and storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100020 601, 6 floor, 16 building, No. 36 Chuang Yuan Road, Chaoyang District, Beijing.

Applicant after: BEIJING YOUFAN TECHNOLOGY CO.,LTD.

Address before: 100107 B, Tianlong garden, Chaoyang District, Chaoyang District, Beijing 2805

Applicant before: BEIJING YOUFAN TECHNOLOGY CO.,LTD.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100020 601, 6 floor, 16 building, No. 36 Chuang Yuan Road, Chaoyang District, Beijing.

Applicant after: Beijing Qingyun Science and Technology Co.,Ltd.

Address before: 100020 601, 6 floor, 16 building, No. 36 Chuang Yuan Road, Chaoyang District, Beijing.

Applicant before: BEIJING YOUFAN TECHNOLOGY CO.,LTD.

GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 100000 Unit 501A, Floor 5, 101, Building 1, Yard 5, Laiguangying West Road, Chaoyang District, Beijing

Patentee after: Beijing Qingyun Science and Technology Co.,Ltd.

Address before: 100020 601, 6 floor, 16 building, No. 36 Chuang Yuan Road, Chaoyang District, Beijing.

Patentee before: Beijing Qingyun Science and Technology Co.,Ltd.