TW201913403A - System and method for automatic virtual machine conversion and environment setup across heterogeneous hypervisors - Google Patents

System and method for automatic virtual machine conversion and environment setup across heterogeneous hypervisors Download PDF

Info

Publication number
TW201913403A
TW201913403A TW106128585A TW106128585A TW201913403A TW 201913403 A TW201913403 A TW 201913403A TW 106128585 A TW106128585 A TW 106128585A TW 106128585 A TW106128585 A TW 106128585A TW 201913403 A TW201913403 A TW 201913403A
Authority
TW
Taiwan
Prior art keywords
platform
virtual machine
virtual
transfer
image file
Prior art date
Application number
TW106128585A
Other languages
Chinese (zh)
Other versions
TWI681299B (en
Inventor
高彬
張亦姿
鄭又慈
胡仲華
Original Assignee
中華電信股份有限公司
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 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW106128585A priority Critical patent/TWI681299B/en
Publication of TW201913403A publication Critical patent/TW201913403A/en
Application granted granted Critical
Publication of TWI681299B publication Critical patent/TWI681299B/en

Links

Abstract

The invention provides a system and method for automatic virtual machine conversion and environment setup across heterogeneous hypervisors, the system including (1) a cloud service control unit, (2) a virtual machine conversion control unit, (3) a network environment control unit, (4) a virtual platform control unit, (5) a conversion platform, (6) a source end virtual platform and (7) a destination end virtual platform, thereby performing automatic virtual machine conversion and environment setup operation processes, simplifying complicated virtual machine conversion steps and procedures, reducing complicity and the required operation time to ensure normal operation and avoid irregularities or poor efficacy to achieve the objective of significantly reducing management costs of cloud environments.

Description

跨虛擬平台之自動虛擬機移轉及環境設定操作系統與方法  Automatic virtual machine transfer and environment setting operating system and method across virtual platforms  

本發明係有關一種虛擬機移轉及環境設定操作技術,特別地,有關一種跨虛擬平台之自動虛擬機移轉及環境設定操作系統與方法。 The present invention relates to a virtual machine migration and environment setting operation technology, and more particularly to an automatic virtual machine migration and environment setting operating system and method across a virtual platform.

在電腦科學中的體系結構裏,虛擬機(virtual machine)是指一種特殊的軟體,可以在電腦平台和終端使用者之間建立一種環境,而終端使用者則是基於這個軟體所建立的環境來操作軟體。 In the architecture of computer science, a virtual machine is a special kind of software that can establish an environment between a computer platform and an end user, and the end user is based on the environment established by the software. Operating software.

申言之,虛擬機技術原本應用在高階伺服器,其方式是在每部單機的底層硬體與上層軟體之間產生一個虛擬層,並在上層的軟體中創造多個邏輯分區,每個邏輯分區相當於一個虛擬機器,等同一部完整的電腦,包括獨立的處理器、記憶體、作業系統與檔案系統等。虛擬層負責配置處理器與記憶體等資源給不同的虛擬機器,這種做法的優點是,可以在一部伺服器中安裝多種不同的作業系統, 不但各自獨立,而且這些虛擬化的硬體規格是一致的。 In other words, virtual machine technology was originally applied to high-order servers by creating a virtual layer between the underlying hardware of each single machine and the upper layer software, and creating multiple logical partitions in the upper layer software, each logic. Partitioning is equivalent to a virtual machine, waiting for the same complete computer, including separate processors, memory, operating systems and file systems. The virtual layer is responsible for configuring resources such as processor and memory for different virtual machines. This has the advantage of being able to install a variety of different operating systems in a single server, not only independent, but also these virtualized hardware specifications. It is consistent.

上述內容除了談論虛擬機是一個完全獨立的軟體容器,內含一個作業系統與應用程式之外,關於虛擬機的另一使用層面,一種虛擬到虛擬(Virtual to Virtual,V2V)的技術是將一虛擬機(VM)的映像、數據或磁盤分區複製或遷移到另一個VM的過程。也就是說,V2V有助於在虛擬機和/或虛擬環境之間遷移數據或機器實例。 In addition to talking about the virtual machine is a completely independent software container, including a operating system and applications, a virtual to virtual (V2V) technology is another level of use of the virtual machine. The process of copying or migrating a virtual machine (VM) image, data, or disk partition to another VM. That is, V2V helps to migrate data or machine instances between virtual machines and/or virtual environments.

然而,當將一方VM的映像、數據或磁盤分區複製或遷移到另一個VM的過程中,往往因兩方的不同的網路環境設定,例如不同的網路協定、不同的防火牆類型等因素,使得將V2V的映像或數據移轉時會有不相容的問題及不當的人為設定所產生的錯誤而通常會造成V2V轉換時間變長之缺陷。 However, when copying or migrating a VM's image, data, or disk partition to another VM, it is often set by different network environments, such as different network protocols and different firewall types. There are inconsistencies in the V2V image or data transfer and errors caused by improper human settings, which often causes the V2V conversion time to become longer.

因此,如何克服上述習知技術的種種問題,實已成目前亟欲解決的課題。 Therefore, how to overcome the various problems of the above-mentioned prior art has become a problem that is currently being solved.

鑑於上述習知技術之種種缺失,本發明係提供一種跨虛擬平台之自動虛擬機移轉及環境設定操作系統與方法。 In view of the above-mentioned various deficiencies of the prior art, the present invention provides an automatic virtual machine transfer and environment setting operating system and method across a virtual platform.

本發明之跨虛擬平台之自動虛擬機移轉及環境設定操作系統係包括:一雲端服務管控單元,用以儲存複數關聯於透過一移轉平台將一來源端虛擬平台之虛擬機移轉到一目的端虛擬平台之虛擬機的資訊及網路環境的設定指令碼;一虛擬平台管控單元,用以依據該些設定指令碼提供來源端虛擬平台及目的端虛擬平台兩者之虛擬機映像檔的 匯出、匯入功能;一網路環境管控單元,用以供雲端服務管控單元依據該些設定指令碼令網路環境管控單元將來源端虛擬平台之網路設備資訊匯出至移轉平台,以透過網路環境管控單元將網路設備資訊之網路設備設定檔由移轉平台轉換及匯入目的端虛擬平台;以及一虛擬機移轉管控單元,用以供虛擬平台管控單元在依據該些設定指令碼將來源端虛擬平台之虛擬機的虛擬機映像檔移轉至移轉平台後,由虛擬機移轉管控單元將來源端虛擬平台之虛擬機的映像檔轉換為對應於目的端虛擬平台之虛擬機的映像檔,再由虛擬平台管控單元將該轉換後的虛擬機映像檔匯入目的端虛擬平台。 The automatic virtual machine transfer and environment setting operating system of the cross-virtual platform of the present invention comprises: a cloud service management unit for storing a plurality of virtual machines connected to a source virtual platform through a transfer platform a virtual machine information of the destination virtual platform and a setting instruction code of the network environment; a virtual platform management unit configured to provide a virtual machine image file of both the source virtual platform and the destination virtual platform according to the setting instruction codes The network environment control unit is configured to enable the network service control unit to send the network device information of the source virtual platform to the transfer platform according to the setting instruction codes. The network device configuration file of the network device information is converted and transferred to the destination virtual platform by the network device through the network environment control unit; and a virtual machine transfer control unit is used for the virtual platform control unit to After setting the instruction code to transfer the virtual machine image file of the virtual machine of the source virtual platform to the transfer platform, the virtual machine moves the control unit The image file of the virtual machine of the source virtual platform is converted into an image file corresponding to the virtual machine of the destination virtual platform, and the converted virtual machine image file is imported into the destination virtual platform by the virtual platform management unit.

本發明之跨虛擬平台之自動虛擬機移轉及環境設定操作方法係包括:透過一虛擬機映像檔匯出/匯入模組依據至少一設定指令碼將來源端虛擬平台之虛擬機的虛擬機映像檔匯出至移轉平台;透過一虛擬機映像檔轉換模組依據該至少一設定指令碼將移轉平台之虛擬機的映像檔轉換為對應目的端虛擬平台之虛擬機的映像檔;透過一虛擬機映像檔匯出/匯入模組依據該至少一設定指令碼將轉換後的虛擬機映像檔匯入至目的端虛擬平台;以及透過一網路設備規則匯出/匯入模組依據該至少一設定指令碼將來源端虛擬平台的網路設備設定檔匯出至移轉平台,再由該移轉平台匯入目的端虛擬平台。 The automatic virtual machine migration and environment setting operation method of the cross-virtual platform of the present invention comprises: a virtual machine of a virtual machine of a source virtual platform according to at least one setting instruction code through a virtual machine image export/import module The image file is exported to the transfer platform; the image file of the virtual machine of the transfer platform is converted into the image file of the virtual machine corresponding to the destination virtual platform by the virtual machine image file conversion module according to the at least one setting instruction code; a virtual machine image export/import module converts the converted virtual machine image file to the destination virtual platform according to the at least one setting instruction code; and extracts/imports the module according to a network device rule The at least one setting instruction code remits the network device configuration file of the source virtual platform to the migration platform, and then the migration platform merges into the destination virtual platform.

因此,本發明係著重於虛擬機跨不同虛擬平台的移轉程序,透過雲端移轉平台將來源端雲端虛擬平台的虛擬機 之映像檔及網路設備設定檔自動化轉換為目的端雲端虛擬平台所採用的格式與資料,移轉後的虛擬機可直接使用,無需再進行任何網路設備設定及規則建立,如此可有效降低操作上的複雜度,並減少人為介入設定可能產生的錯誤,進而加速虛擬機移轉的效率。 Therefore, the present invention focuses on the transfer process of a virtual machine across different virtual platforms, and automatically converts the image file of the virtual machine of the source cloud virtual platform and the network device profile into the destination cloud virtual platform through the cloud transfer platform. The adopted format and data, the transferred virtual machine can be used directly, no need to perform any network device setting and rule establishment, which can effectively reduce the operational complexity, and reduce the possible errors caused by human intervention, and thus accelerate The efficiency of virtual machine migration.

100‧‧‧使用者 100‧‧‧Users

200‧‧‧雲端服務管控單元 200‧‧‧Cloud Service Control Unit

210‧‧‧使用者操作介面模組 210‧‧‧User interface module

220‧‧‧資料庫模組 220‧‧‧Database Module

230‧‧‧流程控制器模組 230‧‧‧Process Controller Module

300‧‧‧虛擬平台管控單元 300‧‧‧Virtual Platform Control Unit

310‧‧‧虛擬平台控制器模組 310‧‧‧Virtual Platform Controller Module

320‧‧‧虛擬機管理模組 320‧‧‧Virtual Machine Management Module

330‧‧‧虛擬機映像檔匯出/匯入模組 330‧‧‧Virtual machine image export/import module

400‧‧‧網路環境管控單元 400‧‧‧Network Environment Control Unit

410‧‧‧網路環境控制器模組 410‧‧‧Network Environment Controller Module

420‧‧‧網路設備規則匯出/匯入模組 420‧‧‧Network Device Rules Export/Import Module

430‧‧‧網路設備規則設定模組 430‧‧‧Network Device Rule Setting Module

500‧‧‧虛擬機移轉管控單元 500‧‧‧Virtual Machine Transfer Control Unit

510‧‧‧移轉控制器模組 510‧‧‧Transfer controller module

520‧‧‧虛擬機映像檔轉換模組 520‧‧‧Virtual machine image file conversion module

530‧‧‧虛擬機映像檔儲存空間設定模組 530‧‧‧Virtual Machine Image Storage Space Setting Module

600‧‧‧來源端虛擬平台 600‧‧‧Source virtual platform

610‧‧‧網路設備 610‧‧‧Network equipment

700‧‧‧移轉平台 700‧‧‧Transfer platform

701‧‧‧虛擬機A的映像檔 701‧‧‧Image of virtual machine A

702‧‧‧虛擬機A’的映像檔 702‧‧‧Image of virtual machine A’

710‧‧‧網路設備設定檔 710‧‧‧Network device profile

711‧‧‧負載平衡器B的設定檔 711‧‧‧Load Balancer B Profile

712‧‧‧路由器C的設定檔 712‧‧‧Setup of Router C

713‧‧‧防火牆D的設定檔 713‧‧‧Firewall D configuration file

800‧‧‧目的端虛擬平台 800‧‧‧ destination virtual platform

810‧‧‧網路設備 810‧‧‧Network equipment

A、A’‧‧‧虛擬機 A, A’‧‧‧ virtual machine

B、B’‧‧‧負載平衡器 B, B’‧‧‧ load balancer

C、C’‧‧‧路由器 C, C’‧‧‧ router

D、D’‧‧‧防火牆 D, D’‧‧‧ firewall

(a)~(h)‧‧‧步驟 (a)~(h)‧‧‧ steps

第1圖係為本發明之跨虛擬平台之自動虛擬機移轉及環境設定操作系統之方塊圖;以及第2圖係為本發明之跨虛擬平台之自動虛擬機移轉及環境設定操作方法之流程圖。 1 is a block diagram of an automatic virtual machine transfer and environment setting operating system across virtual platforms of the present invention; and FIG. 2 is an automatic virtual machine transfer and environment setting operation method of the cross-virtual platform of the present invention. flow chart.

以下藉由特定的具體實施例說明本發明之實施方式,熟悉此技藝之人士可由本說明書所揭示之內容輕易地瞭解本發明之其他優點及功效。 The other embodiments of the present invention will be readily understood by those skilled in the art from this disclosure.

須知,本說明書所附圖式所繪示之結構、比例、大小等,均僅用以配合說明書所揭示之內容,以供熟悉此技藝之人士之瞭解與閱讀,並非用以限定本發明可實施之限定條件,故不具技術上之實質意義,任何結構之修飾、比例關係之改變或大小之調整,在不影響本發明所能產生之功效及所能達成之目的下,均應仍落在本發明所揭示之技術內容得能涵蓋之範圍內。同時,本說明書中所引用之如“上”、“一”、“第一”、“第二”及“第三”等用語,亦僅為便於敘述之明瞭,而非用以限定本發明可實施之範圍,其相對關係之改變或調整,在無實質變更技術內容下, 當亦視為本發明可實施之範疇。 It is to be understood that the structure, the proportions, the size, and the like of the present invention are intended to be used in conjunction with the disclosure of the specification, and are not intended to limit the invention. The conditions are limited, so it is not technically meaningful. Any modification of the structure, change of the proportional relationship or adjustment of the size should remain in this book without affecting the effects and the objectives that can be achieved by the present invention. The technical content disclosed in the invention can be covered. In the meantime, the terms "upper", "one", "first", "second" and "third" are used in this specification for convenience of description, and are not intended to limit the invention. The scope of the implementation, the change or adjustment of the relative relationship, is also considered to be within the scope of the invention.

第1圖係為本發明之跨虛擬平台之自動虛擬機移轉及環境設定操作系統之方塊圖。 Figure 1 is a block diagram of an automatic virtual machine migration and environment setting operating system across the virtual platform of the present invention.

該系統由四大單元及三大平台所組成,其中,四大單元包括:(1)雲端服務管控單元200,其具備使用者操作介面模組210、資料庫模組220及流程控制器模組230,並提供使用者操作虛擬機移轉作業,且透過流程控制器模組230操控虛擬平台管控單元300之虛擬平台控制器模組310、網路環境管控單元400之網路環境控制器模組410、虛擬機移轉管控單元500之移轉控制器模組510;(2)虛擬平台管控單元300,其具備虛擬平台控制器模組310、虛擬機管理模組320及虛擬機映像檔匯出/匯入模組330,並提供來源端虛擬平台600及目的端虛擬平台800虛擬機之虛擬機映像檔匯出/匯入功能;(3)網路環境管控單元400,其具備網路環境控制器模組410、網路設備規則匯出/匯入模組420及網路設備規則設定模組430,並提供來源端虛擬平台600及目的端虛擬平台800之網路設備設定檔匯出/匯入及修改功能;以及(4)虛擬機移轉管控單元500,其具備移轉控制器模組510、虛擬機映像檔轉換模組520及虛擬機映像檔儲存空間設定模組530,並提供虛擬機映像檔及網路設備設定檔由來源端虛擬平台600轉換至目的端虛擬平台800。 The system consists of four major units and three major platforms. The four major units include: (1) a cloud service management unit 200 having a user interface module 210, a database module 220, and a process controller module 230. And providing the user to operate the virtual machine transfer operation, and the virtual platform controller module 310 of the virtual platform control unit 300 and the network environment controller module 410 of the network environment management unit 400 are controlled by the process controller module 230. The virtual machine management unit 300 is provided with a virtual platform controller module 310, a virtual machine management module 320, and a virtual machine image file/ Importing module 330, and providing virtual machine image file export/import function of source virtual platform 600 and destination virtual platform 800 virtual machine; (3) network environment management unit 400 having network environment controller The module 410, the network device rule export/import module 420, and the network device rule setting module 430, and provide the network device configuration file export/import of the source virtual platform 600 and the destination virtual platform 800. And modify the function And (4) a virtual machine transfer control unit 500, which includes a transfer controller module 510, a virtual machine image file conversion module 520, and a virtual machine image storage space setting module 530, and provides a virtual machine image file and The network device profile is converted by the source virtual platform 600 to the destination virtual platform 800.

三大平台則為: (1)來源端虛擬平台600,其提供一種或多種雲端虛擬平台作為虛擬機轉換前的來源環境;(2)移轉平台700,其針對每種來源端虛擬平台600提供一移轉平台與之對應,以進行虛擬機映像檔的轉換作業;以及(3)目的端虛擬平台800,其提供一種或多種雲端虛擬平台作為虛擬機轉換後的目的環境。 The three platforms are: (1) a source virtual platform 600, which provides one or more cloud virtual platforms as a source environment before virtual machine conversion; and (2) a migration platform 700, which provides one for each source virtual platform 600. The transfer platform corresponds to the virtual machine image file conversion operation; and (3) the destination end virtual platform 800, which provides one or more cloud virtual platforms as the virtual machine converted target environment.

以下為本案之實施例的系統操作流程,使用者100透過使用者操作介面模組210進行操作,提供虛擬機移轉需求的設定指令碼,包括來源端虛擬平台及目的端虛擬平台兩者之虛擬機網際協定(Internet Protocol,ip)位址、登入帳號及/或密碼等資訊,使用者操作介面模組210將移轉過程所需資訊存於資料庫模組220,並傳送至流程控制器模組230。 The following is the system operation flow of the embodiment of the present invention. The user 100 operates through the user operation interface module 210 to provide a setting instruction code for the virtual machine transfer requirement, including virtualization of both the source virtual platform and the destination virtual platform. Information such as an Internet Protocol (IP) address, a login account, and/or a password. The user interface module 210 stores the information required for the migration process in the database module 220 and transmits it to the process controller module. Group 230.

其中,所需資訊亦是複數關聯於透過移轉平台將來源端虛擬平台之虛擬機移轉到目的端虛擬平台之虛擬機的資訊及網路環境的設定指令碼,並且,上述各單元中的各模組係依據該些設定指令碼執行相關的作業任務。 The required information is also a set instruction code associated with the information and network environment of the virtual machine that transfers the virtual machine of the source virtual platform to the virtual machine of the destination virtual platform through the transfer platform, and is in the above units. Each module performs related work tasks according to the set instruction codes.

流程控制器模組230的步驟一是呼叫虛擬平台管控單元300,透過虛擬機管理模組310將來源端虛擬平台600的虛擬機A關機,並將虛擬機A的映像檔701匯出至移轉平台700,再呼叫虛擬機移轉管控單元500將匯出的虛擬機A的映像檔701轉換為虛擬機A’的映像檔702,由虛擬平台管控單元300將轉換後的虛擬機A’的映像檔702 匯入目的端虛擬平台800。 The first step of the process controller module 230 is to call the virtual platform management unit 300, shut down the virtual machine A of the source virtual platform 600 through the virtual machine management module 310, and export the image file 701 of the virtual machine A to the transfer. The platform 700, the call virtual machine transfer management unit 500 converts the image file 701 of the exported virtual machine A into the image file 702 of the virtual machine A', and the virtual platform management unit 300 converts the image of the converted virtual machine A'. File 702 is imported into the destination virtual platform 800.

流程控制器模組230的步驟二是呼叫網路環境管控單元400將網路設備設定檔710匯出至移轉平台700,並透過網路設備規則匯出/匯入模組420將網路設備設定檔710匯入目的端虛擬平台800,再透過網路設備規則設定模組430進行設定。 The second step of the process controller module 230 is that the call network environment management unit 400 exports the network device configuration file 710 to the transfer platform 700, and sends the network device through the network device rule export/import module 420. The profile 710 is imported into the destination virtual platform 800 and then set by the network device rule setting module 430.

虛擬平台管控單元300於接收到流程控制器模組230的指令後,首先呼叫虛擬平台控制器模組310進行虛擬平台操控,虛擬平台控制器模組310透過虛擬機管理模組320將虛擬機A關機,由虛擬機映像檔匯出/匯入模組330將虛擬機A的映像檔701匯出至移轉平台700等待轉換,待虛擬機A的映像檔701轉換為虛擬機A’的映像檔702後,流程控制器模組230再次呼叫虛擬機映像檔匯出/匯入模組330將虛擬機A’的映像檔702匯入目的端虛擬平台800,並透過虛擬機管理模組320將虛擬機A開機。 After receiving the instruction of the process controller module 230, the virtual platform management unit 300 first calls the virtual platform controller module 310 to perform virtual platform control, and the virtual platform controller module 310 passes the virtual machine A through the virtual machine management module 320. Shutdown, the virtual machine image export/import module 330 exports the image file 701 of the virtual machine A to the transfer platform 700 for conversion, and the image file 701 of the virtual machine A is converted into the image file of the virtual machine A'. After the 702, the process controller module 230 calls the virtual machine image export/import module 330 to import the image file 702 of the virtual machine A' into the destination virtual platform 800, and virtualizes through the virtual machine management module 320. Machine A is powered on.

網路環境管控單元400於接收到流程控制器模組230的指令後,首先呼叫網路環境控制器模組410進行控制,網路環境控制器模組410透過網路設備規則匯出/匯入模組420將網路設備610的網路設備設定檔710匯出至移轉平台700,流程控制器模組230再次呼叫網路設備規則匯出/匯入模組420將網路設備設定檔710匯入目的端虛擬平台800,並透過網路設備規則設定模組430進行修改。例如,上述網路設備610包含虛擬機A運行所需設備,網路設備610不侷限於實體設備,也可能為虛擬網路服務,如負載 平衡器B、路由器C、防火牆D及網路位址轉換(Network Address Translation,NAT)之此類型的網路設備相關資訊,但不以此為限。 After receiving the instruction of the process controller module 230, the network environment management unit 400 first calls the network environment controller module 410 for control, and the network environment controller module 410 remits/imports through the network device rules. The module 420 remits the network device profile 710 of the network device 610 to the transfer platform 700, and the process controller module 230 calls the network device rule export/import module 420 to set the network device profile 710. The destination virtual platform 800 is imported and modified by the network device rule setting module 430. For example, the network device 610 includes the device required for the operation of the virtual machine A. The network device 610 is not limited to a physical device, and may also be a virtual network service, such as load balancer B, router C, firewall D, and network address. Network Address Translation (NAT) information about this type of network device, but not limited to this.

承上所述,網路設備610包含負載平衡器B、路由器C及防火牆D在匯出至移轉平台700後,經由網路設備設定檔710中的負載平衡器B的設定檔711、路由器C的設定檔712及防火牆D的設定檔713匯入目的端虛擬平台800,並透過網路設備規則設定模組430進行程式修改而成為目的端虛擬平台800中的負載平衡器B’、路由器C’及防火牆D’。 As described above, the network device 610 includes the load balancer B, the router C, and the firewall D, after being exported to the transfer platform 700, via the configuration file 711 of the load balancer B in the network device profile 710, the router C. The configuration file 712 and the configuration file 713 of the firewall D are merged into the destination virtual platform 800, and are modified by the network device rule setting module 430 to become the load balancer B' and the router C' in the destination virtual platform 800. And firewall D'.

虛擬機移轉管控單元500於接收到流程控制器模組230的指令後,首先呼叫移轉控制器模組510,移轉控制器模組510透過虛擬機映像檔轉換模組520將已匯出至移轉平台700的虛擬機A的映像檔701轉換為對應目的端虛擬平台800的虛擬機A’的映像檔702,移轉控制器模組510透過虛擬機映像檔儲存空間設定模組530對虛擬機A’的映像檔702進行虛擬機儲存裝置之修改及設定。 After receiving the instruction of the process controller module 230, the virtual machine transfer control unit 500 first calls the transfer controller module 510, and the transfer controller module 510 will be exported through the virtual machine image conversion module 520. The image file 701 of the virtual machine A to the transfer platform 700 is converted into the image file 702 of the virtual machine A' corresponding to the destination virtual platform 800, and the transfer controller module 510 is passed through the virtual machine image storage space setting module 530. The image file 702 of the virtual machine A' performs modification and setting of the virtual machine storage device.

值得一提,本系統提供3種偵測機制,用以偵測虛擬機A的映像檔701是否已進入移轉平台700,包含:(1)當虛擬機A的映像檔701已進入移轉平台700時,由虛擬平台管控單元300通知雲端服務管控單元200,以由雲端服務管控單元200令虛擬機移轉管控單元500將來源端虛擬平台600之虛擬機A的映像檔701轉換成對應目的端虛擬平台800之虛擬機A’的虛擬機映像檔702; (2)虛擬機移轉管控單元500定時監控來源端虛擬平台600之虛擬機A的虛擬機映像檔701是否移轉至移轉平台700;以及(3)移轉平台700設有一偵測程式,用以偵測來源端虛擬平台600之虛擬機A的虛擬機映像檔701是否移轉至移轉平台700。 It is worth mentioning that the system provides three detection mechanisms for detecting whether the image file 701 of the virtual machine A has entered the transfer platform 700, including: (1) when the image file 701 of the virtual machine A has entered the transfer platform. At 700 o'clock, the virtual platform management unit 300 is notified by the virtual platform management unit 300 to enable the virtual machine transfer management unit 500 to convert the image file 701 of the virtual machine A of the source virtual platform 600 into a corresponding destination. The virtual machine image file 702 of the virtual machine A' of the virtual platform 800; (2) The virtual machine migration management unit 500 periodically monitors whether the virtual machine image file 701 of the virtual machine A of the source virtual platform 600 is transferred to the transfer platform 700. And (3) the transfer platform 700 is provided with a detection program for detecting whether the virtual machine image file 701 of the virtual machine A of the source virtual platform 600 is transferred to the transfer platform 700.

第2圖係為本發明之跨虛擬平台之自動虛擬機移轉及環境設定操作方法之流程圖。 Figure 2 is a flow chart of the automatic virtual machine transfer and environment setting operation method of the cross-virtual platform of the present invention.

以下為本案之實施例的一種跨虛擬平台之自動虛擬機移轉及環境設定操作方法,包含下列步驟:步驟(a):透過一資料庫模組儲存複數關聯於透過一移轉平台將一來源端虛擬平台600之虛擬機A移轉到一目的端虛擬平台800之虛擬機A’的資訊及網路環境的設定指令碼,流程控制器模組230依據該些設定指令碼呼叫虛擬平台控制器模組310;步驟(b):啟動虛擬機移轉與網路設備設定檔轉換作業,虛擬平台控制器模組310呼叫虛擬機映像檔匯出/匯入模組330,透過一虛擬機映像檔匯出/匯入模組330所依據的該些設定指令碼將來源端虛擬平台600之虛擬機A的映像檔701匯出至移轉平台700;步驟(c):虛擬機移轉管控單元500的移轉控制器模組510偵測來源端虛擬平台600之虛擬機A的映像檔701移轉至移轉平台700時,透過一虛擬機映像檔轉換模組520所依據的該些設定指令碼將移轉平台700之虛擬機A的映 像檔701轉換為對應目的端虛擬平台800之虛擬機A’的映像檔702,並透過虛擬機映像檔儲存空間設定模組530對虛擬機A’的映像檔702進行虛擬機儲存裝置之修改及設定,且呼叫虛擬機映像檔匯出/匯入模組330;步驟(d):虛擬機映像檔匯出/匯入模組330將虛擬機A的映像檔701匯入目的端虛擬平台800之虛擬機A’;步驟(e):流程控制器模組230呼叫網路環境控制器模組410;步驟(f):網路環境控制器模組410呼叫網路設備規則匯出/匯入模組420;步驟(g):網路設備610透過網路設備規則匯出/匯入模組420將網路設備設定檔710匯出移轉平台700,並透過網路設備規則設定模組430對網路設備設定檔710進行修改及設定,接者,再匯入目的端虛擬平台800,完成後呼叫虛擬機管理模組320;以及步驟(h):虛擬機管理模組320對目的端虛擬平台800之虛擬機A’進行開機。 The following is an automatic virtual machine migration and environment setting operation method for a cross-virtual platform according to an embodiment of the present invention, which includes the following steps: Step (a): storing a plurality of links through a database module to connect to a source through a transfer platform The virtual machine A of the virtual platform 600 is transferred to the information of the virtual machine A' of the destination virtual platform 800 and the setting instruction code of the network environment, and the process controller module 230 calls the virtual platform controller according to the setting instruction codes. Module 310; Step (b): Initiating virtual machine migration and network device profile conversion operation, virtual platform controller module 310 calls virtual machine image export/import module 330, through a virtual machine image file The set instruction code according to the export/import module 330 exports the image file 701 of the virtual machine A of the source virtual platform 600 to the transfer platform 700; step (c): the virtual machine transfer control unit 500 The transfer controller module 510 detects the set instruction codes according to the virtual machine image conversion module 520 when the image file 701 of the virtual machine A of the source virtual platform 600 is transferred to the transfer platform 700. Transfer platform 700 The image file 701 of the virtual machine A is converted into the image file 702 of the virtual machine A' corresponding to the destination virtual platform 800, and the virtual machine image storage module 530 is used to perform virtual machine storage on the image file 702 of the virtual machine A'. Modification and setting of the device, and calling the virtual machine image export/import module 330; step (d): the virtual machine image export/import module 330 merges the image file 701 of the virtual machine A into the destination Virtual machine A' of virtual platform 800; step (e): process controller module 230 calls network environment controller module 410; step (f): network environment controller module 410 calls network device rule remittance / Import module 420; Step (g): The network device 610 exports the network device profile 710 to the transfer platform 700 through the network device rule export/import module 420, and sets the network device rule through the network device. The module 430 modifies and sets the network device configuration file 710, and then connects to the destination virtual platform 800, and then calls the virtual machine management module 320 after completion; and step (h): the virtual machine management module 320 pairs The virtual machine A' of the destination virtual platform 800 is powered on.

因此,本發明提出的跨虛擬平台之自動虛擬機移轉及環境設定操作系統與方法中,能實現透過多個移轉平台將多個來源端虛擬平台之虛擬機的虛擬機映像檔及網路設備設定檔匯移轉到多個目的端虛擬平台的技術優勢。 Therefore, the virtual machine migration and environment setting operating system and method across the virtual platform proposed by the present invention can implement virtual machine image files and networks of virtual machines of multiple source virtual platforms through multiple migration platforms. The technical advantage of the device profile transfer to multiple destination virtual platforms.

綜上所述,本發明所提出一種跨虛擬平台之自動虛擬機移轉及環境設定操作系統與方法,所具有的技術優勢為: In summary, the present invention provides an automatic virtual machine transfer and environment setting operating system and method across a virtual platform, and has the technical advantages of:

1.自動化偵測來源及目的端虛擬平台環境並濃縮繁雜 步驟指令於自動化腳本,藉此加速虛擬平台移轉之時間,協助使用者快速移轉來源端虛擬平台至目的端虛擬平台。 1. Automated detection of source and destination virtual platform environment and condensing complicated steps The instructions are used to automate scripts to speed up the virtual platform migration time and assist users to quickly transfer the source virtual platform to the destination virtual platform.

2.提供以雲端服務管控單元統一管控虛擬機移轉管控單元、網路環境管控單元及虛擬平台管控單元,藉以簡化操作虛擬機及網路設備設定檔移轉之複雜度,並降低人為手動介入設定所產生之失誤。 2. Provide cloud management and control unit to control and control virtual machine transfer control unit, network environment control unit and virtual platform control unit to simplify the complexity of operating virtual machine and network device configuration files and reduce manual intervention. Set the resulting mistakes.

3.提供以虛擬機移轉管控單元進行虛擬機映像檔轉換,並將已轉換之映像檔及網路設備設定檔匯入目的端虛擬平台,虛擬機於目的端虛擬平台開機後即可直接使用,無需再進行複雜的網路設定及規則建立,藉以提升虛擬機移轉作業效率及使用者滿意度。 3. Providing a virtual machine image transfer unit to perform virtual machine image file conversion, and importing the converted image file and network device configuration file into the destination virtual platform, and the virtual machine can be directly used after the target virtual platform is powered on. There is no need to perform complex network settings and rule establishment to improve the efficiency of virtual machine transfer and user satisfaction.

4.提供多個虛擬機跨不同虛擬平台的移轉程序,透過雲端移轉平台將來源端雲端虛擬平台的虛擬機之映像檔及網路設備設定檔自動化轉換為目的端雲端虛擬平台所採用的格式與資料,移轉後的虛擬機可直接使用,無需再進行任何網路設備設定及規則建立,如此可有效降低操作上的複雜度,並減少人為介入設定可能產生的錯誤,加速虛擬機移轉的效率。 4. Providing a transfer process of multiple virtual machines across different virtual platforms, and automatically converting the image file of the virtual machine of the source cloud virtual platform and the network device profile to the destination cloud virtual platform through the cloud transfer platform Format and data, the transferred virtual machine can be used directly, no need to perform any network device setting and rule establishment, which can effectively reduce the operational complexity, reduce the possible errors caused by human intervention, and accelerate the virtual machine movement. The efficiency of the transfer.

上述實施例係用以例示性說明本發明之原理及其功效,而非用於限制本發明。任何熟習此項技藝之人士均可在不違背本發明之精神及範疇下,對上述實施例進行修改。因此本發明之權利保護範圍,應如隨附之申請專利範圍所列。 The above embodiments are intended to illustrate the principles of the invention and its effects, and are not intended to limit the invention. Any of the above-described embodiments may be modified by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be as set forth in the appended claims.

Claims (10)

一種跨虛擬平台之自動虛擬機移轉及環境設定操作系統,係包括:一雲端服務管控單元,用以儲存複數關聯於透過一移轉平台將一來源端虛擬平台之虛擬機移轉到一目的端虛擬平台之虛擬機的資訊及網路環境的設定指令碼;一虛擬平台管控單元,用以依據該些設定指令碼提供該來源端虛擬平台及該目的端虛擬平台兩者之虛擬機映像檔的匯出、匯入功能;一網路環境管控單元,用以供該雲端服務管控單元依據該些設定指令碼令該網路環境管控單元將該來源端虛擬平台之網路設備資訊匯出至該移轉平台,以透過該網路環境管控單元將該網路設備資訊之網路設備設定檔由該移轉平台轉換及匯入該目的端虛擬平台;以及一虛擬機移轉管控單元,用以供該虛擬平台管控單元在依據該些設定指令碼將該來源端虛擬平台之虛擬機的虛擬機映像檔移轉至該移轉平台後,由該虛擬機移轉管控單元將該來源端虛擬平台之虛擬機的映像檔轉換為對應於該目的端虛擬平台之虛擬機的映像檔,再由該虛擬平台管控單元將該轉換後的虛擬機映像檔匯入該目的端虛擬平台。  An automatic virtual machine migration and environment setting operating system across a virtual platform includes: a cloud service management unit for storing a plurality of virtual machines connected to a source virtual platform through a transfer platform a virtual machine information of the virtual platform and a setting instruction code of the network environment; a virtual platform management unit, configured to provide a virtual machine image of the source virtual platform and the destination virtual platform according to the setting instruction codes a network environment control unit for the cloud service control unit to cause the network environment management unit to retransmit the network device information of the source virtual platform according to the setting instruction codes to The transfer platform converts and converts the network device profile of the network device information from the transfer platform to the destination virtual platform through the network environment control unit; and a virtual machine transfer control unit, The virtual platform management unit moves the virtual machine image file of the virtual machine of the source virtual platform to the transfer platform according to the setting instruction codes. The virtual machine transfer control unit converts the image file of the virtual machine of the source virtual platform into an image file of the virtual machine corresponding to the destination virtual platform, and the virtual platform control unit converts the converted virtual The machine image file is imported into the destination virtual platform.   如申請專利範圍第1項所述之自動虛擬機移轉及環境 設定操作系統,其中,於該來源端虛擬平台之虛擬機的映像檔移轉至該移轉平台之前,該來源端虛擬平台的虛擬機係處於關閉狀態。  The automatic virtual machine transfer and environment setting operating system according to claim 1, wherein the source virtual platform is before the image file of the virtual machine of the source virtual platform is transferred to the transfer platform. The virtual machine is powered off.   如申請專利範圍第1項所述之自動虛擬機移轉及環境設定操作系統,其中,該些設定指令碼包含該來源端虛擬平台及該目的端虛擬平台兩者之虛擬機網際協定位址、登入帳號及/或密碼。  The automatic virtual machine transfer and environment setting operating system according to claim 1, wherein the setting instruction code comprises a virtual machine internet protocol address of the source virtual platform and the destination virtual platform, Login to your account and/or password.   如申請專利範圍第1項所述之自動虛擬機移轉及環境設定操作系統,其中,在該來源端虛擬平台中的該網路設備資訊係經由該網路環境管控單元之網路設備設定檔在該移轉平台轉換為相對應於在該目的端虛擬平台中的該網路設備資訊的規格。  The automatic virtual machine transfer and environment setting operating system according to claim 1, wherein the network device information in the source virtual platform is configured by a network device of the network environment management unit. The migration platform is converted to a specification corresponding to the network device information in the destination virtual platform.   如申請專利範圍第1項所述之自動虛擬機移轉及環境設定操作系統,其中,係用以偵測該虛擬機映像檔是否已進入該移轉平台之偵測機制,以當該虛擬機映像檔已進入該移轉平台時,該偵測機制係由該虛擬平台管控單元通知該雲端服務管控單元,以由該雲端服務管控單元令該虛擬機移轉管控單元將該來源端虛擬平台之虛擬機的虛擬機映像檔轉換成對應該目的端虛擬平台之虛擬機的虛擬機映像檔。  For example, the automatic virtual machine transfer and environment setting operating system described in claim 1 is used to detect whether the virtual machine image file has entered the detection mechanism of the transfer platform to be the virtual machine. When the image file has entered the migration platform, the detection mechanism is notified by the virtual platform management unit to the cloud service management unit, so that the cloud service management unit causes the virtual machine to transfer the control unit to the source virtual platform. The virtual machine image of the virtual machine is converted into a virtual machine image of the virtual machine corresponding to the destination virtual platform.   如申請專利範圍第1項所述之自動虛擬機移轉及環境設定操作系統,係用以偵測該虛擬機映像檔是否已進入該移轉平台之偵測機制,以當該虛擬機映像檔已進入該移轉平台時,該偵測機制係由該虛擬機移轉管控單元定 時監控該來源端虛擬平台之虛擬機的虛擬機映像檔是否移轉至該移轉平台。  The automatic virtual machine transfer and environment setting operating system described in claim 1 is used to detect whether the virtual machine image file has entered the detection mechanism of the transfer platform to be the virtual machine image file. When the migration platform has entered the detection platform, the detection mechanism periodically monitors whether the virtual machine image file of the virtual machine of the source virtual platform is transferred to the migration platform.   如申請專利範圍第1項所述之自動虛擬機移轉及環境設定操作系統,係用以偵測該虛擬機映像檔是否已進入該移轉平台之偵測機制,以當該虛擬機映像檔已進入該移轉平台時,該偵測機制係該移轉平台設有用以偵測該來源端虛擬平台之虛擬機的虛擬機映像檔是否移轉至該移轉平台之偵測程式。  The automatic virtual machine transfer and environment setting operating system described in claim 1 is used to detect whether the virtual machine image file has entered the detection mechanism of the transfer platform to be the virtual machine image file. When the migration platform is entered, the detection mechanism is configured to detect whether the virtual machine image of the virtual machine of the source virtual platform is transferred to the detection platform of the migration platform.   如申請專利範圍第5、6或7項所述之自動虛擬機移轉及環境設定操作系統,其中,該雲端服務管控單元具有一資料庫模組,用以儲存該些關聯於透過該移轉平台將該來源端虛擬平台之虛擬機移轉到該目的端虛擬平台之虛擬機的資訊及網路環境的設定指令碼,以由該雲端服務管控單元的一流程控制模組依據該些設定指令碼令該虛擬平台管控單元、該網路環境管控單元及該虛擬機移轉管控單元進行該來源端虛擬平台及該目的端虛擬平台兩者之虛擬機映像檔的轉換作業。  The automatic virtual machine transfer and environment setting operating system as described in claim 5, 6 or 7, wherein the cloud service control unit has a database module for storing the associations through the transfer The platform transfers the virtual machine of the source virtual platform to the information of the virtual machine of the destination virtual platform and the setting instruction code of the network environment, so that a process control module of the cloud service management unit is configured according to the setting instructions. The virtual platform management unit, the network environment management unit, and the virtual machine transfer management unit perform a conversion operation of the virtual machine image file of the source virtual platform and the destination virtual platform.   一種跨虛擬平台之自動虛擬機移轉及環境設定操作方法,係包括:透過一虛擬機映像檔匯出/匯入模組依據至少一設定指令碼將來源端虛擬平台之虛擬機的虛擬機映像檔匯出至移轉平台;透過一虛擬機映像檔轉換模組依據該至少一設定指令碼將該移轉平台之虛擬機的映像檔轉換為對應目 的端虛擬平台之虛擬機的映像檔;透過該虛擬機映像檔匯出/匯入模組依據該至少一設定指令碼將轉換後的該虛擬機映像檔匯入至該目的端虛擬平台;以及透過一網路設備規則匯出/匯入模組依據該至少一設定指令碼將該來源端虛擬平台的網路設備設定檔匯出至該移轉平台,再由該移轉平台匯入該目的端虛擬平台。  An automatic virtual machine migration and environment setting operation method across a virtual platform includes: a virtual machine image of a virtual machine of a source virtual platform according to at least one setting instruction code through a virtual machine image export/import module The file is exported to the transfer platform; the image file of the virtual machine of the transfer platform is converted into the image file of the virtual machine corresponding to the destination virtual platform by the virtual machine image file conversion module according to the at least one setting instruction code; The virtual machine image export/import module merges the converted virtual machine image file into the destination virtual platform according to the at least one setting instruction code; and sends/imports the module through a network device rule The group remits the network device configuration file of the source virtual platform to the migration platform according to the at least one setting instruction code, and then the migration platform is imported into the destination virtual platform.   如申請專利範圍第9項所述之自動虛擬機移轉及環境設定操作方法,更包括透過一資料庫模組儲存關聯於透過該移轉平台將該來源端虛擬平台之虛擬機移轉到該目的端虛擬平台之虛擬機的資訊及網路環境的該至少一設定指令碼。  The automatic virtual machine transfer and environment setting operation method as described in claim 9 further includes storing, by a database module, a virtual machine connected to the source virtual platform through the transfer platform The at least one setting instruction code of the virtual machine of the destination virtual platform and the network environment.  
TW106128585A 2017-08-23 2017-08-23 System and method for automatic virtual machine conversion and environment setup across heterogeneous hypervisors TWI681299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106128585A TWI681299B (en) 2017-08-23 2017-08-23 System and method for automatic virtual machine conversion and environment setup across heterogeneous hypervisors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106128585A TWI681299B (en) 2017-08-23 2017-08-23 System and method for automatic virtual machine conversion and environment setup across heterogeneous hypervisors

Publications (2)

Publication Number Publication Date
TW201913403A true TW201913403A (en) 2019-04-01
TWI681299B TWI681299B (en) 2020-01-01

Family

ID=66991909

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106128585A TWI681299B (en) 2017-08-23 2017-08-23 System and method for automatic virtual machine conversion and environment setup across heterogeneous hypervisors

Country Status (1)

Country Link
TW (1) TWI681299B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11080082B2 (en) 2019-08-02 2021-08-03 Red Hat, Inc. Cross-hypervisor virtual machine conversion

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8209680B1 (en) * 2003-04-11 2012-06-26 Vmware, Inc. System and method for disk imaging on diverse computers
CA2486103A1 (en) * 2004-10-26 2006-04-26 Platespin Ltd. System and method for autonomic optimization of physical and virtual resource use in a data center
TW201118741A (en) * 2009-11-30 2011-06-01 Inventec Corp A transferring method for virtual machine on virtual host

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11080082B2 (en) 2019-08-02 2021-08-03 Red Hat, Inc. Cross-hypervisor virtual machine conversion

Also Published As

Publication number Publication date
TWI681299B (en) 2020-01-01

Similar Documents

Publication Publication Date Title
JP6224846B2 (en) Client premises resource control via provider-defined interface
JP5644150B2 (en) Service providing system, virtual machine server, service providing method, and service providing program
US10708232B2 (en) Techniques for communication in hybrid cloud system
EP2965200B1 (en) Method and system for providing a roaming remote desktop
EP3343364B1 (en) Accelerator virtualization method and apparatus, and centralized resource manager
US11422843B2 (en) Virtual machine migration method and apparatus having automatic user registration at a destination virtual machine
JP4972670B2 (en) Virtual computer system, access control method thereof, and communication apparatus
JP2010033404A (en) Virtual machine system and method for controlling virtual machine system
US20130036213A1 (en) Virtual private clouds
CN107707622B (en) Method and device for accessing desktop cloud virtual machine and desktop cloud controller
JP2017518568A (en) System and method for live migration of virtualized network stack
US8909912B2 (en) Apparatus and method for configuring a target machine with captured operational state comprising a static machine profile and a dynamic machine state to continue operations of a source machine
JP2013514588A (en) Virtual memory target offload technology
JP2016095830A (en) Redirection of serial output by HTTP
US11425054B1 (en) User-configured multi-location service deployment and scaling
US20130318528A1 (en) Information processing method
KR101680702B1 (en) System for web hosting based cloud service
CN103685539A (en) Method for running Windows system on home-made processor platform
CN107678831A (en) It is a kind of to realize the V2V methods migrated between virtual platform
WO2017028612A1 (en) Antivirus method and device for virtual machine
JP7180907B2 (en) Connected accelerator-based inference service
TW201913403A (en) System and method for automatic virtual machine conversion and environment setup across heterogeneous hypervisors
TWI498750B (en) Method and system of intelligent cloud migration
US11467835B1 (en) Framework integration for instance-attachable accelerator
Guay et al. Early experiences with live migration of SR-IOV enabled InfiniBand