CN105843682A - Method and apparatus for migrating virtual machine to IaaS cloud platform - Google Patents

Method and apparatus for migrating virtual machine to IaaS cloud platform Download PDF

Info

Publication number
CN105843682A
CN105843682A CN201610188311.4A CN201610188311A CN105843682A CN 105843682 A CN105843682 A CN 105843682A CN 201610188311 A CN201610188311 A CN 201610188311A CN 105843682 A CN105843682 A CN 105843682A
Authority
CN
China
Prior art keywords
virtual machine
migrated
cloud
main frame
file
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.)
Granted
Application number
CN201610188311.4A
Other languages
Chinese (zh)
Other versions
CN105843682B (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.)
Sina Technology China Co Ltd
Original Assignee
Sina Technology China 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 Sina Technology China Co Ltd filed Critical Sina Technology China Co Ltd
Priority to CN201610188311.4A priority Critical patent/CN105843682B/en
Publication of CN105843682A publication Critical patent/CN105843682A/en
Application granted granted Critical
Publication of CN105843682B publication Critical patent/CN105843682B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • 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
    • 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/4557Distribution of virtual machine instances; Migration and load balancing

Abstract

Embodiments of the invention provide a method and an apparatus for migrating a virtual machine to an IaaS cloud platform. The method and apparatus are used for quickly, efficiently and automatically migrating the virtual machine to the IaaS cloud platform. The method comprises the steps of initializing a migration environment; according to a virtual machine migration directory, initializing a to-be-migrated virtual machine and injecting an automatic file system repair tool and an automatic initialization processing tool into the to-be-migrated virtual machine; starting the to-be-migrated virtual machine, and based on a virtualized environment, the automatic file system repair tool and the automatic initialization processing tool, performing file system repair and initialization processing on the to-be-migrated virtual machine; compressing a system disk injected with user data in the to-be-migrated virtual machine; based on a cloud environment SDK and configuration information of the to-be-migrated virtual machine, creating a cloud host by using an empty file mirror image in the IaaS cloud platform; and shutting down the created cloud host, replacing a hard disk file of the cloud host in the IaaS cloud platform with a compressed system disk file in the to-be-migrated virtual machine, and starting the cloud host.

Description

A kind of migrate the virtual machine method and device to IaaS cloud platform
Technical field
The invention belongs to field of computer technology, particularly relate to a kind of migrate the virtual machine method and device to IaaS cloud platform.
Background technology
According to NIST (National Institute of Standards and Technology, National Institute of Standards and Technology) Authority definition, the service mode of cloud computing has SPI (i.e. SaaS, PaaS and IaaS) the big class of these three or level.IaaS (Infrastructure as a Service, infrastructure i.e. services) refers to that consumer passes through Internet can be from perfect calculating Infrastructure obtains service.It is the utilization to all computing basic facilities that IaaS is supplied to the service of consumer, including processing CPU, internal memory, storage, network and other basic calculating resource, user can dispose and run any software, including behaviour Make system and application program.Consumer does not manages or controls any computing basic facility, but can control operating system selection, Memory space, the application of deployment, it is also possible to (such as router, fire wall, load are equal to obtain conditional networking component Weighing apparatus etc.) control.
In the embodiment of the present invention, the cloud computing platform under IaaS service mode is referred to as IaaS cloud platform.For provide or For person uses the enterprise of IaaS cloud platform, during cloud Constructing data center, often leave over a large amount of virtual resources, this The a little resource bearings core business of each product line of enterprise.In prior art, migrate the side of the IaaS cloud platform that virtual machine arrives Case is mainly: directly as mirror image, the cloud main frame made is uploaded to IaaS cloud platform, direct base in IaaS cloud platform Cloud main frame is created in mirror image.
The present inventor finds during invention, and what existing migration scheme existed technical problem is that poor efficiency, main reason is that:
1) not compression before cloud on cloud mirror image, can make migration time significantly elongate, and mirror image is the biggest, the longest;Need Bright, " upper cloud " described in the embodiment of the present invention refers to upload to the pictute of IaaS cloud platform.
2) create cloud main frame based on above-mentioned big mirror image, IaaS cloud platform typically require first by image download to this locality, enter one Walking and elongated by migration time, mirror image is the biggest, the longest.
The demand of cloud is quickly gone up, it would be highly desirable to provide one automatization fast and efficiently to migrate void in order to meet enterprise virtual resource Plan machine is to the scheme of IaaS cloud platform.
Summary of the invention
In view of this, the present invention provides a kind of and migrates the virtual machine method and device to IaaS cloud platform, in order to quick, efficient Automatization migrate virtual machine to IaaS cloud platform, meet enterprise virtual resource and quickly go up the demand of cloud.
To achieve these goals, the present invention provides a kind of virtual machine that migrates i.e. to service the side of IaaS cloud platform to infrastructure Method, including:
Initialize migrate environment, described initialization migrate environment specifically include: by the virtual machine download in virtual pool to the machine, Tissue virtual machine (vm) migration catalogue, preparation cloud environment SDK SDK, preparation virtualized environment;
According to virtual machine (vm) migration catalogue, initialize virtual machine to be migrated, and in virtual machine to be migrated, inject autofile system Fix tool and auto-initiation handling implement;
Start virtual machine to be migrated, and based on science and engineering at virtualized environment, automatically reparation file system instrument and auto-initiation Tool, carries out file system reparation to virtual machine to be migrated and initialization processes;
Compress the system disk having been injected into user data on virtual machine to be migrated;
Based on cloud environment SDK and the configuration information of virtual machine to be migrated, IaaS cloud platform uses empty file mirror image Create cloud main frame;
The cloud main frame created is done power-off operation, uses the system disk file after compressing on virtual machine to be migrated to replace IaaS cloud and put down The fixed disk file of described cloud main frame on platform, starts described cloud main frame afterwards.
Further, before described compression virtual machine to be migrated has been injected into the system disk of user data, also include:
Calculate system disk and the data disks size of virtual machine to be migrated, the hard disk size of on-demand automatic adjustment virtual machine to be migrated To suitably sized;
User data in data disks on virtual machine to be migrated is injected on the system disk of virtual machine to be migrated.
Further, described compression virtual machine to be migrated has been injected into the system disk of user data, specifically includes:
Automatically compress on virtual machine to be migrated and have been injected into the system disk of user data to minimum dimension.
Further, described virtual machine to be migrated is carried out file system reparation and initialization when processing, also includes:
Open remote control tool, for representing the virtual machine (vm) migration to be migrated progress to IaaS cloud platform;And carry out cloud master Machine toggle speed optimization processes.
Further, described cloud master in IaaS cloud platform replaced by the system disk file after described use virtual machine to be migrated compressing The fixed disk file of machine, specifically includes:
Configure according to user, determine the locally stored of virtual machine (vm) migration to be migrated to IaaS cloud platform or shared storage;
If locally stored, delete cloud main frame fixed disk file on local storage, by the system disk literary composition on virtual machine to be migrated Part copies the fixed disk file place catalogue that cloud main frame place is locally stored to;
If sharing storage, delete cloud main frame fixed disk file in shared storage, by the system disk literary composition on virtual machine to be migrated Part imports in the particular storage pool catalogue in the fixed disk file place distributed storage of cloud main frame.
Conceive based on same technology, present invention also offers and a kind of migrate the virtual machine device to IaaS cloud platform, be arranged on and move Move in working machine, including:
Environmental preparation module, is used for initializing migration environment, and described initialization migrates environment and specifically includes: by virtual pool Virtual machine download is to the machine, tissue virtual machine (vm) migration catalogue, preparation cloud environment SDK SDK, preparation virtualization Environment;
Virtual machine initialization module, for according to virtual machine (vm) migration catalogue, initializes virtual machine to be migrated, and in void to be migrated Plan machine injects autofile system fix tool and auto-initiation handling implement;
Virtual machine cloud module, is used for starting virtual machine to be migrated, and based on virtualized environment, automatically reparation file system work Tool and auto-initiation handling implement, carry out file system reparation to virtual machine to be migrated and initialization processes;
Virtual machine compression module, for compressing the system disk having been injected into user data on virtual machine to be migrated;
Cloud main frame creation module, for based on cloud environment SDK and the configuration information of virtual machine to be migrated, in IaaS cloud Empty file mirror image is used to create cloud main frame on platform;
Cloud module in migration, for the cloud main frame created is done power-off operation, uses the system after compression on virtual machine to be migrated The fixed disk file of described cloud main frame in IaaS cloud platform replaced by dish file, starts described cloud main frame afterwards.
Further, described device also includes:
Virtual machine is sized module, for calculating system disk and the data disks size of virtual machine to be migrated, on-demand automatic tune The hard disk size of whole virtual machine to be migrated is to suitably sized;
User data injection module, migrates virtual machine for being injected into by the user data in data disks on virtual machine to be migrated On system disk.
Further, described virtual machine compression module, have been injected into user data specifically for automatically compressing on virtual machine to be migrated System disk to minimum dimension.
Further, described virtual machine cloud module, it is additionally operable to open remote control tool, is used for representing virtual machine to be migrated Move to the progress of IaaS cloud platform;And carry out the process of cloud host-initiated speed-optimization.
Further, cloud module in described migration, specifically include:
Determine submodule, for the cloud main frame created is done power-off operation, configure according to user, determine virtual machine to be migrated Move to the locally stored of IaaS cloud platform or shared storage;
This ground cloud submodule, if for locally stored, delete cloud main frame fixed disk file on local storage, will wait to move Move the fixed disk file place catalogue that the system disk file copy on virtual machine is locally stored to cloud main frame place, start described afterwards Cloud main frame;
Share upper cloud submodule, if for sharing storage, deleting cloud main frame fixed disk file in shared storage, waiting to move The system disk file moved on virtual machine imports to the particular storage pool catalogue in the fixed disk file place distributed storage of cloud main frame In, start described cloud main frame afterwards.
What the present invention provided migrates the virtual machine method and device to IaaS cloud platform, notes on virtual machine to be migrated by compressing The system disk of access customer data so that first reduced size before cloud on cloud mirror image, reduces the network transmission consumption of cloud on cloud mirror image as far as possible Time;By first using empty file mirror image to create cloud main frame in IaaS cloud platform, then the mode replacing cloud host hard drive creates cloud Main frame, it is to avoid download the high time-consuming problem that big mirror image causes.Such that it is able to automatization migrates virtual machine to IaaS fast and efficiently Cloud platform, meets enterprise virtual resource and quickly goes up the demand of cloud.
Other features and advantage will illustrate in the following description, and, partly become aobvious from description And be clear to, or understand by implementing the application.The purpose of the application and other advantages can by the description write, Structure specifically noted in claims and accompanying drawing realizes and obtains.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing skill In art description, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to root Other accompanying drawing is obtained according to these accompanying drawings.Accompanying drawing is used for providing a further understanding of the present invention, and constitutes the one of description Part, is used for together with embodiments of the present invention explaining the present invention, is not intended that limitation of the present invention.In the accompanying drawings:
Fig. 1 is to migrate the virtual machine method flow diagram to IaaS cloud platform in the embodiment of the present invention;
Fig. 2 is to migrate the virtual machine network architecture schematic diagram to IaaS cloud platform in the embodiment of the present invention;
Fig. 3 is by the specific embodiments flow chart of virtual machine (vm) migration to IaaS cloud platform in the embodiment of the present invention;
Fig. 4 is to migrate the virtual machine device block diagram to IaaS cloud platform in the embodiment of the present invention;
Fig. 5 is the possible structural representation of one migrating upper cloud module in the embodiment of the present invention.
Detailed description of the invention
The embodiment of the present invention aims to provide and a kind of migrates the virtual machine method and device to IaaS cloud platform, in order to quick, efficient Automatization migrate virtual machine to IaaS cloud platform, meet enterprise virtual resource and quickly go up the demand of cloud.
Below in conjunction with Figure of description, the preferred embodiments of the present invention are illustrated, it will be appreciated that described herein preferably Embodiment is merely to illustrate and explains the present invention, is not intended to limit the present invention.And in the case of not conflicting, the application In embodiment and feature in embodiment can be mutually combined.
As it is shown in figure 1, the migration virtual machine that the embodiment of the present invention provides is to the method for IaaS cloud platform, comprise the steps:
S101, initialization migrate environment, and described initialization migrates environment and specifically includes: the virtual machine download in virtual pool arrived The machine, tissue virtual machine (vm) migration catalogue, preparation cloud environment SDK SDK, preparation virtualized environment;
S102, according to virtual machine (vm) migration catalogue, initialize virtual machine to be migrated, and in virtual machine to be migrated, inject literary composition automatically Part system fix tool and auto-initiation handling implement;
S103, start virtual machine to be migrated, and based on virtualized environment, automatically repair file system instrument and auto-initiation Handling implement, carries out file system reparation to virtual machine to be migrated and initialization processes;
S104, compress the system disk having been injected into user data on virtual machine to be migrated;
S105, based on cloud environment SDK and the configuration information of virtual machine to be migrated, in IaaS cloud platform use ineffective law, rule, etc. Part mirror image creates cloud main frame;
S106, the cloud main frame created is done power-off operation, use on virtual machine to be migrated system disk file after compression to replace IaaS The fixed disk file of described cloud main frame in cloud platform, starts described cloud main frame afterwards.
In being embodied as of S103, virtual machine to be migrated is carried out file system reparation and initialization processes, also simultaneously Can open remote control tool, remote control tool is for representing the progress moving to IaaS cloud platform of virtual machine to be migrated; And carry out the process of cloud host-initiated speed-optimization.
In being embodied as, virtual machine includes system disk and data disks, and user data is stored in data disks under normal circumstances, then Before step S104 performs, also comprise the steps:
Calculate system disk and the data disks size of virtual machine to be migrated, the hard disk size of on-demand automatic adjustment virtual machine to be migrated To suitably sized;
User data in data disks on virtual machine to be migrated is injected on the system disk migrating virtual machine.
In being embodied as of S104, it is also preferred that the left automatically compress the system disk having been injected into user data on virtual machine to be migrated To minimum dimension.
In being embodied as of S106, on described use virtual machine to be migrated, system disk file after compression is replaced IaaS cloud and is put down The fixed disk file of described cloud main frame on platform, specifically includes:
Configure according to user, determine the locally stored of virtual machine (vm) migration to be migrated to IaaS cloud platform or shared storage;
If locally stored, delete cloud main frame fixed disk file on local storage, by the system disk literary composition on virtual machine to be migrated Part copies the fixed disk file place catalogue that cloud main frame place is locally stored to;
If sharing storage, delete cloud main frame fixed disk file in shared storage, by the system disk literary composition on virtual machine to be migrated Part imports in the particular storage pool catalogue in the fixed disk file place distributed storage of cloud main frame.
Embodiment of the present invention offer is described in detail below migrates the virtual machine network to the method carrying out practically of IaaS cloud platform Framework.As in figure 2 it is shown, under cloud computing environment, the virtual resources of enterprise refers to the virtual pool being made up of a large amount of virtual machines, Some cloud main frames are included, in order to realize quickly existing for enterprise a large amount of virtual resources being automatically migrated to IaaS in IaaS cloud platform Cloud platform, needs to increase between virtual pool and IaaS cloud platform to migrate working machine, migrates and arrange Migration tools on working machine, In order to perform the virtual machine migration work to IaaS cloud platform.
Based on the network architecture shown in Fig. 2, by the specific embodiments of virtual machine (vm) migration to IaaS cloud platform, as it is shown on figure 3, Following preparation was also needed to: migration personnel log in migration working machine, configuration emigration instrument before specific embodiments performs, Specify virtual machine to be migrated and configuration information thereof, start Migration tools.After preparation completes, comprise the following steps that
S301, Migration tools initialize and migrate environment.
In being embodied as, Migration tools initializes migration environment and specifically includes that by the virtual machine download in virtual pool to the machine (i.e. Migrate working machine), tissue virtual machine (vm) migration catalogue, prepare cloud environment SDK (Software Development Kit, software Development kit), prepare virtualized environment, described preparation virtualized environment such as kvm kernel module, configuration QEMU Nat, configuration virbr0 etc..
S302, initialize virtual machine to be migrated.
Mainly need fstab, dns, network, iface, grub are done initial configuration, it is ensured that virtual machine is put down in IaaS cloud Can normally start on platform.Further need exist for carrying out system password initialization, facilitate and under abnormal conditions, manually log into row debug. In this step, key point is: be filled with two instruments of auto_fsck and auto_init, and auto_fsck is autofile system System fix tool, repairs file system when cloud main frame starts first automatically;Auto_init is auto-initiation handling implement, Virtual machine does during for starting first some configurations and initialization automatically process, be allowed to become one and can run on IaaS cloud and put down Cloud main frame on platform.
S303, cloudization virtual machine to be migrated.
Utilize Kvm to start virtual machine, based on two instruments of auto_fsck and auto_init as above, automatically carry out literary composition Part system is repaired, and virtual machine does some initialization process, i.e. described cloud automatically.A vnc can be opened simultaneously, Vnc is remote control tool, and vnc is for representing the progress moving to IaaS cloud platform of virtual machine to be migrated, it is simple to migrate Personnel understand the cloud actual progress of virtual machine.Described initialization processes and specifically includes that installation base tool kit, configuration Iface, nameserver, network, infrastructure service, selinux, grub, sysctl, ntp, dhcp etc., and dispose some Company/platform base service.The most also include the important point: carry out cloud host-initiated speed-optimization and process.Virtual machine cloud During do toggle speed optimization, the toggle speed of cloud main frame can be accelerated.
S304, on-demand resize (being sized) virtual machine to be migrated.
Calculating system disk and the data disks size of virtual machine to be migrated, the hard disk size of on-demand automatic resize virtual machine is to properly Size.
S305, injection user data.
Automatically the user data in data disks on virtual machine to be migrated is injected into the system disk after virtual machine resize to be migrated On.
S306, compress virtual machine to be migrated.
Automatically compress on virtual machine to be migrated and have been injected into the system disk of user data to minimum dimension.First press before cloud on cloud mirror image Contracting, it is ensured that one minimum dimension mirror image of boil down to, the network transmission as far as possible reducing cloud on cloud mirror image is time-consuming.
S307, configuration information based on cloud environment SDK and virtual machine to be migrated create a vacation in IaaS cloud platform Cloud main frame.
In the embodiment of the present invention, false cloud main frame refers to that the cloud main frame using an empty file mirror image to create is in order to pass through Replacement cloud host disk file is evaded falling tradition and is caused image download time time-consuming long problem based on mirror image establishment cloud main frame.
Cloud in S308, migration.
False cloud main frame is done power-off operation, then configures according to user, determine the virtual machine (vm) migration to be migrated of Yun Huahou to IaaS Locally stored or the shared storage of cloud platform.Move to locally stored method: first delete false cloud main frame on local storage Fixed disk file, hard locally stored to vacation cloud main frame place of ready-made virtual machine system disk file copy on working machine will be migrated Dish file place catalogue, finally starts false cloud main frame.Move to share storage method: first delete false cloud main frame in shared storage On fixed disk file, ready-made virtual machine system disk file on working machine will be migrated import to the fixed disk file place of false cloud main frame In particular storage pool catalogue in distributed storage, finally start false cloud main frame.
Conceive based on same technology, embodiments provide and a kind of migrate the virtual machine device to IaaS cloud platform, due to The principle that this device solves problem is consistent to the method for IaaS cloud platform with migration virtual machine, and therefore the enforcement of this device is permissible See the enforcement of method, do not repeating in place of repetition.It will appreciated by the skilled person that migration virtual machine is to IaaS The device of cloud platform is i.e. the Migration tools shown in Fig. 2, is arranged in migration working machine, as shown in Figure 4, migrates virtual machine Device to IaaS cloud platform includes:
Environmental preparation module 401, is used for initializing migration environment, and described initialization migrates environment and specifically includes: by virtual pool In virtual machine download to the machine, tissue virtual machine (vm) migration catalogue, prepare cloud environment SDK SDK, prepare void Planization environment;
Virtual machine initialization module 402, for according to virtual machine (vm) migration catalogue, initializes virtual machine to be migrated, and moves waiting Move and virtual machine injects autofile system fix tool and auto-initiation handling implement;
Virtual machine cloud module 403, is used for starting virtual machine to be migrated, and based on virtualized environment, automatically reparation file system System instrument and auto-initiation handling implement, carry out file system reparation to virtual machine to be migrated and initialization processes;
Virtual machine compression module 404, for compressing the system disk having been injected into user data on virtual machine to be migrated;
Cloud main frame creation module 405, for based on cloud environment SDK and the configuration information of virtual machine to be migrated, at IaaS Empty file mirror image is used to create cloud main frame in cloud platform;
Cloud module 406 in migration, for the cloud main frame created is done power-off operation, uses after compressing on virtual machine to be migrated The fixed disk file of described cloud main frame in IaaS cloud platform replaced by system disk file, starts described cloud main frame afterwards.
In being embodied as, described device also includes:
Virtual machine is sized module 407, for calculating system disk and the data disks size of virtual machine to be migrated, on-demand from The dynamic hard disk size of virtual machine to be migrated that adjusts is to suitably sized;
User data injection module 408, virtual for the user data in data disks on virtual machine to be migrated being injected into migration On the system disk of machine.
It is also preferred that the left virtual machine compression module 404, have been injected into user data specifically for automatically compressing on virtual machine to be migrated System disk is to minimum dimension.
In being embodied as, virtual machine cloud module 403, it is additionally operable to open remote control tool, is used for representing to be migrated virtual Machine moves to the progress of IaaS cloud platform;And carry out the process of cloud host-initiated speed-optimization.
As it is shown in figure 5, migrate the possible structure of one of upper cloud module 406, specifically include:
Determine submodule 501, for the cloud main frame created is done power-off operation, configure according to user, determine void to be migrated Plan machine moves to the locally stored of IaaS cloud platform or shared storage;
This ground cloud submodule 502, if for locally stored, deletes cloud main frame fixed disk file on local storage, will The fixed disk file place catalogue that system disk file copy on virtual machine to be migrated is locally stored to cloud main frame place, starts afterwards Described cloud main frame;
Share upper cloud submodule 503, if for sharing storage, deleting cloud main frame fixed disk file in shared storage, will System disk file on virtual machine to be migrated imports to the particular storage pool in the fixed disk file place distributed storage of cloud main frame In catalogue, start described cloud main frame afterwards.
What the embodiment of the present invention provided migrates the virtual machine method and device to IaaS cloud platform, by compressing virtual machine to be migrated On have been injected into the system disk of user data so that first reduced size before cloud on cloud mirror image, reduce the network of cloud on cloud mirror image as far as possible Transmission is time-consuming;By first using empty file mirror image to create cloud main frame in IaaS cloud platform, then replace the mode of cloud host hard drive Create cloud main frame, it is to avoid download the high time-consuming problem that big mirror image causes.Such that it is able to automatization migrates virtual fast and efficiently Machine, to IaaS cloud platform, meets enterprise virtual resource and quickly goes up the demand of cloud.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, system, device or computer program Product.Therefore, in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware The form of embodiment.And, the present invention can use in one or more calculating wherein including computer usable program code The upper computer implemented of machine usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) The form of program product.
The present invention be the flow chart with reference to method, device (system) and computer program according to embodiments of the present invention with / or block diagram describe.It should be understood that can by each flow process in computer program instructions flowchart and/or block diagram and/ Or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided To the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce one Individual machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with certain party In the computer-readable memory of formula work so that the instruction being stored in this computer-readable memory produces and includes instruction dress The manufacture put, this command device realizes one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple side The function specified in frame.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at computer Or on other programmable devices perform sequence of operations step to produce computer implemented process, thus computer or other The instruction performed on programmable device provides for realizing in one flow process of flow chart or multiple flow process and/or one side of block diagram The step of the function specified in frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creative general Read, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferably Embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art the present invention can be carried out various change and modification without deviating from the present invention spirit and Scope.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, Then the present invention is also intended to comprise these change and modification.

Claims (10)

1. one kind migrates the method that virtual machine i.e. services IaaS cloud platform to infrastructure, it is characterised in that including:
Initialize migrate environment, described initialization migrate environment specifically include: by the virtual machine download in virtual pool to the machine, Tissue virtual machine (vm) migration catalogue, preparation cloud environment SDK SDK, preparation virtualized environment;
According to virtual machine (vm) migration catalogue, initialize virtual machine to be migrated, and in virtual machine to be migrated, inject autofile system Fix tool and auto-initiation handling implement;
Start virtual machine to be migrated, and based on science and engineering at virtualized environment, automatically reparation file system instrument and auto-initiation Tool, carries out file system reparation to virtual machine to be migrated and initialization processes;
Compress the system disk having been injected into user data on virtual machine to be migrated;
Based on cloud environment SDK and the configuration information of virtual machine to be migrated, IaaS cloud platform uses empty file mirror image Create cloud main frame;
The cloud main frame created is done power-off operation, uses the system disk file after compressing on virtual machine to be migrated to replace IaaS cloud and put down The fixed disk file of described cloud main frame on platform, starts described cloud main frame afterwards.
2. the method for claim 1, it is characterised in that have been injected into number of users on described compression virtual machine to be migrated According to system disk before, also include:
Calculate system disk and the data disks size of virtual machine to be migrated, the hard disk size of on-demand automatic adjustment virtual machine to be migrated To suitably sized;
User data in data disks on virtual machine to be migrated is injected on the system disk of virtual machine to be migrated.
3. method as claimed in claim 2, it is characterised in that have been injected into number of users on described compression virtual machine to be migrated According to system disk, specifically include:
Automatically compress on virtual machine to be migrated and have been injected into the system disk of user data to minimum dimension.
4. the method for claim 1, it is characterised in that described virtual machine to be migrated is carried out file system reparation And during initialization process, also include:
Open remote control tool, for representing the virtual machine (vm) migration to be migrated progress to IaaS cloud platform;And carry out cloud master Machine toggle speed optimization processes.
5. the method for claim 1, it is characterised in that the system after compressing on described use virtual machine to be migrated The fixed disk file of described cloud main frame in IaaS cloud platform replaced by dish file, specifically includes:
Configure according to user, determine the locally stored of virtual machine (vm) migration to be migrated to IaaS cloud platform or shared storage;
If locally stored, delete cloud main frame fixed disk file on local storage, by the system disk literary composition on virtual machine to be migrated Part copies the fixed disk file place catalogue that cloud main frame place is locally stored to;
If sharing storage, delete cloud main frame fixed disk file in shared storage, by the system disk literary composition on virtual machine to be migrated Part imports in the particular storage pool catalogue in the fixed disk file place distributed storage of cloud main frame.
6. one kind migrates the virtual machine device to IaaS cloud platform, it is characterised in that be arranged in migration working machine, including:
Environmental preparation module, is used for initializing migration environment, and described initialization migrates environment and specifically includes: by virtual pool Virtual machine download is to the machine, tissue virtual machine (vm) migration catalogue, preparation cloud environment SDK SDK, preparation virtualization Environment;
Virtual machine initialization module, for according to virtual machine (vm) migration catalogue, initializes virtual machine to be migrated, and in void to be migrated Plan machine injects autofile system fix tool and auto-initiation handling implement;
Virtual machine cloud module, is used for starting virtual machine to be migrated, and based on virtualized environment, automatically reparation file system work Tool and auto-initiation handling implement, carry out file system reparation to virtual machine to be migrated and initialization processes;
Virtual machine compression module, for compressing the system disk having been injected into user data on virtual machine to be migrated;
Cloud main frame creation module, for based on cloud environment SDK and the configuration information of virtual machine to be migrated, in IaaS cloud Empty file mirror image is used to create cloud main frame on platform;
Cloud module in migration, for the cloud main frame created is done power-off operation, uses the system after compression on virtual machine to be migrated The fixed disk file of described cloud main frame in IaaS cloud platform replaced by dish file, starts described cloud main frame afterwards.
7. device as claimed in claim 6, it is characterised in that described device also includes:
Virtual machine is sized module, for calculating system disk and the data disks size of virtual machine to be migrated, on-demand automatic tune The hard disk size of whole virtual machine to be migrated is to suitably sized;
User data injection module, migrates virtual machine for being injected into by the user data in data disks on virtual machine to be migrated On system disk.
8. device as claimed in claim 7, it is characterised in that described virtual machine compression module, specifically for from dynamic pressure Contract and have been injected into the system disk of user data to minimum dimension on virtual machine to be migrated.
9. device as claimed in claim 6, it is characterised in that described virtual machine cloud module, is additionally operable to open remotely Control instrument, for representing the virtual machine (vm) migration to be migrated progress to IaaS cloud platform;And it is excellent to carry out cloud host-initiated speed Change processes.
10. device as claimed in claim 6, it is characterised in that cloud module in described migration, specifically includes:
Determine submodule, for the cloud main frame created is done power-off operation, configure according to user, determine virtual machine to be migrated Move to the locally stored of IaaS cloud platform or shared storage;
This ground cloud submodule, if for locally stored, delete cloud main frame fixed disk file on local storage, will wait to move Move the fixed disk file place catalogue that the system disk file copy on virtual machine is locally stored to cloud main frame place, start described afterwards Cloud main frame;
Share upper cloud submodule, if for sharing storage, deleting cloud main frame fixed disk file in shared storage, waiting to move The system disk file moved on virtual machine imports to the particular storage pool catalogue in the fixed disk file place distributed storage of cloud main frame In, start described cloud main frame afterwards.
CN201610188311.4A 2016-03-29 2016-03-29 It is a kind of migration virtual machine to IaaS cloud platform method and device Active CN105843682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610188311.4A CN105843682B (en) 2016-03-29 2016-03-29 It is a kind of migration virtual machine to IaaS cloud platform method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610188311.4A CN105843682B (en) 2016-03-29 2016-03-29 It is a kind of migration virtual machine to IaaS cloud platform method and device

Publications (2)

Publication Number Publication Date
CN105843682A true CN105843682A (en) 2016-08-10
CN105843682B CN105843682B (en) 2019-03-01

Family

ID=56584718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610188311.4A Active CN105843682B (en) 2016-03-29 2016-03-29 It is a kind of migration virtual machine to IaaS cloud platform method and device

Country Status (1)

Country Link
CN (1) CN105843682B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480237A (en) * 2017-08-08 2017-12-15 中南大学 Towards the data fusion method and system of isomery desktop cloud platform
CN109062665A (en) * 2018-07-26 2018-12-21 郑州云海信息技术有限公司 A kind of virtual machine desktop environment configurations method, apparatus and system
CN110134489A (en) * 2018-02-08 2019-08-16 中兴通讯股份有限公司 Using moving method and device, system, storage medium, using upper cloud tool
CN110209465A (en) * 2018-04-20 2019-09-06 腾讯科技(深圳)有限公司 Virtual machine cross-platform migration method, device and electronic equipment
CN111078366A (en) * 2019-12-20 2020-04-28 深信服科技股份有限公司 Virtual machine migration method, system, equipment and computer readable storage medium
CN111104201A (en) * 2019-12-11 2020-05-05 中国联合网络通信集团有限公司 System migration method and device, electronic equipment and storage medium
CN111679889A (en) * 2020-06-10 2020-09-18 广州市品高软件股份有限公司 Virtual machine conversion migration method and system
CN113467887A (en) * 2021-06-25 2021-10-01 深信服科技股份有限公司 Fault repairing method, host machine and readable storage medium
CN114461338A (en) * 2022-01-10 2022-05-10 北京志凌海纳科技有限公司 Virtio driver injection method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673930B (en) * 2019-12-04 2020-07-17 深信服科技股份有限公司 Virtual machine migration method, virtualization device, storage medium and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885830A (en) * 2014-04-16 2014-06-25 中国科学院软件研究所 Data processing method used in cross-data-center live migration process of virtual machine
CN104156257A (en) * 2014-08-22 2014-11-19 成都致云科技有限公司 Quick and efficient cloud service disk mirroring management method
US20150113532A1 (en) * 2013-10-18 2015-04-23 Power-All Networks Limited Cloudboot system, virtual machine with the cloudboot system, and method for starting up the virtual machine
CN105094964A (en) * 2014-05-20 2015-11-25 苏宁云商集团股份有限公司 Virtual machine migration method and system
CN105117274A (en) * 2015-09-16 2015-12-02 北京百度网讯科技有限公司 Method and device for transferring virtual machines
CN105260226A (en) * 2015-09-23 2016-01-20 浙江网新恒天软件有限公司 Method for automatically migrating virtual machine on the basis of cloud platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150113532A1 (en) * 2013-10-18 2015-04-23 Power-All Networks Limited Cloudboot system, virtual machine with the cloudboot system, and method for starting up the virtual machine
CN103885830A (en) * 2014-04-16 2014-06-25 中国科学院软件研究所 Data processing method used in cross-data-center live migration process of virtual machine
CN105094964A (en) * 2014-05-20 2015-11-25 苏宁云商集团股份有限公司 Virtual machine migration method and system
CN104156257A (en) * 2014-08-22 2014-11-19 成都致云科技有限公司 Quick and efficient cloud service disk mirroring management method
CN105117274A (en) * 2015-09-16 2015-12-02 北京百度网讯科技有限公司 Method and device for transferring virtual machines
CN105260226A (en) * 2015-09-23 2016-01-20 浙江网新恒天软件有限公司 Method for automatically migrating virtual machine on the basis of cloud platform

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
朱荣飞: "一种面向应用的IAAS层虚拟机动态放置技术研究", 《中国优秀硕士学位论文全文数据 信息科技辑》 *
程浩: "云平台中的虚拟机网络管理和迁移的研究与实现", 《中国优秀硕士学位论文全文数据 信息科技辑》 *
赵海川: "基础设施云运营支持系统的关键技术研究与实现", 《《中国优秀硕士学位论文全文数据 信息科技辑》》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480237A (en) * 2017-08-08 2017-12-15 中南大学 Towards the data fusion method and system of isomery desktop cloud platform
CN110134489B (en) * 2018-02-08 2023-10-13 中兴通讯股份有限公司 Application migration method, device, system, storage medium and application cloud application tool
CN110134489A (en) * 2018-02-08 2019-08-16 中兴通讯股份有限公司 Using moving method and device, system, storage medium, using upper cloud tool
CN110209465A (en) * 2018-04-20 2019-09-06 腾讯科技(深圳)有限公司 Virtual machine cross-platform migration method, device and electronic equipment
CN109062665A (en) * 2018-07-26 2018-12-21 郑州云海信息技术有限公司 A kind of virtual machine desktop environment configurations method, apparatus and system
CN111104201A (en) * 2019-12-11 2020-05-05 中国联合网络通信集团有限公司 System migration method and device, electronic equipment and storage medium
CN111078366A (en) * 2019-12-20 2020-04-28 深信服科技股份有限公司 Virtual machine migration method, system, equipment and computer readable storage medium
CN111679889A (en) * 2020-06-10 2020-09-18 广州市品高软件股份有限公司 Virtual machine conversion migration method and system
CN111679889B (en) * 2020-06-10 2023-08-29 广州市品高软件股份有限公司 Conversion migration method and system of virtual machine
CN113467887A (en) * 2021-06-25 2021-10-01 深信服科技股份有限公司 Fault repairing method, host machine and readable storage medium
CN113467887B (en) * 2021-06-25 2024-02-23 深信服科技股份有限公司 Fault repairing method, host machine and readable storage medium
CN114461338A (en) * 2022-01-10 2022-05-10 北京志凌海纳科技有限公司 Virtio driver injection method and device
CN114461338B (en) * 2022-01-10 2022-10-14 北京志凌海纳科技有限公司 virtio driver injection method and device

Also Published As

Publication number Publication date
CN105843682B (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN105843682A (en) Method and apparatus for migrating virtual machine to IaaS cloud platform
US10664323B2 (en) Live migration of virtual machines in distributed computing systems
JP6837414B2 (en) Methods involving the generation of virtual machine relocation protocols, systems and programs to facilitate virtual machine relocation
US10649751B2 (en) Deploying an application in a cloud computing environment
US9547513B2 (en) Provisioning virtual desktops with stub virtual disks
CN103795759B (en) The dispatching method and system of a kind of virtual machine image file
US10324754B2 (en) Managing virtual machine patterns
JP2010527056A (en) Virtual machine migration
CN103425472B (en) STE dynamic generating system based on cloud computing and its implementation
US9170850B2 (en) Minimizing workload migrations during cloud maintenance operations
CN105897866B (en) A kind of cloud host migration method and device based on IaaS cloud platform
CN103235725A (en) Linux-based rapid deployment method for Oracle database in cloud computing
CN112068930B (en) Method for migrating virtual machine across platforms
Liu E-commerce application model based on cloud computing
US20130212281A1 (en) Virtual Machine Splitting Method and System
CN105208093A (en) Construction method and system of calculation resource pool in cloud operation system
US9485308B2 (en) Zero copy volume reconstruction
CN110554873B (en) System, computer device and storage medium for realizing man-machine interaction interface
US9459896B2 (en) Virtual machine merging method and system
US11175845B2 (en) Adding a migration file group to a hierarchical storage management (HSM) system for data co-location
CN103246561A (en) Real-time virtual machine shifting technology based on XEN
US20210216310A1 (en) Emulation of an environment set by a sourced script written in a different scripting language
WO2014132148A1 (en) Identifying and accessing reference data in an in-memory data grid
US11501014B2 (en) Secure data replication in distributed data storage environments
CN109271179B (en) Virtual machine application program management method, device, equipment and readable storage medium

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230419

Address after: Room 501-502, 5/F, Sina Headquarters Scientific Research Building, Block N-1 and N-2, Zhongguancun Software Park, Dongbei Wangxi Road, Haidian District, Beijing, 100193

Patentee after: Sina Technology (China) Co.,Ltd.

Address before: 100080, International Building, No. 58 West Fourth Ring Road, Haidian District, Beijing, 20 floor

Patentee before: Sina.com Technology (China) Co.,Ltd.