CN106155758B - Server system and related control method thereof - Google Patents

Server system and related control method thereof Download PDF

Info

Publication number
CN106155758B
CN106155758B CN201510131345.5A CN201510131345A CN106155758B CN 106155758 B CN106155758 B CN 106155758B CN 201510131345 A CN201510131345 A CN 201510131345A CN 106155758 B CN106155758 B CN 106155758B
Authority
CN
China
Prior art keywords
virtual machine
access
hard disk
area
disk storage
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
CN201510131345.5A
Other languages
Chinese (zh)
Other versions
CN106155758A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510131345.5A priority Critical patent/CN106155758B/en
Publication of CN106155758A publication Critical patent/CN106155758A/en
Application granted granted Critical
Publication of CN106155758B publication Critical patent/CN106155758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a server system and a related control method thereof, wherein the server system is used for operating a plurality of virtual machines and comprises the following steps: a memory area for storing the common operating system image files of the plurality of virtual machines; a hard disk storage area for storing a private file of each of the plurality of virtual machines; the invention does not need to store a common operating system image file which is the same as that of other virtual machines for each virtual machine, thereby saving the storage space; furthermore, the storage port of the hard disk storage area is not required to be accessed for multiple times aiming at the same common bothering system image file, so that the occupation of the storage port is saved, and the access performance of the virtual machine is improved.

Description

Server system and related control method thereof
Technical Field
The invention relates to the technical field of virtual machines, in particular to a server system and a related control method thereof.
Background
In a cloud computing infrastructure platform system, in order to create a virtual machine, an administrator may provide a basic operating system image file, and when creating a virtual machine based on the operating system image file, an operating system image file needs to be copied as an image file private to the virtual machine, so that the same image file often needs to be adopted by dozens of or even hundreds of virtual machines.
Then, for the server operating system, the hard disk storage area of the server operating system stores the operating system image file of each virtual machine, so when a large number of virtual machines are created, a large number of operating system image files need to be stored in the hard disk storage area, which may cause a large storage space of the hard disk storage area to be occupied, and further, may also occupy a large number of storage port access capabilities.
Disclosure of Invention
In view of this, the present invention provides a server system and a related control method thereof, so as to solve the technical problems in the prior art that when a large number of virtual machines are created, a large amount of storage space of a hard disk storage area is occupied, and a large amount of access capabilities of storage ports are occupied.
In order to achieve the purpose, the invention provides the following technical scheme:
a server system for running a plurality of virtual machines, the system comprising:
a memory area for storing the common operating system image files of the plurality of virtual machines;
and the hard disk storage area is used for storing the private file of each virtual machine of the plurality of virtual machines.
Preferably, the virtual machine is provided with a first driving interface, and the server system further includes a second driving interface for establishing connection with the first driving interface;
wherein the connection state of the first driver interface and the second driver interface is used for enabling the virtual machine to directly access a common operating system image file of the memory area.
Preferably, the hard disk storage area includes storage partitions, each storage partition corresponds to a virtual machine identifier, and the storage partitions are used for storing private files of virtual machines corresponding to the virtual machine identifiers.
A control method based on virtual machines is applied to a server system, wherein the server system comprises a memory area for storing image files of a shared operating system of a plurality of virtual machines; a hard disk storage area storing a private file of each of the plurality of virtual machines;
the method comprises the following steps:
receiving an access request of the virtual machine, and determining an access type based on the access request;
when the access type is write access, allocating a first position identifier for the access request;
determining a first area corresponding to the first position identification in the hard disk storage area, and controlling the virtual machine to access the first area;
when the access type is read access, determining a second location identifier based on the access request;
judging whether a second area corresponding to the second position identification in the hard disk storage area stores a private file or not;
if so, controlling the virtual machine to access the private file of a second area of the hard disk storage area;
if not, determining a second area corresponding to the second position identifier in the memory area;
and controlling the virtual machine to access the common operating system image file of the second area of the memory area.
Preferably, the virtual machine is provided with a first driving interface, and the server system further includes a second driving interface for establishing connection with the first driving interface;
the controlling the virtual machine to access the common operating system image file of the second area of the memory area specifically includes:
and controlling the virtual machine to directly copy the common operating system image file of the second area.
Preferably, the controlling the virtual machine to access the first area specifically includes:
converting the access request based on a preset rule;
and controlling the virtual machine to access the first area based on the converted access request.
Preferably, the controlling the virtual machine to access the private file of the second area of the hard disk storage area specifically includes:
converting the access request based on a preset rule;
and controlling the virtual machine to access the private file of the second area of the hard disk storage area based on the converted access request.
A method for controlling the start of a virtual machine is applied to a server system, wherein the server system comprises a memory area and a hard disk storage area;
the method comprises the following steps:
when a starting instruction of the virtual machine is received, judging whether the memory area stores a shared operating system image file or not;
if yes, controlling the virtual machine to start by using the shared operating system image file and the private file of the virtual machine located in the hard disk storage area;
if not, copying the shared operating system image file stored in the hard disk storage area to the memory area;
and controlling the virtual machine to start by using the shared operating system image file and the private file of the virtual machine positioned in the hard disk storage area.
Preferably, before the controlling the virtual machine to start up by using the shared operating system image file and the private file of the virtual machine located in the hard disk storage area, the method further includes:
acquiring a virtual machine identifier of the virtual machine indicated by the starting instruction;
determining the position of the hard disk storage area for storing the private file of the virtual machine based on the virtual machine identifier;
and acquiring the private file of the virtual machine stored in the position of the hard disk storage area.
As can be seen from the above technical solutions, compared with the prior art, the embodiment of the present invention discloses a server system, where the server system is configured to run multiple virtual machines, specifically, common operating system image files of the multiple virtual machines are all stored in a memory area, and a hard disk storage area is only used for storing a private file of each virtual machine, so that it is not necessary to store a common operating system image file, which is the same as that of other virtual machines, for each virtual machine, and thus a storage space is saved; furthermore, because the common operating system image file is stored in the memory area, a plurality of virtual machines only need to access the memory area for the common operating system image file, and do not need to access the storage port of the hard disk storage area for the same common operating system image file for multiple times, so that the occupation of the storage port is saved, and the access performance of the virtual machines is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a server system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a server system according to another embodiment of the present invention;
fig. 3 is a schematic flowchart of a control method based on a virtual machine according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for controlling a virtual machine to boot according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for controlling booting of a virtual machine according to another embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the invention, the running virtual machines are the virtual machines which use the same basic operating system image file provided by the server system.
As shown in fig. 1, the server system may include a memory area 100A and a hard disk storage area 100B.
The memory area 100A is used for storing a common operating system image file of a plurality of virtual machines.
Specifically, the creation of the virtual machine is completed based on the basic operating system image file provided by the server system, and the basic operating system image file based on the virtual machine is the same for different virtual machines, so that a plurality of virtual machines operated by the server system have the same common operating system image file. Then, when the virtual machine wants to access the same common operating system image file as the other virtual machines, the server system only needs to control the virtual machine to access the memory area storing the common operating system image file.
The hard disk storage area 100B is used to store a private file of each of the plurality of virtual machines.
The present invention is not limited to the specific implementation form of the hard disk storage area, for example, the hard disk storage area may be a storage area of an internal hard disk of a server system, may also be a storage area of an external hard disk, and may also be a storage area of a hard disk on a network.
Specifically, in the running process of the virtual machine, a private file different from other virtual machines is written into the server system, the private file is specifically stored in a hard disk storage area of the server system, and when the virtual machine accesses the private file different from other virtual machines, the server system only needs to read the private file corresponding to the virtual machine stored in the hard disk storage area into a memory area for the virtual machine to access.
It should be noted that, in the prior art, the hard disk storage area of the server operating system stores the operating system image file of each virtual machine. In the invention, the hard disk storage area is used for storing the private file of each virtual machine, and the common operating system image files of a plurality of virtual machines are stored in the memory area of the server operating system, so that the same common operating system image file as other virtual machines is not required to be stored for each virtual machine, thereby saving the storage space of the hard disk storage.
On the other hand, in the prior art, since the operating system image file of each virtual machine is stored in the hard disk storage area, multiple virtual machines perform multiple port accesses for the same operating system image file, and thus the access capability of a large number of storage ports is occupied. In the invention, because the common operating system image file is stored in the memory area, a plurality of virtual machines only need to access the memory area for the common operating system image file, and do not need to access the storage port of the hard disk storage area for the same common operating system image file for a plurality of times, thereby saving the occupation of the storage port and improving the access performance of the virtual machines.
In the embodiment of the invention, the server system is used for operating a plurality of virtual machines, specifically, the common operating system image files of the plurality of virtual machines are all stored in the memory area, and the hard disk storage area is only used for storing the private file of each virtual machine.
Further, in the prior art, since the image file of each virtual machine is stored in the hard disk storage area of the server system, when a virtual machine needs to access the image file stored in the hard disk storage area of the server system, first, the virtual machine needs to convert an access instruction for the file of the virtual machine into an access instruction for the hard disk of the virtual machine, and after receiving the access instruction for the hard disk of the virtual machine, the server system needs to convert the access instruction for the hard disk of the virtual machine into an access instruction for the file of the server system, and then convert the access instruction for the file of the server system into an access instruction for the hard disk storage area. Accordingly, since the operating system image file of the virtual machine is stored in the hard disk storage area, when the virtual machine accesses the operating system image file, multiple conversions still need to be performed, so that the access efficiency is low.
In view of the technical problem, another embodiment of the present invention further discloses a server system, where the server system is configured to run a plurality of virtual machines, and each virtual machine is provided with a first driving interface.
As shown in fig. 2, the server system may include: a memory area 100A, a hard disk storage area 100B, and a second drive interface 100C;
the memory area is used for storing common operating system image files of a plurality of virtual machines;
the hard disk storage area 100B is used to store a private file of each of the plurality of virtual machines;
the second driving interface is used for establishing connection with the first driving interface of the virtual machine.
It should be noted that the connection state of the first drive interface of the virtual machine and the second drive interface of the server system is used to enable the virtual machine to directly access the common operating system image file of the memory area.
Specifically, the first drive interface of the virtual machine and the second drive interface of the server system may both be implemented by software, the first drive interface may be a front-end hard disk drive of the virtual machine, and the second drive may be a back-end drive of the server system.
Compared with the prior art, in the invention, for the access of the image file of the shared operating system, the access to the file does not need to be converted into the access to the virtual hard disk for the virtual machine, and the access to the virtual hard disk does not need to be converted into the access to the file of the server system for the server system, so that the conversion is simplified for many times, and the access efficiency is improved.
In order to distinguish the private files of each virtual machine, in the present invention, the hard disk storage area of the server system specifically includes storage partitions, each storage partition corresponds to one virtual machine identifier, and the storage partitions are used for storing the private files of the virtual machines corresponding to the virtual machine identifiers.
When the virtual machine accesses the hard disk storage area of the server system, the server system can determine the virtual machine identifier of the virtual machine and search the hard disk storage area corresponding to the virtual machine identifier so as to control the virtual machine to access the storage partition corresponding to the virtual machine identifier.
It should be noted that, accesses to the server system by the virtual machine are generally divided into read accesses and write accesses, and for read accesses to the hard disk storage area, the server system needs to control the virtual machine to read the private file stored in the storage partition corresponding to the virtual machine, and for write accesses to the hard disk storage area, the server system also needs to control the virtual machine to write the file into the storage partition corresponding to the virtual machine.
An embodiment of the present invention further discloses a control method based on a virtual machine, which can be applied to a server system, the server system is used for running a plurality of virtual machines, and the server system includes: the system comprises a memory area and a hard disk storage area, wherein the memory area is used for storing the image files of the shared operating system of a plurality of virtual machines, and the hard disk storage area is used for storing the private files of each virtual machine of the plurality of virtual machines.
As shown in fig. 3, the method may include the steps of:
step 301: receiving an access request of a virtual machine, and determining an access type based on the access request;
the access of the virtual machine to the server system generally includes read access and write access, and therefore, it can be determined whether the access type is read access or write access through the access request.
Step 302: when the access type is write access, allocating a first position identifier for the access request;
the write access of the virtual machine to the server system specifically means that the virtual machine is to write its private file into the server system, so that the server system can determine a location identifier for storing the private file to be written by the virtual machine, and allocate the location identifier to the virtual machine.
Step 303: determining a first area corresponding to the first position identification in the hard disk storage area, and controlling the virtual machine to access the first area;
the file written into the server system by the virtual machine is determined to be a private file, so that the server system determines a first area corresponding to the first position identifier in the hard disk storage area and controls the virtual machine to access the first area, so that the virtual machine can write the private file into the first area.
It should be noted that the server system may establish a first corresponding relationship between the file identifier and the location identifier of the private file stored in the virtual machine, so that the virtual machine searches for a related file when performing read access; further, the first corresponding relationship established by the server system and the virtual machine identifier also have a second corresponding relationship so as to distinguish the first corresponding relationship between the private files of different virtual machines and the location identifier.
Step 304: when the access type is read access, determining a second location identifier based on the access request;
specifically, the access request of the virtual machine may carry a file identifier to be accessed, and the server system is pre-established with a corresponding relationship between the file identifier and the location identifier, so that the location identifier may be determined based on the file identifier carried in the access request.
Step 305: judging whether a second area corresponding to the second position identifier in the hard disk storage area stores a private file or not; if yes, go to step 306, if no, go to step 307;
step 306: controlling the virtual machine to access the private file of the second area of the hard disk storage area;
and controlling the virtual machine to access the private file of the second area of the hard disk storage area so that the virtual machine can read the private file of the second area of the hard disk storage area.
Step 307: determining a second area corresponding to the second position identifier in the memory area;
it should be noted that, if a file of a virtual machine is not stored in the hard disk storage area, which indicates that the file is an operating system image file shared with other virtual machines, the file is necessarily stored in the memory area, and therefore, the second area in the memory area may be determined based on the second location identifier determined previously.
Step 308: and controlling the virtual machine to access the common operating system image file of the second area of the memory area.
And controlling the virtual machine to access the common operating system image file of the second area of the memory area, so that the virtual machine can read the common operating system image file located in the second area of the memory area.
In the embodiment of the invention, the common operating system image files of a plurality of virtual machines are stored in the memory area, and the hard disk storage area is only used for storing the private file of each virtual machine, so that the common operating system image file which is the same as that of other virtual machines does not need to be stored for each virtual machine, thereby saving the storage space; furthermore, because the common operating system image file is stored in the memory area, a plurality of virtual machines only need to access the memory area for the common operating system image file, and do not need to access the storage port of the hard disk storage area for the same common operating system image file for multiple times, so that the occupation of the storage port is saved, and the access performance of the virtual machines is improved.
In the prior art, the virtual machine needs to perform multiple conversions for accessing the server system, so that the access efficiency is low. Based on the problem, another embodiment of the present invention further discloses a control method based on a virtual machine, and the difference between this embodiment and the above embodiments is that a first driving interface is provided on the virtual machine, and the server system may further include a second driving interface, where the second driving interface is used to establish a connection with the first driving interface.
Correspondingly, different from the above method, in the method step, "controlling the virtual machine to access the common operating system image file in the second area of the memory area" may specifically be: and controlling the virtual machine to directly copy the common operating system image file of the second area.
In the invention, the bridge between the virtual machine and the server system is directly established through the first drive interface and the second drive interface, so that the virtual machine can directly copy the shared operating system image file from the memory area of the server system through the bridge.
In the present invention, when it is determined that the virtual machine needs to access the hard disk storage area of the server system, the access request of the virtual machine needs to be specifically converted into an access request meeting the requirement of accessing the hard disk storage area. Correspondingly, different from the foregoing embodiment, the step "controlling the virtual machine to access the first area" may specifically include:
a1: converting the access request based on a preset rule;
the preset rule is a rule which is preset in the server system to convert the access request of the virtual machine into an access request meeting the requirement of accessing the hard disk storage area.
A2: and controlling the virtual machine to access the first area based on the converted access request.
Correspondingly, different from the foregoing embodiment, the step "controlling the virtual machine to access the private file of the second area of the hard disk storage area" may specifically include:
b1: converting the access request based on a preset rule;
the preset rule is a rule which is preset in the server system to convert the access request of the virtual machine into an access request meeting the requirement of accessing the hard disk storage area.
B2: and controlling the virtual machine to access the private file of the second area of the hard disk storage area based on the converted access request.
The embodiment of the invention also discloses a method for controlling the startup of the virtual machine, which can be applied to a server system, wherein the server system can comprise a memory area and a hard disk storage area;
as shown in fig. 4, the method may include the steps of:
step 401: receiving a starting instruction of a virtual machine;
step 402: judging whether the memory area stores a shared operating system mirror image file or not; if yes, go to step 403; if not, go to step 404;
the starting instruction is used for indicating a certain virtual machine constructed in the server system to start, when the starting instruction of the virtual machine is received, whether a shared operating system image file is stored in a memory area needs to be judged, and if the shared operating system image file is stored in the memory area, the server system is indicated to have the virtual machine run; if the shared operating system image file is not stored in the memory area, it indicates that a virtual machine is not running in the server system, and the virtual machine indicated by the boot instruction is the first virtual machine to be run in the server system.
Step 403: controlling the virtual machine to start by using the image file of the shared operating system and the private file of the virtual machine in the hard disk storage area;
when the shared operating system image file is stored in the memory area, the shared operating system image file and the private file of the virtual machine in the hard disk storage area are directly used for controlling the virtual machine to start.
It should be noted that the private file of the virtual machine used for controlling the virtual machine to boot is the virtual machine indicated by the boot instruction.
Step 404: copying a shared operating system image file stored in a hard disk storage area to a memory area;
when the memory area does not store the shared operating system image file, the shared operating system image file stored in the hard disk storage area needs to be copied to the memory area.
It should be noted that the shared operating system image file stored in the hard disk storage area is a base image file provided by the operating system for each virtual machine.
Step 405: and controlling the virtual machine to start by using the image file of the shared operating system and the private file of the virtual machine in the hard disk storage area.
After copying the shared operating system image file to the memory area, the shared operating system image file and the private file of the virtual machine in the hard disk storage area can be used for controlling the virtual machine to start; for the virtual machine which needs to be started later, the server system can directly utilize the shared operating system stored in the memory area without copying again.
Another embodiment of the present invention further discloses a method for controlling the startup of a virtual machine, as shown in fig. 5, the method may include the following steps:
step 501: receiving a starting-up instruction of a virtual machine;
step 502: acquiring a virtual machine identifier of the virtual machine indicated by a starting instruction;
the boot instruction carries a virtual machine identifier indicating boot, and therefore, in order to control the virtual machine corresponding to the boot instruction to boot, the virtual machine identifier of the virtual machine indicated by the boot instruction needs to be obtained first.
Step 503: determining the position of a hard disk storage area for storing private files of the virtual machine based on the virtual machine identifier;
the server system is pre-established with a corresponding relationship between the virtual machine identifier and the location identifier for storing the private file, so that the location of the private file of the virtual machine stored in the hard disk storage area can be determined based on the virtual machine identifier.
Step 504: acquiring private files of the virtual machine stored in the position of the hard disk storage area;
and the acquired private file of the virtual machine at the position of the hard disk storage area is a file for controlling the startup of the virtual machine.
Step 505: judging whether the memory area stores a shared operating system mirror image file or not; if yes, go to step 505; if not, go to step 506;
the execution sequence of steps 502-504 and step 505 is not specifically limited in the present invention, and as another execution sequence, step 505 may be executed after step 501, and then steps 502-504 may be executed.
Step 506: controlling the virtual machine to start by using the image file of the shared operating system and the private file of the virtual machine in the hard disk storage area;
and the private file of the virtual machine positioned in the hard disk storage area is the private file of the virtual machine stored in the position of the hard disk storage area acquired before.
Step 507: copying a shared operating system image file stored in a hard disk storage area to a memory area;
step 508: and controlling the virtual machine to start by using the image file of the shared operating system and the private file of the virtual machine in the hard disk storage area.
And the private file of the virtual machine positioned in the hard disk storage area is the private file of the virtual machine stored in the position of the hard disk storage area acquired before.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A server system for running a plurality of virtual machines, the system comprising:
storing a memory area of a common operating system image file of the plurality of virtual machines, so that the plurality of virtual machines only need to access the memory area aiming at the common operating system image file;
and the hard disk storage area is used for storing the private file of each virtual machine of the plurality of virtual machines.
2. The system according to claim 1, wherein the virtual machine is provided with a first driving interface, the server system further comprising a second driving interface for establishing a connection with the first driving interface;
wherein the connection state of the first driver interface and the second driver interface is used for enabling the virtual machine to directly access a common operating system image file of the memory area.
3. The system according to claim 1 or 2, wherein the hard disk storage area comprises storage partitions, each storage partition corresponds to a virtual machine identifier, and the storage partitions are used for storing private files of the virtual machine corresponding to the virtual machine identifier.
4. A control method based on virtual machines is characterized in that the control method is applied to a server system, and the server system comprises a memory area for storing image files of a shared operating system of a plurality of virtual machines; a hard disk storage area storing a private file of each of the plurality of virtual machines;
the method comprises the following steps:
receiving an access request of the virtual machine, and determining an access type based on the access request;
when the access type is write access, allocating a first position identifier for the access request;
determining a first area corresponding to the first position identification in the hard disk storage area, and controlling the virtual machine to access the first area;
when the access type is read access, determining a second location identifier based on the access request;
judging whether a second area corresponding to the second position identification in the hard disk storage area stores a private file or not;
if so, controlling the virtual machine to access the private file of a second area of the hard disk storage area;
if not, determining a second area corresponding to the second position identifier in the memory area;
and controlling the virtual machine to access the common operating system image file of the second area of the memory area.
5. The method according to claim 4, wherein the virtual machine is provided with a first drive interface, the server system further comprising a second drive interface for establishing a connection with the first drive interface;
the controlling the virtual machine to access the common operating system image file of the second area of the memory area specifically includes:
and controlling the virtual machine to directly copy the common operating system image file of the second area.
6. The method according to claim 4, wherein the controlling the virtual machine to access the first area specifically includes:
converting the access request based on a preset rule;
and controlling the virtual machine to access the first area based on the converted access request.
7. The method according to claim 4, wherein the controlling the virtual machine to access the private file of the second area of the hard disk storage area specifically includes:
converting the access request based on a preset rule;
and controlling the virtual machine to access the private file of the second area of the hard disk storage area based on the converted access request.
8. A method for controlling the start of a virtual machine is characterized in that the method is applied to a server system, and the server system comprises a memory area and a hard disk storage area;
the method comprises the following steps:
when a starting instruction of the virtual machine is received, judging whether the memory area stores a shared operating system image file or not;
if yes, controlling the virtual machine to start by using the shared operating system image file and the private file of the virtual machine located in the hard disk storage area;
if not, copying the shared operating system image file stored in the hard disk storage area to the memory area, so that the plurality of virtual machines only need to access the memory area aiming at the shared operating system image file;
and controlling the virtual machine to start by using the shared operating system image file and the private file of the virtual machine positioned in the hard disk storage area.
9. The method according to claim 8, wherein before controlling the virtual machine to boot up by using the shared operating system image file and the private file of the virtual machine located in the hard disk storage area, the method further comprises:
acquiring a virtual machine identifier of the virtual machine indicated by the starting instruction;
determining the position of the hard disk storage area for storing the private file of the virtual machine based on the virtual machine identifier;
and acquiring the private file of the virtual machine stored in the position of the hard disk storage area.
CN201510131345.5A 2015-03-24 2015-03-24 Server system and related control method thereof Active CN106155758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510131345.5A CN106155758B (en) 2015-03-24 2015-03-24 Server system and related control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510131345.5A CN106155758B (en) 2015-03-24 2015-03-24 Server system and related control method thereof

Publications (2)

Publication Number Publication Date
CN106155758A CN106155758A (en) 2016-11-23
CN106155758B true CN106155758B (en) 2022-04-19

Family

ID=57339858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510131345.5A Active CN106155758B (en) 2015-03-24 2015-03-24 Server system and related control method thereof

Country Status (1)

Country Link
CN (1) CN106155758B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291399B (en) * 2017-06-30 2020-11-24 苏州浪潮智能科技有限公司 Back-end storage method, device and system based on SPDK
CN107391141A (en) * 2017-07-26 2017-11-24 浪潮软件集团有限公司 Full-memory operating system supporting container operation
CN108196943B (en) * 2018-02-06 2019-10-08 北京百度网讯科技有限公司 Virtual machine management method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999369A (en) * 2012-12-25 2013-03-27 杭州华三通信技术有限公司 Method and device for upgrading virtual machines

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033755A (en) * 2009-09-30 2011-04-27 国际商业机器公司 Method and system for running virtual machine mirror image
CN102323943A (en) * 2011-09-02 2012-01-18 北京天地云箱科技有限公司 Virtual-machine-based data storage method and system
EP2717515A1 (en) * 2012-06-30 2014-04-09 Huawei Technologies Co., Ltd. Virtual port monitoring method and device
CN103902347B (en) * 2012-12-24 2017-09-29 中国电信股份有限公司 The dispositions method and system of dummy machine system
CN104239575A (en) * 2014-10-08 2014-12-24 清华大学 Virtual machine mirror image file storage and distribution method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999369A (en) * 2012-12-25 2013-03-27 杭州华三通信技术有限公司 Method and device for upgrading virtual machines

Also Published As

Publication number Publication date
CN106155758A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
US10455003B2 (en) Method, server, and system for sharing resource data
EP3851959A1 (en) Method and apparatus for migrating virtual machine
US20140089921A1 (en) Method and system for managing virtual machine disks
EP3382535A1 (en) Method for loading drive program, and server
WO2016165597A1 (en) Processing method and device for data storage
EP3567483B1 (en) Method for processing service data, and network device
CN106155758B (en) Server system and related control method thereof
CN110750336B (en) OpenStack virtual machine memory hot-expanding method
CN103634379A (en) Management method for distributed storage space and distributed storage system
CN109960569B (en) Virtualization processing method and device
WO2016037499A1 (en) Memory migration method and device
US11023153B2 (en) Installation of operating system
CN111104219A (en) Binding method, device, equipment and storage medium of virtual core and physical core
CN116028455A (en) Data processing method and device, storage medium and electronic equipment
CN108475201A (en) A kind of data capture method in virtual machine start-up course and cloud computing system
CN115390996A (en) Virtual machine migration method and device, computing equipment and storage medium
CN109660393B (en) Method and device for updating specification of cloud host
CN112711462A (en) Cloud platform virtual CPU hot binding method and device and computer readable storage medium
US11301436B2 (en) File storage method and storage apparatus
CN110753040B (en) Request processing method and device
WO2018103372A1 (en) Driver management method and host machine
US20230289207A1 (en) Techniques for Concurrently Supporting Virtual NUMA and CPU/Memory Hot-Add in a Virtual Machine
WO2015058594A1 (en) Process loading method, device and system
KR20150072963A (en) Multisystem, and method of booting the same
CN115151902A (en) Cluster capacity expansion method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant