CN106293512B - Method for realizing trans-regional storage and distribution of basic mirror image based on Xen virtualization platform - Google Patents

Method for realizing trans-regional storage and distribution of basic mirror image based on Xen virtualization platform Download PDF

Info

Publication number
CN106293512B
CN106293512B CN201610597816.6A CN201610597816A CN106293512B CN 106293512 B CN106293512 B CN 106293512B CN 201610597816 A CN201610597816 A CN 201610597816A CN 106293512 B CN106293512 B CN 106293512B
Authority
CN
China
Prior art keywords
disk
difference
virtual machine
mirror image
difference disk
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.)
Active
Application number
CN201610597816.6A
Other languages
Chinese (zh)
Other versions
CN106293512A (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.)
Fujian Centerm Information Co Ltd
Original Assignee
Fujian Centerm Information 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 Fujian Centerm Information Co Ltd filed Critical Fujian Centerm Information Co Ltd
Priority to CN201610597816.6A priority Critical patent/CN106293512B/en
Publication of CN106293512A publication Critical patent/CN106293512A/en
Application granted granted Critical
Publication of CN106293512B publication Critical patent/CN106293512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/065Replication mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0667Virtualisation aspects at data level, e.g. file, record or object virtualisation
    • 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

Abstract

The invention provides a method for realizing trans-regional storage and distribution of a basic mirror image based on a Xen virtualization platform, which comprises the following steps: creating a master disc on a storage warehouse SR of the high-performance IOPS; cloning a differential disk a based on the master disk, wherein the differential disk a is also positioned on a storage warehouse SR of the high-performance IOPS; creating an empty disk c with the same size as the difference disk a on the common storage warehouse SR, and marking the empty disk c as a difference disk b; copying the content of the difference disk a to a difference disk b, and setting the parent attribute of the difference disk b as a master disk; deleting the difference disk a, and mounting the difference disk b as a system disk to a virtual machine of the Xen virtualization platform; thus, the virtual machine is positioned on the common storage warehouse SR, and the basic mirror image is positioned on the storage warehouse SR of the high-performance IOPS; once the virtual machine is started, the data of the base image is distributed to the virtual machine. The invention separately arranges the mirror image and the virtual machine on different storages, thereby improving the performance and reducing the cost.

Description

Method for realizing trans-regional storage and distribution of basic mirror image based on Xen virtualization platform
Technical Field
The invention relates to the technical field of network communication, in particular to a basic mirror image cross-region storage and distribution implementation method based on a Xen virtualization platform.
Background
Xen is a Virtual Machine Monitor (VMM) based on open source software organization, which can allow multiple os instances to run simultaneously on a single physical Machine.
Xen is a system virtual machine based on Open Source (Open Source) code, originally designed and developed based on a 32-bit X86 architecture, and supports running up to about 100 virtual machines simultaneously. The management interfaces (Hypercalls) and Events (Events) introduced by Xen, and the predefined shared memory data exchange mechanism between the virtual machines and the VMM, all enable the new guest architecture (Xen virtual machine architecture) to have higher overall performance, but at the same time, specify that it must modify the guest operating system source code.
The monitoring program possesses partial hardware IO resources such as timer equipment, interrupt equipment PIC/L ecalAPIC/IO APIC, etc., other virtual domains can also possess partial IO resources such as hard disk network card, etc.
Xen itself is mainly migrated based on open-source L inux kernel code, and Xen L inux running on the Xen is also migrated from L inux, which means that L inux supporting the Xen architecture, the UNIX operating systems FreeBSD and Windows XP which also support the Xen architecture can run on Xen, the application (X86) can run on Xen (X86) without any modification, for example, L inux application can run on Xen L inux and Windows XP application can run on Xen XP.
The virtual machine is established on the Xen virtualization platform based on the mirror image, the prior art is that the basic mirror image and the virtual machine are in the same storage, and the process of starting the virtual machines in batches mainly comprises reading and writing the mirror image, so that the virtual machines are started in batches, and the basic mirror image is also in the same storage, which undoubtedly causes the performance of the storage equipment to be greatly reduced; if the mirror image and the virtual machine are separately arranged on different storages, the performance can be improved, and meanwhile, the cost is reduced. Wherein, the basic mirror image refers to the mirror image which is depended on by the desktops of the same group of pool types; a pool type desktop is a type of desktop under a virtual machine VDI.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for realizing trans-regional storage and distribution of a basic mirror image based on a Xen virtualization platform, so that the cost of equipment is reduced, the experience of a user is improved, and the performance of the equipment is improved.
The invention is realized by the following steps: a method for implementing trans-regional storage and distribution of a basic mirror image based on a Xen virtualization platform comprises the following steps:
creating a master disc on a storage warehouse SR of the high-performance IOPS; cloning a differential disk a based on the master disk, wherein the differential disk a is also positioned on a storage warehouse SR of the high-performance IOPS;
creating an empty disk c with the same size as the difference disk a on the common storage warehouse SR, and marking the empty disk c as a difference disk b;
copying the content of the difference disk a to a difference disk b, and setting the parent attribute of the difference disk b as a master disk;
deleting the difference disk a, and mounting the difference disk b as a system disk to a virtual machine of the Xen virtualization platform; thus, the virtual machine is positioned on the common storage warehouse SR, and the basic mirror image is positioned on the storage warehouse SR of the high-performance IOPS; once the virtual machine is started, the data of the basic image is distributed to the virtual machine, so that cross-region storage and distribution of the basic image are completed.
Further, copying the content of the difference disk a to the difference disk b specifically includes: the content of the difference disk a is copied by designating a piece of storage space in the difference disk b, and the content of the difference disk a is converted while being copied, so that the content can be embodied in the difference disk b.
The invention has the following advantages: the invention separately arranges the basic mirror image and the virtual machine on different storages, the basic mirror image is arranged on the storage warehouse SR of the high-performance IOPS to improve the user experience, such as starting speed, and the virtual machine is arranged on the common storage warehouse SR to reduce the cost of equipment.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention.
Detailed Description
Referring to fig. 1, a method for implementing cross-region storage and distribution of a basic mirror image based on a Xen virtualization platform according to the present invention includes:
creating a master disk on a storage warehouse SR of high-performance IOPS (the number of read-write I/O operations per second); cloning a differential disk a based on the master disk, wherein the differential disk a is also positioned on a storage warehouse SR of the high-performance IOPS;
creating an empty disk c with the same size as the difference disk a on the common storage warehouse SR, and marking the empty disk c as a difference disk b;
copying the contents of the delta disc a to the delta disc b using dd commands (dd commands are a very useful command under L inux/UNIX, for copying a file in blocks of a specified size and performing specified transformations while copying.) setting the parent attribute of the delta disc b as a master;
deleting the difference disk a, and mounting the difference disk b as a system disk to a virtual machine of the Xen virtualization platform; thus, the virtual machine is positioned on the common storage warehouse SR, and the basic mirror image is positioned on the storage warehouse SR of the high-performance IOPS; once the virtual machine is started, the data of the basic image is distributed to the virtual machine, so that the cross-region storage and distribution of the basic image are completed.
The copying of the content of the difference disk a to the difference disk b specifically includes: the content of the difference disk a is copied by designating a piece of storage space in the difference disk b, and the content of the difference disk a is converted while being copied, so that the content can be embodied in the difference disk b. The storage SR of a high performance IOPS may have more than 2 ten thousand IOPS, while the ordinary storage SR does not reach 2 ten thousand IOPS.
In short, the invention separately arranges the basic mirror image and the virtual machine on different storages, the basic mirror image is arranged on the storage warehouse SR of the high-performance IOPS to improve the user experience, such as the starting speed, and the virtual machine is arranged on the common storage warehouse SR to reduce the cost of the equipment.
The above description is only a preferred embodiment of the present invention, and all equivalent changes and modifications made in accordance with the claims of the present invention should be covered by the present invention.

Claims (1)

1. A method for realizing cross-region storage and distribution of a basic mirror image based on a Xen virtualization platform is characterized by comprising the following steps: the implementation method comprises the following steps:
creating a master disc on a storage warehouse SR of the high-performance IOPS; cloning a differential disk a based on the master disk, wherein the differential disk a is also positioned on a storage warehouse SR of the high-performance IOPS;
creating an empty disk c with the same size as the difference disk a on the common storage warehouse SR, and marking the empty disk c as a difference disk b;
copying the content of the difference disk a to a difference disk b by using a dd command, and setting the parent attribute of the difference disk b as a master disk;
deleting the difference disk a, and mounting the difference disk b as a system disk to a virtual machine of the Xen virtualization platform; thus, the virtual machine is positioned on the common storage warehouse SR, and the basic mirror image is positioned on the storage warehouse SR of the high-performance IOPS; once the virtual machine is started, the data of the basic mirror image is distributed to the virtual machine, so that the cross-region storage and distribution of the basic mirror image are completed;
copying the content of the difference disk a to the difference disk b, specifically: the content of the difference disk a is copied by designating a piece of storage space in the difference disk b, and the content of the difference disk a is converted while being copied, so that the content can be embodied in the difference disk b.
CN201610597816.6A 2016-07-27 2016-07-27 Method for realizing trans-regional storage and distribution of basic mirror image based on Xen virtualization platform Active CN106293512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610597816.6A CN106293512B (en) 2016-07-27 2016-07-27 Method for realizing trans-regional storage and distribution of basic mirror image based on Xen virtualization platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610597816.6A CN106293512B (en) 2016-07-27 2016-07-27 Method for realizing trans-regional storage and distribution of basic mirror image based on Xen virtualization platform

Publications (2)

Publication Number Publication Date
CN106293512A CN106293512A (en) 2017-01-04
CN106293512B true CN106293512B (en) 2020-07-31

Family

ID=57652785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610597816.6A Active CN106293512B (en) 2016-07-27 2016-07-27 Method for realizing trans-regional storage and distribution of basic mirror image based on Xen virtualization platform

Country Status (1)

Country Link
CN (1) CN106293512B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287004B (en) * 2019-07-05 2021-07-30 中国工商银行股份有限公司 Basic environment mirror image preheating method and device based on docker container technology

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193807A (en) * 2010-03-19 2011-09-21 联想(北京)有限公司 Method for upgrading image file, server and computer network system
CN103685408A (en) * 2012-09-18 2014-03-26 英业达科技有限公司 Server for providing reading base mirror by storage area network, host and method
CN103810422A (en) * 2014-02-20 2014-05-21 东莞中国科学院云计算产业技术创新与育成中心 Safety virtualization isolation method based on mirror image intelligent management

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9304705B2 (en) * 2013-09-06 2016-04-05 Vmware, Inc. Virtual machine cloning
US9507623B2 (en) * 2014-12-15 2016-11-29 Vmware, Inc. Handling disk state inheritance for forked virtual machines

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193807A (en) * 2010-03-19 2011-09-21 联想(北京)有限公司 Method for upgrading image file, server and computer network system
CN103685408A (en) * 2012-09-18 2014-03-26 英业达科技有限公司 Server for providing reading base mirror by storage area network, host and method
CN103810422A (en) * 2014-02-20 2014-05-21 东莞中国科学院云计算产业技术创新与育成中心 Safety virtualization isolation method based on mirror image intelligent management

Also Published As

Publication number Publication date
CN106293512A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US10846145B2 (en) Enabling live migration of virtual machines with passthrough PCI devices
US10074206B1 (en) Network-optimized graphics library for virtualized graphics processing
US8832029B2 (en) Incremental virtual machine backup supporting migration
US11243707B2 (en) Method and system for implementing virtual machine images
US9239841B2 (en) Hash-based snapshots
US10289684B2 (en) Live migration of virtual machine persistent data using mirrored input-output operations
US11487523B2 (en) Updating machine emulator
US9201698B2 (en) System and method to reduce memory usage by optimally placing VMS in a virtualized data center
US20140095823A1 (en) Virtual Disk Snapshot Consolidation Using Block Merge
US20140366019A1 (en) Suspend-resume of virtual machines using de-duplication
US20130346613A1 (en) Scheduling a processor to support efficient migration of a virtual machine
US20180060100A1 (en) Virtual Machine Migration Acceleration With Page State Indicators
US9086981B1 (en) Exporting guest spatial locality to hypervisors
US8813076B2 (en) Virtual machine updates
US20140164722A1 (en) Method for saving virtual machine state to a checkpoint file
US9792075B1 (en) Systems and methods for synthesizing virtual hard drives
US9052937B2 (en) Managing storage commands according to input-output priorities and dependencies
US11188365B2 (en) Memory overcommit by speculative fault
US10338847B1 (en) Coherent buffer mapping for virtualized graphics processing
US9336216B2 (en) Command-based data migration
US9766918B2 (en) Virtual system device identification using GPU to host bridge mapping
CN106201564B (en) Device and method of the online upgrading based on kernel virtual machine module
CN106293512B (en) Method for realizing trans-regional storage and distribution of basic mirror image based on Xen virtualization platform
Shah Windows Server 2012 Hyper-V: Deploying the Hyper-V Enterprise Server Virtualization Platform
US9684529B2 (en) Firmware and metadata migration across hypervisors based on supported capabilities

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