CN106293512B - 基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法 - Google Patents

基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法 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
English (en)
Other versions
CN106293512A (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.)
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/zh
Publication of CN106293512A publication Critical patent/CN106293512A/zh
Application granted granted Critical
Publication of CN106293512B publication Critical patent/CN106293512B/zh
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

Landscapes

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

Abstract

本发明提供一种基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法,该实现方法包括:在高性能IOPS的存储仓库SR上创建一母盘;基于母盘上克隆一个差异盘a,差异盘a也位于高性能IOPS的存储仓库SR上;在普通的存储仓库SR上创建一个与差异盘a大小一样的空盘c,将空盘c标记为差异盘b;将差异盘a的内容复制到差异盘b,设置差异盘b的parent属性为母盘;删除差异盘a,将差异盘b作为***盘挂载到Xen虚拟化平台的虚拟机;这样虚拟机处于普通的存储仓库SR上,基础镜像就处于高性能IOPS的存储仓库SR上;虚拟机一旦启动,基础镜像的数据就会分发到虚拟机中。本发明将镜像和虚拟机分置于不同的存储上,可以提升性能的同时降低成本。

Description

基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法
技术领域
本发明涉及网络通讯技术领域,尤其涉及一种基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法。
背景技术
Xen是一个基于开源软件组织的虚拟机监控器(即Virtual Machine Monitor简称VMM),可以允许在单一的物理机器上同时运行多个操作***实例。
Xen是一个基于开源(Open Source)代码的***虚拟机,最初基于32位X86体系结构而设计开发,支持同时运行多至约100个虚拟机。Xen引入的管理接口(Hypercalls)和事件(Events)机制,以及预先定义的虚拟机和VMM之间的共享内存数据交换机制都使得新的客户机体系架构(Xen虚拟机架构)具有更高的总体性能,但同时也就注定了它必须修改客户机操作***源代码。
Xen将客户机称之为虚拟域(Domain),其中0号虚拟域为服务域作为监控程序的扩展提供***的管理服务。监控程序拥有部分硬件IO资源如定时器设备、中断设备PIC/LocalAPIC/IO APIC等,其他虚拟域也可以拥有部分的IO资源,如硬盘网卡等。拥有物理设备的虚拟域称为隔离设备驱动域(Isolated Driver Domain)或简称设备驱动域(DriverDomain)。普通虚拟域只有虚拟设备而不拥有直接的硬件设备资源访问权。Xen项目也将中间软件层Hypervisor称为Xen。
Xen本身主要基于开源的Linux内核代码移植而来,同时运行其上的XenLinux也从Linux移植而来,意为支持Xen架构的Linux。同样支持Xen架构的UNIX操作***FreeBSD和Windows XP也能够在Xen上运行。应用程序(X86)均不需任何修改就可以在Xen(X86)上运行,如Linux应用程序可以在XenLinux上运行而Windows XP应用程序可以在XenXP上运行。
在Xen虚拟化平台上基于镜像创建的虚拟机,现有技术是基础镜像和虚拟机处于同一个存储上,而批量启动虚拟机的过程,主要是对镜像本身的读写,这样批量启动虚拟机,再加上基础镜像也在同一存储上,无疑导致存储设备的性能大大降低;如果将镜像和虚拟机分置于不同的存储上,可以提升性能的同时降低成本。其中,基础镜像指的是同一组池类型的桌面所依赖的镜像;池类型的桌面是虚拟机VDI下的一种桌面类型。
发明内容
本发明要解决的技术问题,在于提供一种基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法,降低了设备的成本,且提高了用户的体验,提高了设备的性能。
本发明是这样实现的:一种基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法,所述实现方法包括:
在高性能IOPS的存储仓库SR上创建一母盘;基于母盘上克隆一个差异盘a,所述差异盘a也位于高性能IOPS的存储仓库SR上;
在普通的存储仓库SR上创建一个与差异盘a大小一样的空盘c,将空盘c标记为差异盘b;
将差异盘a的内容复制到差异盘b,设置差异盘b的parent属性为母盘;
删除差异盘a,将差异盘b作为***盘挂载到Xen虚拟化平台的虚拟机;这样虚拟机处于普通的存储仓库SR上,基础镜像就处于高性能IOPS的存储仓库SR上;虚拟机一旦启动,基础镜像的数据就会分发到虚拟机中,从而完成基础镜像跨区存储与分发。
进一步地,将差异盘a的内容复制到差异盘b,具体为:指定差异盘b中一块存储空间拷贝差异盘a的内容,并在拷贝的同时将差异盘a的内容进行转换,使得内容能在差异盘b中体现。
本发明具有如下优点:本发明将基础镜像和虚拟机分置于不同的存储上,基础镜像放置于高性能IOPS的存储仓库SR上,用于改善用户体验,如开机速度,而虚拟机放置于普通存储仓库SR上,用于降低设备的成本。
附图说明
图1为本发明方法流程示意图。
具体实施方式
请参阅图1所示,本发明的一种基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法,所述实现方法包括:
在高性能IOPS(每秒进行读写I/O操作的次数)的存储仓库SR上创建一母盘;基于母盘上克隆一个差异盘a,所述差异盘a也位于高性能IOPS的存储仓库SR上;
在普通的存储仓库SR上创建一个与差异盘a大小一样的空盘c,将空盘c标记为差异盘b;
使用dd命令(dd命令是Linux/UNIX下的一个非常有用的命令,作用是用指定大小的块拷贝一个文件,并在拷贝的同时进行指定的转换。)将差异盘a的内容复制到差异盘b,设置差异盘b的parent属性为母盘;
删除差异盘a,将差异盘b作为***盘挂载到Xen虚拟化平台的虚拟机;这样虚拟机处于普通的存储仓库SR上,基础镜像就处于高性能IOPS的存储仓库SR上;虚拟机一旦启动,基础镜像的数据就会分发到虚拟机中了,从而完成基础镜像跨区存储与分发。
其中,将差异盘a的内容复制到差异盘b,具体为:指定差异盘b中一块存储空间拷贝差异盘a的内容,并在拷贝的同时将差异盘a的内容进行转换,使得内容能在差异盘b中体现。高性能IOPS的存储仓库SR可以有2万以上的IOPS,而普通存储仓库SR达不到2万的IOPS。
总之,本发明将基础镜像和虚拟机分置于不同的存储上,基础镜像放置于高性能IOPS的存储仓库SR上,用于改善用户体验,如开机速度,而虚拟机放置于普通存储仓库SR上,用于降低设备的成本。
以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本发明的涵盖范围。

Claims (1)

1.一种基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法,其特征在于:所述实现方法包括:
在高性能IOPS的存储仓库SR上创建一母盘;基于母盘上克隆一个差异盘a,所述差异盘a也位于高性能IOPS的存储仓库SR上;
在普通的存储仓库SR上创建一个与差异盘a大小一样的空盘c,将空盘c标记为差异盘b;
使用dd命令将差异盘a的内容复制到差异盘b,设置差异盘b的parent属性为母盘;
删除差异盘a,将差异盘b作为***盘挂载到Xen虚拟化平台的虚拟机;这样虚拟机处于普通的存储仓库SR上,基础镜像就处于高性能IOPS的存储仓库SR上;虚拟机一旦启动,基础镜像的数据就会分发到虚拟机中,从而完成基础镜像跨区存储与分发;
将差异盘a的内容复制到差异盘b,具体为:指定差异盘b中一块存储空间拷贝差异盘a的内容,并在拷贝的同时将差异盘a的内容进行转换,使得内容能在差异盘b中体现。
CN201610597816.6A 2016-07-27 2016-07-27 基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法 Active CN106293512B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610597816.6A CN106293512B (zh) 2016-07-27 2016-07-27 基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610597816.6A CN106293512B (zh) 2016-07-27 2016-07-27 基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法

Publications (2)

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

Family

ID=57652785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610597816.6A Active CN106293512B (zh) 2016-07-27 2016-07-27 基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法

Country Status (1)

Country Link
CN (1) CN106293512B (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287004B (zh) * 2019-07-05 2021-07-30 中国工商银行股份有限公司 基于docker容器技术的基础环境镜像预热方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193807A (zh) * 2010-03-19 2011-09-21 联想(北京)有限公司 一种镜像文件升级的方法、服务器及计算机网络***
CN103685408A (zh) * 2012-09-18 2014-03-26 英业达科技有限公司 以存储区域网络提供读取基础镜像的服务器、主机及方法
CN103810422A (zh) * 2014-02-20 2014-05-21 东莞中国科学院云计算产业技术创新与育成中心 一种基于镜像智能管理的安全虚拟化隔离方法

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 (zh) * 2010-03-19 2011-09-21 联想(北京)有限公司 一种镜像文件升级的方法、服务器及计算机网络***
CN103685408A (zh) * 2012-09-18 2014-03-26 英业达科技有限公司 以存储区域网络提供读取基础镜像的服务器、主机及方法
CN103810422A (zh) * 2014-02-20 2014-05-21 东莞中国科学院云计算产业技术创新与育成中心 一种基于镜像智能管理的安全虚拟化隔离方法

Also Published As

Publication number Publication date
CN106293512A (zh) 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
US11487523B2 (en) Updating machine emulator
US9239841B2 (en) Hash-based snapshots
US10289684B2 (en) Live migration of virtual machine persistent data using mirrored input-output operations
US9201698B2 (en) System and method to reduce memory usage by optimally placing VMS in a virtualized data center
US10521256B2 (en) Virtual machine migration acceleration with page state indicators
US20160202916A1 (en) Method and system for implementing virtual machine images
US20140095823A1 (en) Virtual Disk Snapshot Consolidation Using Block Merge
US20140366019A1 (en) Suspend-resume of virtual machines using de-duplication
US10496601B1 (en) Efficient file system parsing using snap based replication
US20130346613A1 (en) Scheduling a processor to support efficient migration of a virtual machine
US8813076B2 (en) Virtual machine updates
US20150324297A1 (en) Exporting guest spatial locality to hypervisors
US20140164722A1 (en) Method for saving virtual machine state to a checkpoint file
US9052937B2 (en) Managing storage commands according to input-output priorities and dependencies
US11188365B2 (en) Memory overcommit by speculative fault
CN113826072B (zh) ***管理模式中的代码更新
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 (zh) 在线升级基于内核虚拟机模块的设备和方法
CN106293512B (zh) 基于Xen虚拟化平台的基础镜像跨区存储与分发的实现方法
Shah Windows Server 2012 Hyper-V: Deploying the Hyper-V Enterprise Server Virtualization Platform

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