CN106293879A - A kind of P2V moving method for Linux physical server and system thereof - Google Patents

A kind of P2V moving method for Linux physical server and system thereof Download PDF

Info

Publication number
CN106293879A
CN106293879A CN201610641062.XA CN201610641062A CN106293879A CN 106293879 A CN106293879 A CN 106293879A CN 201610641062 A CN201610641062 A CN 201610641062A CN 106293879 A CN106293879 A CN 106293879A
Authority
CN
China
Prior art keywords
physical server
server
image file
linux
linux physical
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
CN201610641062.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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201610641062.XA priority Critical patent/CN106293879A/en
Publication of CN106293879A publication Critical patent/CN106293879A/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/45541Bare-metal, i.e. hypervisor runs directly on hardware
    • 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/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/45562Creating, deleting, cloning virtual machine instances
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of P2V moving method for Linux physical server, after being included in closedown Linux physical server, set up the connection between Linux physical server and change server;After configuration conversion parameter, the operating system in the disk of Linux physical server and related data are converted to the first image file and are copied to change server;In change server, the first image file is converted to file format and meets the second image file of the file format needed for xenserver virtual platform;Second image file is imported xenserver virtual platform, generates virtual machine.Migration success rate of the present invention is high, and can support the P2V migration operation of the operating system of most kind.The invention also discloses a kind of P2V migratory system for Linux physical server, it may have above-mentioned advantage, do not repeat them here.

Description

A kind of P2V moving method for Linux physical server and system thereof
Technical field
The present invention relates to P2V technical field, particularly relate to a kind of P2V moving method for Linux physical server And system.
Background technology
Along with developing rapidly of Intel Virtualization Technology and cloud computing, increasing data center uses virtual platform conduct The architecture of its data center, when existing data center carries out server virtualization transformation, unavoidably to relate to Migrate to the P2V (Physical to virtual, physical to virtual) between physical server and virtual platform.
During P2V for Linux physical server operates at present, it is by the operating system etc. in Linux physical server It is introduced directly into virtual platform after being converted to image file.Under this kind of mode, due to the compatibility issue of file format, it is merely able to The P2V of the (SuSE) Linux OS of achievement unit classifying type migrates, and supports that the kind of operating system is few, and migration success rate is low.
Therefore, how providing a kind of supports type of operating system many and migration success rate is high for Linux physical services The P2V moving method of device and system thereof are the problems that those skilled in the art are presently required solution.
Summary of the invention
It is an object of the invention to provide a kind of P2V moving method for Linux physical server and system thereof, migrate into Power is high, and can support the P2V migration operation of the operating system of most kind.
For solving above-mentioned technical problem, the invention provides a kind of P2V moving method for Linux physical server, Including:
After closing described Linux physical server, set up between described Linux physical server and change server Connect;
After configuration conversion parameter, the operating system in the disk of described Linux physical server and related data are changed It is the first image file and is copied to described change server;
In described change server, described first image file is converted to file format and meets xenserver virtualization Second image file of the file format needed for platform;
Described second image file is imported described xenserver virtual platform, generates virtual machine.
Preferably, the process tool of the described connection set up between described Linux physical server and described change server Body is:
The connection between described Linux physical server and change server is set up by ssh safety shell protocol.
For solving above-mentioned technical problem, present invention also offers a kind of P2V for Linux physical server and migrate system System, including described Linux physical server, change server and xenserver virtual platform;
It is provided with P2V instrument on described Linux physical server;
Described P2V instrument for closing after described Linux physical server, set up described Linux physical server with Connection between described change server;After configuration conversion parameter, by the operation system in the disk of described Linux physical server System and related data are converted to the first image file and are copied to described change server;
Virtual disk management instrument it is provided with on described change server;
Described virtual disk management instrument meets described for described first image file is converted to file format Second image file of the file format needed for xenserver virtual platform;Described second image file is imported described Xenserver virtual platform, generates virtual machine.
Preferably, after closing described Linux physical server, by the USB flash disk being connected with described Linux physical server or CD-ROM drive drives described P2V instrument start-up.
Preferably, described virtual disk management instrument is specially qemu-img.
The invention provides a kind of P2V moving method for Linux physical server and system thereof, first by Linux Operating system and related data in physical server disk are converted to the first image file and are copied in change server, then First image file is converted to file format and meets the second mirror image literary composition of the file format needed for xenserver virtual platform Part, then imports xenserver virtual platform the second image file.Owing to the file format of the second image file meets File format needed for xenserver virtual platform, therefore the second image file is imported the one-tenth of xenserver virtual platform Power is high;And owing to image file can carry out file format conversion, therefore the present invention is capable of the operation of major part kind The P2V of system migrates, and supports that the kind of operating system is many.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to institute in prior art and embodiment The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only some enforcements of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtains according to these accompanying drawings Obtain other accompanying drawing.
The flow chart of the process of a kind of P2V moving method for Linux physical server that Fig. 1 provides for the present invention;
The structural representation of a kind of P2V migratory system for Linux physical server that Fig. 2 provides for the present invention.
Detailed description of the invention
The core of the present invention is to provide a kind of P2V moving method for Linux physical server and system thereof, migrates into Power is high, and can support the P2V migration operation of the operating system of most kind.
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
The invention provides a kind of P2V moving method for Linux physical server, shown in Figure 1, Fig. 1 is this The flow chart of the process of a kind of P2V moving method for Linux physical server that invention provides;The method includes:
Step s101: after closing Linux physical server 1, sets up Linux physical server 1 and change server 2 Connection between (conversion server);
Step s102: after configuration conversion parameter, by the operating system in the disk of Linux physical server 1 and dependency number According to being converted to the first image file and being copied to change server 2;
Wherein, conversion parameter here include the IP of change server 2, image file deposit path, disk to be migrated, The CPU of Linux physical server 1 and internal memory etc..Certainly, the present invention does not limit the particular content of conversion parameter.
Step s103: the first image file is converted in change server 2 file format, and to meet xenserver virtual Second image file of the file format needed for change platform 3;
Step s104: the second image file is imported xenserver virtual platform 3, generates virtual machine.
It is understood that import operation i.e. copy function here, the second image file is copied to xenserver empty Planization platform 3, xenserver virtual platform 3 is set up according to the operating system in the second image file and related data Corresponding virtual machine, thus complete the operation of P2V server migration.
As preferably, set up the process of connection between Linux physical server 1 and change server 2 particularly as follows:
The connection between Linux physical server 1 and change server 2 is set up by ssh safety shell protocol.
It addition, in step s102, even if convert failed, owing to being the behaviour carried out after closing Linux physical server 1 Make, after Linux physical server 1 is restarted, still be able to properly functioning business, Linux physical server 1 will not be caused damage Evil.
The invention provides a kind of P2V moving method for Linux physical server, first by Linux physical services Operating system and related data in device disk are converted to the first image file and are copied in change server, then by the first mirror The second image file of the file format needed for xenserver virtual platform is met, then as file is converted to file format Second image file is imported xenserver virtual platform.Owing to the file format of the second image file meets xenserver File format needed for virtual platform, therefore the success rate that the second image file imports xenserver virtual platform is high;And And owing to image file can carry out file format conversion, therefore the present invention is capable of the P2V of operating system of major part kind Migrate, support that the kind of operating system is many.
Present invention also offers a kind of P2V migratory system for Linux physical server, shown in Figure 2, Fig. 2 is The structural representation of a kind of P2V migratory system for Linux physical server that the present invention provides.This system includes Linux Physical server, change server and xenserver virtual platform;
P2V instrument it is provided with on Linux physical server 1;
P2V instrument, for after cutting out Linux physical server 1, sets up Linux physical server 1 and change server 2 Between connection;After configuration conversion parameter, the operating system in the disk of Linux physical server 1 and related data are changed It is the first image file and is copied to change server 2;
Wherein, the connection between Linux physical server 1 and change server 2 refers specifically to P2V instrument and conversion clothes Connection between business device 2.
Virtual disk management instrument it is provided with on change server 2;
To meet xenserver virtualization flat for the first image file is converted to file format for virtual disk management instrument Second image file of the file format needed for platform 3;Second image file is imported xenserver virtual platform 3, generates void Plan machine.
Concrete, after closing Linux physical server 1, driven by USB flash disk or the CD-ROM drive being connected with Linux physical server 1 Dynamic P2V instrument start-up.
After P2V instrument start-up, staff enters P2V and arranges interface, makes P2V instrument by ssh safety shell protocol It is connected with setting up between change server 2.
As preferably, the virtual disk management instrument in the present invention is specially qemu-img.
It addition, the present invention may be used for the migration of polytype (SuSE) Linux OS, such as major part main flow linux System, such as centos series, RedHat series etc..
Certainly, the Linux behaviour that the present invention does not limit the virtual disk management particular type of instrument and the present invention is applied Make the type of system.
The invention provides a kind of P2V migratory system for Linux physical server, first by Linux physical services Operating system and related data in device disk are converted to the first image file and are copied in change server, then by the first mirror The second image file of the file format needed for xenserver virtual platform is met, then as file is converted to file format Second image file is imported xenserver virtual platform.Owing to the file format of the second image file meets xenserver File format needed for virtual platform, therefore the success rate that the second image file imports xenserver virtual platform is high;And And owing to image file can carry out file format conversion, therefore the present invention is capable of the P2V of operating system of major part kind Migrate, support that the kind of operating system is many.
It should be noted that in this manual, term " includes ", " comprising " or its any other variant are intended to Comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include that those are wanted Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that Including process, method, article or the equipment of described key element there is also other identical element.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention. Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one The widest scope caused.

Claims (5)

1. the P2V moving method for Linux physical server, it is characterised in that including:
After closing described Linux physical server, set up the company between described Linux physical server and change server Connect;
After configuration conversion parameter, the operating system in the disk of described Linux physical server and related data are converted to the One image file is also copied to described change server;
In described change server, described first image file is converted to file format and meets xenserver virtual platform Second image file of required file format;
Described second image file is imported described xenserver virtual platform, generates virtual machine.
Method the most according to claim 1, it is characterised in that described set up described Linux physical server with conversion clothes Business device between connection process particularly as follows:
The connection between described Linux physical server and described change server is set up by ssh safety shell protocol.
3. the P2V migratory system for Linux physical server, it is characterised in that include described Linux physical services Device, change server and xenserver virtual platform;
It is provided with P2V instrument on described Linux physical server;
Described P2V instrument is for, after cutting out described Linux physical server, setting up described Linux physical server with described Connection between change server;After configuration conversion parameter, by the operating system in the disk of described Linux physical server and Related data is converted to the first image file and is copied to described change server;
Virtual disk management instrument it is provided with on described change server;
Described virtual disk management instrument meets described xenserver for described first image file is converted to file format Second image file of the file format needed for virtual platform;Described second image file is imported described xenserver empty Planization platform, generates virtual machine.
System the most according to claim 3, it is characterised in that after closing described Linux physical server, by with described USB flash disk or CD-ROM drive that Linux physical server connects drive described P2V instrument start-up.
System the most according to claim 3, it is characterised in that described virtual disk management instrument is specially qemu-img.
CN201610641062.XA 2016-08-05 2016-08-05 A kind of P2V moving method for Linux physical server and system thereof Pending CN106293879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610641062.XA CN106293879A (en) 2016-08-05 2016-08-05 A kind of P2V moving method for Linux physical server and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610641062.XA CN106293879A (en) 2016-08-05 2016-08-05 A kind of P2V moving method for Linux physical server and system thereof

Publications (1)

Publication Number Publication Date
CN106293879A true CN106293879A (en) 2017-01-04

Family

ID=57665845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610641062.XA Pending CN106293879A (en) 2016-08-05 2016-08-05 A kind of P2V moving method for Linux physical server and system thereof

Country Status (1)

Country Link
CN (1) CN106293879A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886448A (en) * 2017-02-22 2017-06-23 郑州云海信息技术有限公司 A kind of introduction method and device of OVA files
CN107273246A (en) * 2017-06-15 2017-10-20 郑州云海信息技术有限公司 A kind of server system backup method and device
CN107608764A (en) * 2017-09-27 2018-01-19 郑州云海信息技术有限公司 The moving method and moving apparatus of a kind of server
CN109213570A (en) * 2018-08-28 2019-01-15 郑州云海信息技术有限公司 A kind of virtual machine migration method, device, equipment and readable storage medium storing program for executing
CN109542582A (en) * 2018-10-22 2019-03-29 广东天唯科技有限公司 A kind of method and system for the replacement server under safeguards system normal operation
CN110928557A (en) * 2018-09-19 2020-03-27 阿里巴巴集团控股有限公司 Method, device and system for realizing migration of operating system
CN111913938A (en) * 2020-08-11 2020-11-10 中国工商银行股份有限公司 Data migration method, system, device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605561A (en) * 2013-11-28 2014-02-26 中标软件有限公司 Cloud computing cluster system and method for on-line migration of physical server thereof
US20140298340A1 (en) * 2011-12-13 2014-10-02 Hitachi, Ltd. Virtual machine system, virtualization mechanism, and data management method
CN104866372A (en) * 2015-05-13 2015-08-26 华中科技大学 Server integration oriented high efficiency physical machine to virtual machine conversion method
CN104965757A (en) * 2015-01-21 2015-10-07 深圳市腾讯计算机系统有限公司 Virtual machine live migration method, virtual machine migration management apparatus, and virtual machine live migration system
CN105573830A (en) * 2014-10-09 2016-05-11 中国银联股份有限公司 Virtual machine migration method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140298340A1 (en) * 2011-12-13 2014-10-02 Hitachi, Ltd. Virtual machine system, virtualization mechanism, and data management method
CN103605561A (en) * 2013-11-28 2014-02-26 中标软件有限公司 Cloud computing cluster system and method for on-line migration of physical server thereof
CN105573830A (en) * 2014-10-09 2016-05-11 中国银联股份有限公司 Virtual machine migration method
CN104965757A (en) * 2015-01-21 2015-10-07 深圳市腾讯计算机系统有限公司 Virtual machine live migration method, virtual machine migration management apparatus, and virtual machine live migration system
CN104866372A (en) * 2015-05-13 2015-08-26 华中科技大学 Server integration oriented high efficiency physical machine to virtual machine conversion method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886448A (en) * 2017-02-22 2017-06-23 郑州云海信息技术有限公司 A kind of introduction method and device of OVA files
CN106886448B (en) * 2017-02-22 2021-06-11 郑州云海信息技术有限公司 OVA file importing method and device
CN107273246A (en) * 2017-06-15 2017-10-20 郑州云海信息技术有限公司 A kind of server system backup method and device
CN107608764A (en) * 2017-09-27 2018-01-19 郑州云海信息技术有限公司 The moving method and moving apparatus of a kind of server
CN109213570A (en) * 2018-08-28 2019-01-15 郑州云海信息技术有限公司 A kind of virtual machine migration method, device, equipment and readable storage medium storing program for executing
CN110928557A (en) * 2018-09-19 2020-03-27 阿里巴巴集团控股有限公司 Method, device and system for realizing migration of operating system
CN110928557B (en) * 2018-09-19 2023-05-09 阿里巴巴集团控股有限公司 Method, device and system for realizing migration of operating system
CN109542582A (en) * 2018-10-22 2019-03-29 广东天唯科技有限公司 A kind of method and system for the replacement server under safeguards system normal operation
CN111913938A (en) * 2020-08-11 2020-11-10 中国工商银行股份有限公司 Data migration method, system, device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN106293879A (en) A kind of P2V moving method for Linux physical server and system thereof
JP6790835B2 (en) Network functions Virtualization management and orchestration methods, devices and programs
US10628194B2 (en) Techniques for data migration
Rosen Linux containers and the future cloud
WO2018010654A1 (en) Method, device, and system for virtual machine live migration
WO2016121830A1 (en) Virtual network function management device, system, healing method, and program
US10936579B2 (en) Verifying data structure consistency across computing environments
CN107733985B (en) Method and device for deploying functional components of cloud computing system
EP3253005A1 (en) Data file registration management system, method, management device, and program
US20120254885A1 (en) Running a plurality of instances of an application
US9817592B1 (en) Using an intermediate virtual disk format for virtual disk conversion
US9697266B1 (en) Management of computing system element migration
WO2016054995A1 (en) Virtual machine migration method
US10089097B2 (en) Dynamic templates for virtualized systems
US11683365B2 (en) Service correlation across hybrid cloud architecture to support container hybridization
US20160335109A1 (en) Techniques for data migration
Piras et al. Container orchestration on HPC clusters
Pasquier et al. Information flow control for strong protection with flexible sharing in PaaS
US10970111B2 (en) Migrating virtual machines
Berkowitz Metaq: Bundle supercomputing tasks
US8930967B2 (en) Shared versioned workload partitions
CN113407257A (en) Mysql cluster deployment method and device, electronic equipment and storage medium
CN106406978A (en) Automatic making device and method for private cloud virtual machine template
US9430748B1 (en) Verifying historical artifacts in disparate source control systems
CN105867894A (en) Automatic creating method and system of development environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication