CN108287733A - A kind of virtual machine load startup method - Google Patents
A kind of virtual machine load startup method Download PDFInfo
- Publication number
- CN108287733A CN108287733A CN201711372885.8A CN201711372885A CN108287733A CN 108287733 A CN108287733 A CN 108287733A CN 201711372885 A CN201711372885 A CN 201711372885A CN 108287733 A CN108287733 A CN 108287733A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- image file
- operating system
- starts
- machine
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45575—Starting, stopping, suspending or resuming virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of virtual machines to load startup method, including:The operating system image file of virtual machine is stored in physical machine disk;Kernel image file in operating system image file is loaded into physical machine memory;Start virtual machine.This method is saved in the image file of the operating system of virtual machine in local physical machine disk, when virtual machine starts, the kernel image file of operating system is loaded into physical machine memory, shorten the time that disc content is read when virtual machine load starts, simultaneously, since kernel image file is smaller relative to whole system image file data volume, and kernel image file contains required necessary core data when virtual machine starts, pass through the kernel image file start virtual machine, eliminate unnecessary data during virtual machine starts, reduce the data volume of virtual machine reading.So that virtual machine is quickly started, the pressure to network storage when virtual machine load starts is reduced.This method can be applied to cloud.
Description
Technical field
The present invention relates to virtual machine technique field, more particularly to a kind of virtual machine loads startup method.
Background technology
Virtual machine is a kind of example for restarting an operating system by virtualization technology on physical host, at present cloud
The use of the large-scale promotion of calculating and rise, virtual machine is more and more common, and virtual machine is with conventional physical machine mode start-up operation
System and service comparison, the former is more flexible, delivers more quick.
Inside cloud virtualization, storage service is to provide disk service for virtual machine instance so that the common object of virtual machine picture
Reason machine possesses disk and is written and read like that.It is following several that existing storage service realizes that framework mainly divides with mode:1. local deposit
Storage (magnetic disk of virtual machine service is provided as the physical machine where virtual machine);2. centralised storage (is individually deposited by an outside
Storage equipment is supplied to virtual machine use by way of network);3. distributed storage (is deposited by what external multiple storage devices formed
Accumulation is supplied to virtual machine use by way of network).
Two classes can be divided into three kinds of modes above again by being divided according to storage communication mode, and the first kind is:Pass through local system
System, which calls, directly provides service, and it is exactly such mode to be locally stored, and the disk of physical machine provides clothes directly where virtual machine
Business, needs not move through network, such communication efficiency higher, and faster, but such mode is data is only stored in local to speed,
When local device finds that failure is easy to that loss of data can be caused;Second class is:Storage service is provided by way of network, is collected
Chinese style and distributed storage are all that service is provided in a manner of such network, and the benefit of this mode is storage of the data by profession
Equipment preserves, and storage device has more parts of data backups, and data are not easy to lose, but a disadvantage is that because storage service passes through network,
It is compared with the first kind, efficiency decreases.
Most clouds provide the disk service that commercial city has selected the second class to provide the user with virtual machine on the market at present.
The disk service is that the disk of virtual machine is placed on network storage equipment, when virtual machine load starts, is led to
The mode reading disk content of network is crossed to physical machine physical memory, then starts virtual machine instance in physical machine.But in void
Quasi- machine has larger storage read request and flow when startup, and the load for not only affecting virtual machine starts the time, but also
There is moment larger impact to network storage equipment.
Invention content
The purpose of the present invention is:A kind of method that virtual machine load starts is provided, is solved in existing disk service, virtual machine
Start and caused by the load time is long, big problem is impacted to network storage equipment.
The solution that the present invention solves its technical problem is:A kind of virtual machine load startup method, including:By virtual machine
Operating system image file be stored in physical machine disk;Kernel image file in operating system image file is loaded into
In physical machine memory;Start virtual machine.
Further, after starting virtual machine, the disk read-write of virtual machine is rotated back on network memory.
Further, the kernel image file is compressed version file.
Further, the operating system is Linux or Windows.
The beneficial effects of the invention are as follows:The image file of the operating system of virtual machine is saved in local physical machine by this method
In disk, when virtual machine starts, the kernel image file of operating system is loaded into physical machine memory, shortens virtual machine load
The time of disc content is read when startup, simultaneously as kernel image file is smaller relative to whole system image file data volume,
And kernel image file contains required necessary core data when virtual machine starts, and is opened by the kernel image file
Dynamic virtual machine eliminates unnecessary data during virtual machine starts, reduces the data volume of virtual machine reading.So that virtual machine obtains
Quickly to start, the pressure to network storage when virtual machine load starts is reduced.This method can be applied to cloud.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described.Obviously, described attached drawing is a part of the embodiment of the present invention, rather than is all implemented
Example, those skilled in the art without creative efforts, can also be obtained according to these attached drawings other designs
Scheme and attached drawing.
Fig. 1 is the step flow chart of 1 virtual machine of embodiment load startup method.
Specific implementation mode
The technique effect of the design of the present invention, concrete structure and generation is carried out below with reference to embodiment and attached drawing clear
Chu is fully described by, to be completely understood by the purpose of the present invention, feature and effect.Obviously, described embodiment is this hair
Bright a part of the embodiment, rather than whole embodiments, based on the embodiment of the present invention, those skilled in the art are not being paid
The other embodiment obtained under the premise of creative work, belongs to the scope of protection of the invention.In addition, be previously mentioned in text
All connection/connection relations not singly refer to component and directly connect, and refer to that can be added deduct according to specific implementation situation by adding
Few couple auxiliary, to form more preferably coupling structure.Each technical characteristic in the invention, in not conflicting conflict
Under the premise of can be with combination of interactions.
Embodiment 1, with reference to figure 1, a kind of virtual machine load startup method, the present embodiment is by taking (SuSE) Linux OS as an example, packet
Include step:
S1:The linux system image file of virtual machine is stored in physical machine disk;
S2:The kernel image file of linux system image file described in step S1 is loaded into physical machine memory;
S3:Start virtual machine.
This method is saved in the image file of the operating system of virtual machine in local physical machine disk, when virtual machine starts
When, the kernel image file of operating system is loaded into physical machine memory, shortens when virtual machine load starts and reads disc content
Time, simultaneously as kernel image file is smaller relative to whole system image file data volume, and kernel image file packet
Required necessary core data when virtual machine starts is contained and void is eliminated by the kernel image file start virtual machine
Unnecessary data during quasi- machine starts, reduce the data volume of virtual machine reading.So that virtual machine is quickly started, reduce
To the pressure of network storage when virtual machine load starts.
As an optimization, after step S3, the disk read-write of virtual machine is rotated back on network memory.Start in virtual machine
Afterwards, it is then to use network memory to the read-write of disk, this ensure that the safety of data.
As an optimization, the kernel image file is compressed version file.Behaviour is not only remained using compressed version file
Make the core content of system, and occupy less physical machine memory headroom so that the load of kernel image file is quicker.
The better embodiment of the present invention is illustrated above, but the invention is not limited to the implementation
Example, those skilled in the art can also make various equivalent modifications or be replaced under the premise of without prejudice to spirit of that invention
It changes, these equivalent modifications or replacement are all contained in the application claim limited range.
Claims (4)
1. a kind of virtual machine loads startup method, which is characterized in that including:The operating system image file of virtual machine is stored in
In physical machine disk;Kernel image file in operating system image file is loaded into physical machine memory;Start virtual machine.
2. a kind of virtual machine according to claim 1 loads startup method, which is characterized in that, will after starting virtual machine
The disk read-write of virtual machine rotates back on network memory.
3. a kind of virtual machine according to claim 1 or 2 loads startup method, which is characterized in that the kernel image text
Part is compressed version file.
4. a kind of virtual machine according to claim 3 loads startup method, which is characterized in that the operating system is
Linux or Windows.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711372885.8A CN108287733A (en) | 2017-12-19 | 2017-12-19 | A kind of virtual machine load startup method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711372885.8A CN108287733A (en) | 2017-12-19 | 2017-12-19 | A kind of virtual machine load startup method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108287733A true CN108287733A (en) | 2018-07-17 |
Family
ID=62832135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711372885.8A Pending CN108287733A (en) | 2017-12-19 | 2017-12-19 | A kind of virtual machine load startup method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108287733A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109298891A (en) * | 2018-09-06 | 2019-02-01 | 深圳市智美达科技股份有限公司 | System start method and device, System build method and apparatus |
CN109491757A (en) * | 2018-10-11 | 2019-03-19 | 广东微云科技股份有限公司 | The Acceleration of starting method of local computing mode virtual machine |
CN110018859A (en) * | 2019-04-15 | 2019-07-16 | 珠海全志科技股份有限公司 | Equipment starting method, device, computer equipment and storage medium |
CN111258666A (en) * | 2020-01-22 | 2020-06-09 | 奇安信科技集团股份有限公司 | Reading method and device of computer file, computer system and storage medium |
CN112685141A (en) * | 2021-03-12 | 2021-04-20 | 北京易捷思达科技发展有限公司 | Virtual machine starting method, device, equipment and storage medium |
CN113377445A (en) * | 2021-08-16 | 2021-09-10 | 北京升鑫网络科技有限公司 | Method and device for starting multiple operating systems from online disk |
Citations (7)
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 |
CN102185774A (en) * | 2011-05-10 | 2011-09-14 | 中兴通讯股份有限公司 | Method, monitor and system for seamless migration of virtual machine |
CN103631639A (en) * | 2013-11-04 | 2014-03-12 | 天津汉柏信息技术有限公司 | Automatic detection method for user state virtual network interface card |
CN104573422A (en) * | 2015-01-08 | 2015-04-29 | 浪潮软件股份有限公司 | Virtual machine-based application process operation method and device |
CN105718280A (en) * | 2015-06-24 | 2016-06-29 | 乐视云计算有限公司 | Method and management platform for accelerating IO of virtual machine |
CN106599714A (en) * | 2016-11-15 | 2017-04-26 | 厦门市美亚柏科信息股份有限公司 | Reduction method and device for Android terminal full-disk enciphered data |
CN107463402A (en) * | 2017-07-31 | 2017-12-12 | 腾讯科技(深圳)有限公司 | The operation method and device of virtual opetrating system |
-
2017
- 2017-12-19 CN CN201711372885.8A patent/CN108287733A/en active Pending
Patent Citations (7)
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 |
CN102185774A (en) * | 2011-05-10 | 2011-09-14 | 中兴通讯股份有限公司 | Method, monitor and system for seamless migration of virtual machine |
CN103631639A (en) * | 2013-11-04 | 2014-03-12 | 天津汉柏信息技术有限公司 | Automatic detection method for user state virtual network interface card |
CN104573422A (en) * | 2015-01-08 | 2015-04-29 | 浪潮软件股份有限公司 | Virtual machine-based application process operation method and device |
CN105718280A (en) * | 2015-06-24 | 2016-06-29 | 乐视云计算有限公司 | Method and management platform for accelerating IO of virtual machine |
CN106599714A (en) * | 2016-11-15 | 2017-04-26 | 厦门市美亚柏科信息股份有限公司 | Reduction method and device for Android terminal full-disk enciphered data |
CN107463402A (en) * | 2017-07-31 | 2017-12-12 | 腾讯科技(深圳)有限公司 | The operation method and device of virtual opetrating system |
Non-Patent Citations (1)
Title |
---|
崔宝江等: "一种IP网络存储协议IBDTP的设计与实现", 《计算机工程与应用》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109298891A (en) * | 2018-09-06 | 2019-02-01 | 深圳市智美达科技股份有限公司 | System start method and device, System build method and apparatus |
CN109298891B (en) * | 2018-09-06 | 2021-09-21 | 深圳市智美达科技股份有限公司 | System starting method and device, system compiling method and device |
CN109491757A (en) * | 2018-10-11 | 2019-03-19 | 广东微云科技股份有限公司 | The Acceleration of starting method of local computing mode virtual machine |
CN109491757B (en) * | 2018-10-11 | 2022-03-15 | 广东微云科技股份有限公司 | Starting acceleration method of local computing mode virtual machine |
CN110018859A (en) * | 2019-04-15 | 2019-07-16 | 珠海全志科技股份有限公司 | Equipment starting method, device, computer equipment and storage medium |
CN110018859B (en) * | 2019-04-15 | 2022-04-22 | 珠海全志科技股份有限公司 | Equipment starting method and device, computer equipment and storage medium |
CN111258666A (en) * | 2020-01-22 | 2020-06-09 | 奇安信科技集团股份有限公司 | Reading method and device of computer file, computer system and storage medium |
CN111258666B (en) * | 2020-01-22 | 2023-07-04 | 奇安信科技集团股份有限公司 | Method and device for reading computer file, computer system and storage medium |
CN112685141A (en) * | 2021-03-12 | 2021-04-20 | 北京易捷思达科技发展有限公司 | Virtual machine starting method, device, equipment and storage medium |
CN112685141B (en) * | 2021-03-12 | 2021-09-21 | 北京易捷思达科技发展有限公司 | Virtual machine starting method, device, equipment and storage medium |
CN113377445A (en) * | 2021-08-16 | 2021-09-10 | 北京升鑫网络科技有限公司 | Method and device for starting multiple operating systems from online disk |
CN113377445B (en) * | 2021-08-16 | 2021-11-23 | 北京升鑫网络科技有限公司 | Method and device for starting multiple operating systems from online disk |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108287733A (en) | A kind of virtual machine load startup method | |
US20210240636A1 (en) | Memory Management Method and Apparatus | |
US9823877B2 (en) | Virtual machine backup from storage snapshot | |
CN100377085C (en) | Method for implementing hardware image starting optimizing of embedded operating system | |
CN103365696B (en) | BIOS image file acquisition methods and device | |
WO2016165597A1 (en) | Processing method and device for data storage | |
CN100365576C (en) | Memory mirror starting optimization of built-in operation system | |
CN106055388A (en) | Cloud platform application automatic deployment framework | |
US20220214907A1 (en) | Virtual machine memory management method and device | |
CN103336736B (en) | System log acquisition method and device | |
EP3748508A1 (en) | Memory management in virtualized computing | |
KR101673299B1 (en) | Operating system recovery method and apparatus, and terminal device | |
US20210200668A1 (en) | Reserved memory in memory management system | |
US20200218573A1 (en) | Memory management method, electronic apparatus, and storage device | |
CN107562483A (en) | A kind of method and device of carry guiding file system | |
WO2012155555A1 (en) | Method and system for running multiple virtual machines | |
US9348819B1 (en) | Method and system for file data management in virtual environment | |
CN105786547A (en) | Operation system restarting method and apparatus | |
CN109324991A (en) | A kind of hot plug device of PCIE device, method, medium and system | |
CN112486522A (en) | Deployment method and device of OpenStack bare machine with intelligent network card | |
CN104866324A (en) | Method for constructing portable operating system and portable memorizer | |
CN105389190B (en) | A kind of method, apparatus and system of os starting | |
CN105468429A (en) | Efficient virtual cluster management method and cluster node | |
CN104156270B (en) | A kind of unit runs the method and system of multiple operating system simultaneously | |
CN103955389A (en) | System startup method based on PCM (Phase Change Random Access Memory) |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180717 |