The invention discloses a virtual machine loading starting method, which includes: storing the operating system image file of the virtual machine in the physical machine disk; loading the kernel image file in the operating system mirror file to the physical machine memory; starting the virtual machine. This method saves the image file of the operating system of the virtual machine to the local physical machine disk. When the virtual machine is started, the kernel image file of the operating system is loaded to the physical machine memory, and the time to read the content of the disk is shortened when the virtual machine load is started. At the same time, the kernel image file is mirrored relative to the whole system. The data amount is small, and the kernel image file contains the necessary core data that the virtual machine needs to start. The virtual machine is started by the kernel image file, and the unnecessary data in the virtual machine boot is removed, and the amount of data read by the virtual machine is reduced. It enables the virtual machine to start quickly, reducing the pressure on the network storage when the virtual machine is loading and starting. This method can be applied to cloud technology.
【技术实现步骤摘要】
一种虚拟机加载启动方法
本专利技术涉及虚拟机
,特别涉及一种虚拟机加载启动方法。
技术介绍
虚拟机是一种在物理主机上通过虚拟化技术再启动一个操作系统的实例,目前云计算的大规模推广与兴起,虚拟机的使用越来越普遍,虚拟机跟传统物理机方式启动操作系统以及服务对比,前者更加灵活,交付更加快捷。在云虚拟化里面,存储服务是为虚拟机实例提供磁盘服务,使得虚拟机像普通物理机那样拥有磁盘进行读写。现有的存储服务实现架构与方式主要分以下几种:1.本地存储(虚拟机磁盘服务是由虚拟机所在的物理机提供);2.集中式存储(由一个外部单独的存储设备通过网络的方式提供给虚拟机使用);3.分布式存储(由外部多个存储设备组成的存储集群通过网络的方式提供给虚拟机使用)。根据存储通信方式划分又可以把上面三种方式分成两类,第一类为:通过本地系统调用直接提供服务,本地存储就是这样的方式,直接由虚拟机所在物理机的磁盘提供服务,不需要经过网络,这样通信效率更高,速度更快,但是这样的方式是数据只保存在本地,当本地设备发现故障很容易会导致数据丢失;第二类为:通过网络的方式提供存储服务,集中式和分布式存储都是以这样的网络方式提供服务,这种方式的好处是数据由专业的存储设备保存,存储设备有多份数据备份,数据不易丢失,但是缺点是因为存储服务经过网络,跟第一类对比,效率有所降低。目前市面上绝大部分云提供商都选择了第二类给用户提供虚拟机的磁盘服务。该磁盘服务为将虚拟机的磁盘放在网络存储设备上,虚拟机加载启动的时候,通过网络的方式读取磁盘内容到物理机物理内存,然后在物理机启动虚拟机实例。但是,在虚拟机启动的时候有较 ...
【技术保护点】
1.一种虚拟机加载启动方法,其特征在于,包括:将虚拟机的操作系统镜像文件存储在物理机磁盘中;将操作系统镜像文件中的内核映像文件加载到物理机内存中;启动虚拟机。
【技术特征摘要】
1.一种虚拟机加载启动方法,其特征在于,包括:将虚拟机的操作系统镜像文件存储在物理机磁盘中;将操作系统镜像文件中的内核映像文件加载到物理机内存中;启动虚拟机。2.根据权利要求1所述的一种虚拟机加载启动方法,其特征在于,在启动虚拟机后,...
【专利技术属性】
技术研发人员:麦剑,史伟,闵宇,
申请(专利权)人:广东睿江云计算股份有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。