CN107239322A - A kind of virtual machine starts method and apparatus - Google Patents

A kind of virtual machine starts method and apparatus Download PDF

Info

Publication number
CN107239322A
CN107239322A CN201710651533.XA CN201710651533A CN107239322A CN 107239322 A CN107239322 A CN 107239322A CN 201710651533 A CN201710651533 A CN 201710651533A CN 107239322 A CN107239322 A CN 107239322A
Authority
CN
China
Prior art keywords
virtual machine
hard disk
cloud hard
cloud
intermediate virtual
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
Application number
CN201710651533.XA
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710651533.XA priority Critical patent/CN107239322A/en
Publication of CN107239322A publication Critical patent/CN107239322A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Abstract

Start method and apparatus the invention discloses a kind of virtual machine.It is related to cloud computing technology;Solve the problem of shortage starts Virtual Machine Mechanism to ISO formatted files.This method includes:Create cloud hard disk;The installation operation system on the cloud hard disk;Virtual machine is created, by the virtual machine by the cloud hard disk startup for being mounted with operating system.The technical scheme that the present invention is provided is applied to the startup of virtual machine in cloud platform, realizes diversified virtual machine Starting mode.

Description

A kind of virtual machine starts method and apparatus
Technical field
The present invention relates to cloud computing technology, espespecially a kind of virtual machine starts method and apparatus.
Background technology
OpenStack is the cloud computing an increased income management platform, and it is provided the foundation by various complementary services and set Apply the solution for servicing (IaaS).At present, there is the mode of a variety of startup virtual machines in OpenStack, such as from mirror image, reality Example snapshot, cloud hard disk and cloud hard disk snapshot start OpenStack virtual machines.But for ISO formatted files, still lack at present A kind of mechanism for starting virtual machine.If OpenStack user does not have mirror image, example snapshot, cloud hard disk and cloud hard disk snapshot, only There are ISO formatted files, then can not just start OpenStack virtual machines.
The content of the invention
In order to solve the above-mentioned technical problem, method and apparatus are started the invention provides a kind of virtual machine, by establishment Between virtual machine be hard disk installation system, then by ISO create virtual machine via the cloud hard disk startup for the system that is mounted with, realize many The virtual machine Starting mode of sample, meets a variety of different demands of practical application, solves shortage and starts void to ISO formatted files The problem of intending plane mechanism.
In order to reach the object of the invention, method is started the invention provides a kind of virtual machine, including:
Create cloud hard disk;
The installation operation system on the cloud hard disk;
Virtual machine is created, by the virtual machine by the cloud hard disk startup for being mounted with operating system.
It is preferred that, include on the cloud hard disk the step of installation operation system:
Create the intermediate virtual machine started by ISO formatted files;
By the machine-operated machine of the intermediate virtual after the completion of establishment, the cloud hard disk is mounted in the intermediate virtual machine;
Start the intermediate virtual machine, to the cloud hard disk on installation operation system;
The intermediate virtual machine is closed, the cloud hard disk is unloaded from the intermediate virtual machine, then delete the centre Virtual machine.
It is preferred that, it is described establishment cloud hard disk the step of be specially:
Cloud hard disk is created on OpenStack platforms.
It is preferred that, it is described establishment cloud hard disk the step of before, in addition to:
It is received from the request that ISO formatted files start virtual machine.
Present invention also offers a kind of virtual machine starter, including:
Hard disk creation module, for creating cloud hard disk;
System installs module, for the installation operation system on the cloud hard disk;
Starting module, for creating virtual machine, by the virtual machine by the cloud hard disk startup for being mounted with operating system.
It is preferred that, the system, which installs module, to be included:
Intermediate virtual machine creating unit, for creating the intermediate virtual machine started by ISO formatted files;
Hard disk carry unit, for, by the machine-operated machine of the intermediate virtual, the cloud hard disk being mounted into institute after the completion of establishment State in intermediate virtual machine;
System installation unit, for starting the intermediate virtual machine, to the cloud hard disk on installation operation system;
PMU, for closing the intermediate virtual machine, the cloud hard disk is unloaded from the intermediate virtual machine Carry, then delete the intermediate virtual machine.
It is preferred that, the hard disk creation module, specifically for creating cloud hard disk on OpenStack platforms.
It is preferred that, the device also includes:
Starting module is asked, starts the request of virtual machine for being received from ISO formatted files.
Start method and apparatus the invention provides a kind of virtual machine, on cloud hard disk after installation operation system, then create Virtual machine, by the cloud hard disk startup there is provided a kind of new virtual machine Initiated Mechanism, realizes diversified virtual machine and starts Mode, meets a variety of different demands of practical application, solves the problem of shortage starts Virtual Machine Mechanism to ISO formatted files.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights Specifically noted structure is realized and obtained in claim and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and constitutes a part for specification, with this The embodiment of application is used to explain technical scheme together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the schematic flow sheet that a kind of virtual machine that embodiments of the invention one are provided starts method;
Fig. 2 is a kind of structural representation for virtual machine starter that embodiments of the invention two are provided;
Fig. 3 is the structural representation of system installation module 202 in Fig. 2.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application Feature can mutually be combined.
Can be in the computer system of such as one group computer executable instructions the step of the flow of accompanying drawing is illustrated Perform.And, although logical order is shown in flow charts, but in some cases, can be with suitable different from herein Sequence performs shown or described step.
For ISO formatted files, a kind of mechanism for starting virtual machine is still lacked at present.If OpenStack user does not have Mirror image, example snapshot, cloud hard disk and cloud hard disk snapshot, only ISO formatted files, then can not just start OpenStack virtual Machine.
In order to solve the above problems, method and apparatus are started The embodiment provides a kind of virtual machine, it is hard in cloud On disk after installation operation system, then virtual machine is created, there is provided a kind of new virtual machine starter motor by the cloud hard disk startup System, realizes diversified virtual machine Starting mode, meets a variety of different demands of practical application, solves shortage to ISO lattice The problem of formula file start Virtual Machine Mechanism.
First with reference to accompanying drawing, embodiments of the invention one are illustrated.
Start method the embodiments of the invention provide a kind of virtual machine, by creating OpenStack clouds hard disk, being created from ISO Build OpenStack virtual machines, virtual machine carry cloud hard disk, installation operation system, virtual machine unloading cloud hard disk, from cloud hard disk startup The steps such as virtual machine come reach OpenStack user from ISO start OpenStack virtual machines purpose.Can be from ISO forms text The non-conventional virtual machine startup file form such as part starts OpenStack virtual machines, and the stream that virtual machine starts is completed using this method Journey as shown in figure 1, including:
Step 101, establishment cloud hard disk;
In this step, one piece of cloud hard disk, the startup for successor virtual machine are created in OpenStack platforms.
This step can be carried out after the request of ISO formatted files startup virtual machine is received from.
Step 102, the installation operation system on the cloud hard disk;
This step is specifically included:
(1) the intermediate virtual machine started by ISO formatted files is created;
In this step, an intermediate virtual machine is created in OpenStack platforms, the intermediate virtual machine starts from ISO, Without creating cloud hard disk again during this establishment intermediate virtual machine.
(2) by the machine-operated machine of the intermediate virtual after the completion of creating, the cloud hard disk is mounted in the intermediate virtual machine;
After the completion for the treatment of that the intermediate virtual machine in (1) is created, by the machine-operated machine of this intermediate virtual, the peace without performing operating system Dress process.The cloud hard disk that completion is created in step 101 is mounted in the virtual machine in (1).
(3) start the intermediate virtual machine, to the cloud hard disk on installation operation system;
In this step, intermediate virtual electromechanical source is opened, according to the normal mounting step of operating system by operating system file It is installed in the cloud hard disk in (1).
(4) close the intermediate virtual machine, the cloud hard disk unloaded from the intermediate virtual machine, then delete it is described in Between virtual machine;
To after the completion of cloud hard disk write operation system file, intermediate virtual electromechanical source is closed.Cloud hard disk is created from (1) Uninstalled in the intermediate virtual machine built, and delete the virtual machine created in (2);
Step 103, establishment virtual machine, by the virtual machine by the cloud hard disk startup for being mounted with operating system;
In this step, a virtual machine is created in OpenStack again, when creating the virtual machine from step 101 Start in cloud hard disk.
Step 104, the virtual machine for opening establishment, complete follow-up operating system installation settings step.
Below in conjunction with the accompanying drawings, embodiments of the invention two are illustrated.
The embodiments of the invention provide a kind of virtual machine starter, the structure of the device as shown in Fig. 2 including:
Hard disk creation module 201, for creating cloud hard disk;
System installs module 202, for the installation operation system on the cloud hard disk;
Starting module 203, for creating virtual machine, the virtual machine is opened by the cloud hard disk for being mounted with operating system It is dynamic.
It is preferred that, the system structure of module 202 is installed as shown in figure 3, including:
Intermediate virtual machine creating unit 2021, for creating the intermediate virtual machine started by ISO formatted files;
Hard disk carry unit 2022, for after the completion of establishment by the machine-operated machine of the intermediate virtual, by the cloud hard disk carry Into the intermediate virtual machine;
System installation unit 2023, for starting the intermediate virtual machine, to the cloud hard disk on installation operation system;
PMU 2024, for closing the intermediate virtual machine, by the cloud hard disk from the intermediate virtual machine Middle unloading, then delete the intermediate virtual machine.
It is preferred that, the hard disk creation module 2022, specifically for creating cloud hard disk on OpenStack platforms.
It is preferred that, the device also includes:
Starting module 204 is asked, starts the request of virtual machine for being received from ISO formatted files.
Start method and apparatus, the installation operation system on cloud hard disk The embodiment provides a kind of virtual machine Afterwards, then virtual machine is created, by the cloud hard disk startup there is provided a kind of new virtual machine Initiated Mechanism, realized diversified Virtual machine Starting mode, meets a variety of different demands of practical application, solves shortage and starts virtual machine machine to ISO formatted files Processed the problem of.Face adds the diversity of OpenStack virtual machine Starting mode, on the other hand also meets OpenStack use Family creates the demand of OpenStack virtual machines in the case of without mirror image, example snapshot, cloud hard disk and cloud hard disk snapshot.
Although disclosed herein embodiment as above, described content be only readily appreciate the present invention and use Embodiment, is not limited to the present invention.Technical staff in any art of the present invention, is taken off not departing from the present invention On the premise of the spirit and scope of dew, any modification and change, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (8)

1. a kind of virtual machine starts method, it is characterised in that including:
Create cloud hard disk;
The installation operation system on the cloud hard disk;
Virtual machine is created, by the virtual machine by the cloud hard disk startup for being mounted with operating system.
2. virtual machine according to claim 1 starts method, it is characterised in that the installation operation system on the cloud hard disk The step of include:
Create the intermediate virtual machine started by ISO formatted files;
By the machine-operated machine of the intermediate virtual after the completion of establishment, the cloud hard disk is mounted in the intermediate virtual machine;
Start the intermediate virtual machine, to the cloud hard disk on installation operation system;
The intermediate virtual machine is closed, the cloud hard disk is unloaded from the intermediate virtual machine, then delete the intermediate virtual Machine.
3. virtual machine according to claim 1 starts method, it is characterised in that specific the step of the establishment cloud hard disk For:
Cloud hard disk is created on OpenStack platforms.
4. virtual machine according to claim 1 starts method, it is characterised in that before the step of the establishment cloud hard disk, Also include:
It is received from the request that ISO formatted files start virtual machine.
5. a kind of virtual machine starter, it is characterised in that including:
Hard disk creation module, for creating cloud hard disk;
System installs module, for the installation operation system on the cloud hard disk;
Starting module, for creating virtual machine, by the virtual machine by the cloud hard disk startup for being mounted with operating system.
6. virtual machine starter according to claim 5, it is characterised in that the system, which installs module, to be included:
Intermediate virtual machine creating unit, for creating the intermediate virtual machine started by ISO formatted files;
Hard disk carry unit, for after the completion of establishment by the machine-operated machine of the intermediate virtual, by the cloud hard disk be mounted to it is described in Between in virtual machine;
System installation unit, for starting the intermediate virtual machine, to the cloud hard disk on installation operation system;
PMU, for closing the intermediate virtual machine, the cloud hard disk is unloaded from the intermediate virtual machine, then Delete the intermediate virtual machine.
7. virtual machine starter according to claim 5, it is characterised in that
The hard disk creation module, specifically for creating cloud hard disk on OpenStack platforms.
8. virtual machine starter according to claim 5, it is characterised in that the device also includes:
Starting module is asked, starts the request of virtual machine for being received from ISO formatted files.
CN201710651533.XA 2017-08-02 2017-08-02 A kind of virtual machine starts method and apparatus Pending CN107239322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710651533.XA CN107239322A (en) 2017-08-02 2017-08-02 A kind of virtual machine starts method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710651533.XA CN107239322A (en) 2017-08-02 2017-08-02 A kind of virtual machine starts method and apparatus

Publications (1)

Publication Number Publication Date
CN107239322A true CN107239322A (en) 2017-10-10

Family

ID=59988508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710651533.XA Pending CN107239322A (en) 2017-08-02 2017-08-02 A kind of virtual machine starts method and apparatus

Country Status (1)

Country Link
CN (1) CN107239322A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634713A (en) * 2018-11-02 2019-04-16 新华三云计算技术有限公司 A kind of virtual machine starting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572147A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cloud startup system, virtual machine with cloud startup system and startup method of virtual machine
CN104580399A (en) * 2014-12-19 2015-04-29 华南理工大学 OpenStack and Spice-based cloud desktop implementation method
CN105094897A (en) * 2015-07-02 2015-11-25 华为技术有限公司 Virtual machine starting method, cloud access equipment and cloud computing center
CN105589722A (en) * 2015-12-23 2016-05-18 浪潮集团有限公司 Method for initializing user name and password of virtual machine based on virtual machine template

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572147A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cloud startup system, virtual machine with cloud startup system and startup method of virtual machine
CN104580399A (en) * 2014-12-19 2015-04-29 华南理工大学 OpenStack and Spice-based cloud desktop implementation method
CN105094897A (en) * 2015-07-02 2015-11-25 华为技术有限公司 Virtual machine starting method, cloud access equipment and cloud computing center
CN105589722A (en) * 2015-12-23 2016-05-18 浪潮集团有限公司 Method for initializing user name and password of virtual machine based on virtual machine template

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CUIGELASI: "Openstack使用ISO镜像启动云主机", 《CSDN》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634713A (en) * 2018-11-02 2019-04-16 新华三云计算技术有限公司 A kind of virtual machine starting method and device
CN109634713B (en) * 2018-11-02 2020-12-08 新华三云计算技术有限公司 Virtual machine starting method and device

Similar Documents

Publication Publication Date Title
AU2014324086B2 (en) Virtual computing systems and methods
CN107783821A (en) Vehicle-mounted integral virtual method and device
AU2014324086A1 (en) Virtual computing systems and methods
CN103514007B (en) A kind of method of the thermal starting of the mobile terminal based on android system
CN104461746B (en) A kind of memory headroom optimization method and system based on android system
KR101673299B1 (en) Operating system recovery method and apparatus, and terminal device
WO2014052380A1 (en) Cross system installation of web applications
CN107391665A (en) The creation method and device of a kind of database instance
US20150120674A1 (en) Virtual program installation and state restoration
CN103975306A (en) Method and system for creating a virtual appliance
CN108292233B (en) Application processor for starting virtual machine
CN103677870A (en) System upgrading method and system upgraded by means of method
CN111209080A (en) Transparent transmission method for graphic processor
CN107239322A (en) A kind of virtual machine starts method and apparatus
CN110377408A (en) A kind of starting method, apparatus, terminal and the medium of application program
CN110795162A (en) Method and device for generating container mirror image file
CN103677879B (en) Software installation method and corresponding software mounting device
CN101645048B (en) Method for realizing computer virtualized evidence obtaining
US9141803B2 (en) Self-healing of operating system components
CN105701037A (en) System and method for simultaneously accessing to display controller by weston and DRM in vehicle-mounted entertainment system
WO2013056555A1 (en) User terminal partitioning method, device and user terminal
CN103870295B (en) Changing method and electronic equipment
US9047159B2 (en) Software installation
WO2015184902A1 (en) Concurrent processing method for intelligent split-screen and corresponding intelligent terminal
US9262128B2 (en) Information processing apparatus, information processing method and computer program

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: 20171010