WO2016004737A1 - Virtual machine software update method - Google Patents

Virtual machine software update method Download PDF

Info

Publication number
WO2016004737A1
WO2016004737A1 PCT/CN2014/094358 CN2014094358W WO2016004737A1 WO 2016004737 A1 WO2016004737 A1 WO 2016004737A1 CN 2014094358 W CN2014094358 W CN 2014094358W WO 2016004737 A1 WO2016004737 A1 WO 2016004737A1
Authority
WO
WIPO (PCT)
Prior art keywords
version
virtual machine
software
new
old
Prior art date
Application number
PCT/CN2014/094358
Other languages
French (fr)
Chinese (zh)
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 国云科技股份有限公司
Publication of WO2016004737A1 publication Critical patent/WO2016004737A1/en

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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

Definitions

  • the present invention relates to the field of software update technologies, and in particular, to a software update method for a virtual machine.
  • the software is generally maintained.
  • the virtual machine on some cloud platforms needs to install the function enhancement software; for example, the Hyper-V virtual machine needs to be installed with Hyper- V Integration Services, as well as virtual machines, support monitoring of some of the software that needs to be installed.
  • the Hyper-V virtual machine needs to be installed with Hyper- V Integration Services, as well as virtual machines, support monitoring of some of the software that needs to be installed.
  • an update is required, it is generally only possible to install one by one. The steps are generally as follows:
  • the maintenance personnel obtain the software installation program through the network or by mounting the installation CD or ISO image file;
  • the maintenance personnel compare the version information of the software to determine whether the software needs to be updated;
  • This method has the following problems:
  • the software acquired on the virtual machine needs to be downloaded from other places. Depending on the network, this method will be invalid when the virtual machine network is limited (no IP address is configured or the software download address cannot be accessed).
  • the technical problem to be solved by the present invention is to provide a virtual machine software update method, which can overcome the defects of the existing software update.
  • Step 1 Virtualize an optical drive when creating a virtual machine, and virtualize a serial port
  • Step 2 After the software is installed, obtain the version number of the installed software.
  • Step 3 After the new version of the software is released, put the software into an ISO image file and put the version number into the ISO image file.
  • Step 4 Copy the ISO image file to the host and mount the ISO image file to the CD-ROM drive of the VM.
  • Step 5 Send a command to the serial port of the virtual machine on the host machine to obtain the version in the ISO image file and the software version installed on the virtual machine, and compare them;
  • Step 6 If the software version in the ISO image file is newer, perform a silent installation on the software installation program in the ISO image file.
  • Step 7 If the software version installed on the virtual machine is the same as the software version in the ISO image file, or if the software version installed on the virtual machine is newer, no installation is performed.
  • the ISO image file is a CD image file saved in ISO-9660 format. There is only one file in the ISO image format, and all files on the CD are compressed into this file.
  • the mounting of the ISO image file to the virtual machine's optical drive means that the ISO image file is mounted as a loop device in the host machine, and then the loop device is used as the source of the virtual machine optical drive, so that the optical drive can be accessed by accessing the virtual machine. Direct access to the contents of the ISO image file.
  • the sending a command to the serial port of the virtual machine refers to receiving a serial port listener on the virtual machine.
  • the host sends a message to the serial port of the virtual machine, parses the message, and then performs the corresponding operation.
  • the silent installation described is a silent installation that is invoked by the installer to perform a silent installation and a mandatory override.
  • the comparison of the new and old software versions includes the following steps:
  • Step 1 The new and old version numbers are divided into levels to obtain the version number of each level;
  • Step 2 Sort the version numbers of each level from high to low, first compare the first version number of the new and old version numbers. If the new version number is larger than the old version number, skip to step 4; if the new version The number is smaller than the old version number, skip to step 5; if the new version number is the same as the old version number, then perform the comparison of the next level version number;
  • Step 3 Compare the version number of the second level, and so on, until the version numbers of the last level are the same, then the old and new version numbers are identical and no software update is required;
  • Step 4 The new version is higher than the old version and requires a software update.
  • Step 5 The new version is older than the old version and no software updates are required.
  • the method of the present invention does not rely on manual judgment, and the version information is completely obtained in the virtual machine operating system or the software installation medium, and the update process is absolutely accurate;
  • the method of the present invention does not depend on the network of the virtual machine and has a wide range of uses;
  • the method of the invention does not require manual intervention, and is suitable for batch virtual machine update software, and has high efficiency.
  • creating a virtual machine installing an old version of the software on a virtual machine, and obtaining an ISO image file are normal operations, and are not described here.
  • the invention realizes a virtual machine serial port listening program in the python language, and implements a virtual machine software updating method by using a batch processing script to implement version comparison and software silent installation under the windows virtual machine.
  • serial port listener in the virtual machine, start the serial port command that the virtual machine waits for the host machine to run as a service process.
  • the code is as follows:
  • the above defines a listening function that uses the "while 1" infinite loop to call recv_msg(port) to listen on the specified port port.
  • serial port command parsing and implementation function is based on the msg information received by the serial port command listening function, and the process_msg (msg) is called to parse the msg message.
  • the code is as follows:
  • the macro definition corresponding to FUNCTION in the code indicates the relevant format in the predefined serial port command. After the serial port command parsing and implementation function parsing in the serial port service is successful, the system command is executed.
  • the cmd in the code is the batch script to be executed, as follows:

Abstract

The present invention relates to the technical field of software updates, in particular to a virtual machine software update method. The present invention comprises the steps of: 1, virtualizing an optical drive and a serial port when creating a virtual machine; 2, acquiring the version number of installed software; 3, after version update, putting software and version number in an ISO image file; 4, copying the ISO image file to a host machine, and mounting the ISO image file on the optical drive of the virtual machine; 5, on the host machine, transmitting a command to the serial port of the virtual machine, and acquiring a software version for comparison; 6, if the software version in the ISO image file is a later version, then performing silent installation of the software installation program in the ISO image file; otherwise, do not perform any installation. The present invention provides a method for replacing manual updating of virtual machine software, being used for virtual machine software update.

Description

虚拟机的软件更新方法Virtual machine software update method 技术领域Technical field
本发明涉及软件更新技术领域,尤其是一种虚拟机的软件更新方法。The present invention relates to the field of software update technologies, and in particular, to a software update method for a virtual machine.
背景技术Background technique
在云平台上的虚拟机运行以后,一般要对其上软件的进行维护,尤其是有部分云平台上的虚拟机上需要安装功能增强软件的;比如Hyper-V的虚拟机上需要安装Hyper-V Integration Services,还有虚拟机支持监控需要安装的一些软件。需要更新时,一般都只能通过人工一台一台进行安装。步骤一般如下:After the virtual machine runs on the cloud platform, the software is generally maintained. In particular, the virtual machine on some cloud platforms needs to install the function enhancement software; for example, the Hyper-V virtual machine needs to be installed with Hyper- V Integration Services, as well as virtual machines, support monitoring of some of the software that needs to be installed. When an update is required, it is generally only possible to install one by one. The steps are generally as follows:
1、维护人员通过网络或挂载安装光盘或ISO镜像文件获取软件的安装程序;1. The maintenance personnel obtain the software installation program through the network or by mounting the installation CD or ISO image file;
2、维护人员通过软件的版本信息对比,判断软件是否需要更新;2. The maintenance personnel compare the version information of the software to determine whether the software needs to be updated;
3、如果需要更新,维护人员先卸载旧版本,然后运行新版本的安装程序,一步一步进行安装。3. If an update is required, the maintenance personnel first uninstall the old version, then run the new version of the installer and install it step by step.
这种方法会有如下的问题:This method has the following problems:
1、虚拟机上获取软件需要从其他地方下载,依赖于网络,在虚拟机网络受限(没有配置IP地址或不能访问软件下载的地址)时,这种方法将无效;1. The software acquired on the virtual machine needs to be downloaded from other places. Depending on the network, this method will be invalid when the virtual machine network is limited (no IP address is configured or the software download address cannot be accessed).
2、版本对比依赖于人工判断,容易出错;2, version comparison depends on manual judgment, easy to make mistakes;
3、逐台进行人工升级,效率低,体现在两个方面:一、要登录到每台虚拟机,可能不是一个人能掌握所有虚拟机的密码,如果不能登录,也将无法升级;二、依赖于人去逐个步骤点击安装程序,需要的时间也比较多。3, manual upgrades one by one, low efficiency, reflected in two aspects: First, to log in to each virtual machine, may not be able to master the password of all virtual machines, if you can not log in, will not be able to upgrade; It takes more time to rely on people to click on the installer step by step.
发明内容 Summary of the invention
本发明解决的技术问题在于提供一种虚拟机软件更新方法,可以克服现有软件更新的缺陷。The technical problem to be solved by the present invention is to provide a virtual machine software update method, which can overcome the defects of the existing software update.
本发明解决上技术问题的技术方案是:The technical solution of the present invention to solve the above technical problem is:
包括如下步骤:Including the following steps:
步骤1:在创建虚拟机时虚拟一个光驱,并虚拟一个串口;Step 1: Virtualize an optical drive when creating a virtual machine, and virtualize a serial port;
步骤2:软件安装以后,获取已安装软件的版本号;Step 2: After the software is installed, obtain the version number of the installed software.
步骤3:新版本软件发布以后,将软件放入一个ISO镜像文件中,并将版本号放入ISO镜像文件;Step 3: After the new version of the software is released, put the software into an ISO image file and put the version number into the ISO image file.
步骤4:将ISO镜像文件拷贝到宿主机上,并将ISO镜像文件挂载到虚拟机的光驱中;Step 4: Copy the ISO image file to the host and mount the ISO image file to the CD-ROM drive of the VM.
步骤5:在宿主机上向虚拟机的串口发送命令,获取ISO镜像文件中的版本和安装在虚拟机上的软件版本,并进行比较;Step 5: Send a command to the serial port of the virtual machine on the host machine to obtain the version in the ISO image file and the software version installed on the virtual machine, and compare them;
步骤6:如果ISO镜像文件中的软件版本较新,那么对ISO镜像文件中的软件安装程序执行静默安装;Step 6: If the software version in the ISO image file is newer, perform a silent installation on the software installation program in the ISO image file.
步骤7:如果安装在虚拟机上的软件版本与ISO镜像文件中的软件版本相同,或安装在虚拟机上的软件版本较新,那么不执行任何安装。Step 7: If the software version installed on the virtual machine is the same as the software version in the ISO image file, or if the software version installed on the virtual machine is newer, no installation is performed.
所述的ISO镜像文件是以ISO-9660格式保存的光盘镜像文件,ISO镜像形式上只有一个文件,光盘上的所有文件压缩到此文件中。The ISO image file is a CD image file saved in ISO-9660 format. There is only one file in the ISO image format, and all files on the CD are compressed into this file.
所述将ISO镜像文件挂载到虚拟机的光驱中是指在宿主机中将ISO镜像文件挂载成一个loop设备,然后把loop设备作为虚拟机光驱的源,使得通过访问虚拟机的光驱能直接访问到ISO镜像文件中的内容。The mounting of the ISO image file to the virtual machine's optical drive means that the ISO image file is mounted as a loop device in the host machine, and then the loop device is used as the source of the virtual machine optical drive, so that the optical drive can be accessed by accessing the virtual machine. Direct access to the contents of the ISO image file.
所述的向虚拟机的串口发送命令是指在虚拟机上的一个串口监听程序收到 宿主机向虚拟机串口发送的消息,解析消息然后执行对应的操作。The sending a command to the serial port of the virtual machine refers to receiving a serial port listener on the virtual machine. The host sends a message to the serial port of the virtual machine, parses the message, and then performs the corresponding operation.
所述的静默安装是调用安装程序提供的静默安装方式执行静默安装和强制覆盖。The silent installation described is a silent installation that is invoked by the installer to perform a silent installation and a mandatory override.
所述的新旧软件版本比较,包括如下步骤:The comparison of the new and old software versions includes the following steps:
步骤1:新旧版本号都进行按级分割,获取每一级的版本号;Step 1: The new and old version numbers are divided into levels to obtain the version number of each level;
步骤2:把每一级的版本号按从高到底排列,先将新旧版本号的第一级版本号进行比较,如果新的版本号比旧版本号大,跳到步骤4;如果新的版本号比旧版本号小,跳到步骤5;如果新的版本号跟旧版本号相同,那么执行下一级版本号的比较;Step 2: Sort the version numbers of each level from high to low, first compare the first version number of the new and old version numbers. If the new version number is larger than the old version number, skip to step 4; if the new version The number is smaller than the old version number, skip to step 5; if the new version number is the same as the old version number, then perform the comparison of the next level version number;
步骤3:比较第二级的版本号,如此类推,直到最后一级的版本号都相同,那么新旧版本号完全相同,不需要进行软件更新;Step 3: Compare the version number of the second level, and so on, until the version numbers of the last level are the same, then the old and new version numbers are identical and no software update is required;
步骤4:新版本比旧版本要高,需要进行软件更新;Step 4: The new version is higher than the old version and requires a software update.
步骤5:新版本比旧版本还要旧,不需要进行软件更新。Step 5: The new version is older than the old version and no software updates are required.
本发明方案的有益效果如下:The beneficial effects of the solution of the present invention are as follows:
1、本发明的方法不依赖于人工判断,版本信息完全在虚拟机操作系统或软件安装介质中取得,更新过程绝对准确;1. The method of the present invention does not rely on manual judgment, and the version information is completely obtained in the virtual machine operating system or the software installation medium, and the update process is absolutely accurate;
2、本发明的方法不依赖于虚拟机的网络,具有很广的使用范围;2. The method of the present invention does not depend on the network of the virtual machine and has a wide range of uses;
3、本发明的方法不需要人工干预,适合批量虚拟机更新软件,具有很高的效率。3. The method of the invention does not require manual intervention, and is suitable for batch virtual machine update software, and has high efficiency.
附图说明DRAWINGS
下面结合附图对本发明进一步说明:The present invention is further described below in conjunction with the accompanying drawings:
附图是本发明的流程图。 The drawings are a flow chart of the invention.
具体实施方式detailed description
如图所示,创建虚拟机、在虚拟机上安装旧版本软件以及获取ISO镜像文件都是常规操作,不赘述。本发明下面以python语言实现一个虚拟机串口监听程序,以批处理脚本实现windows虚拟机下的版本比较和软件静默安装为例,说明一种虚拟机软件更新方法的实现。As shown in the figure, creating a virtual machine, installing an old version of the software on a virtual machine, and obtaining an ISO image file are normal operations, and are not described here. The invention realizes a virtual machine serial port listening program in the python language, and implements a virtual machine software updating method by using a batch processing script to implement version comparison and software silent installation under the windows virtual machine.
首先checkout出新旧两份源代码。First checkout the old and new source code.
然后在虚拟机中实现一个串口监听程序,启动以一个服务进程的方式运行于虚拟机等待宿主机传来的串口命令,代码如下:Then implement a serial port listener in the virtual machine, start the serial port command that the virtual machine waits for the host machine to run as a service process. The code is as follows:
Figure PCTCN2014094358-appb-000001
Figure PCTCN2014094358-appb-000001
Figure PCTCN2014094358-appb-000002
Figure PCTCN2014094358-appb-000002
以上定义了一个listening函数,利用“while 1”死循环调用recv_msg(port)监听指定的port端口。The above defines a listening function that uses the "while 1" infinite loop to call recv_msg(port) to listen on the specified port port.
串口命令解析和实现功能根据串口命令监听功能接收到的msg信息,调用process_msg(msg)进行msg消息的解析,代码如下:The serial port command parsing and implementation function is based on the msg information received by the serial port command listening function, and the process_msg (msg) is called to parse the msg message. The code is as follows:
Figure PCTCN2014094358-appb-000003
Figure PCTCN2014094358-appb-000003
Figure PCTCN2014094358-appb-000004
Figure PCTCN2014094358-appb-000004
代码中的FUNCTION对应的宏定义表示预定义的串口命令中相关格式,串口服务中串口命令解析和实现功能解析成功以后,执行系统的命令。The macro definition corresponding to FUNCTION in the code indicates the relevant format in the predefined serial port command. After the serial port command parsing and implementation function parsing in the serial port service is successful, the system command is executed.
Figure PCTCN2014094358-appb-000005
Figure PCTCN2014094358-appb-000005
代码中的cmd就是要执行的批处理脚本,如下:The cmd in the code is the batch script to be executed, as follows:
Figure PCTCN2014094358-appb-000006
Figure PCTCN2014094358-appb-000006
Figure PCTCN2014094358-appb-000007
Figure PCTCN2014094358-appb-000007
Figure PCTCN2014094358-appb-000008
Figure PCTCN2014094358-appb-000008
Figure PCTCN2014094358-appb-000009
Figure PCTCN2014094358-appb-000009
Figure PCTCN2014094358-appb-000010
Figure PCTCN2014094358-appb-000010

Claims (10)

  1. 一种虚拟机的软件更新方法,其特征在于:包括如下步骤:A software update method for a virtual machine, comprising: the following steps:
    步骤1:在创建虚拟机时虚拟一个光驱,并虚拟一个串口;Step 1: Virtualize an optical drive when creating a virtual machine, and virtualize a serial port;
    步骤2:软件安装以后,获取已安装软件的版本号;Step 2: After the software is installed, obtain the version number of the installed software.
    步骤3:新版本软件发布以后,将软件放入一个ISO镜像文件中,并将版本号放入ISO镜像文件;Step 3: After the new version of the software is released, put the software into an ISO image file and put the version number into the ISO image file.
    步骤4:将ISO镜像文件拷贝到宿主机上,并将ISO镜像文件挂载到虚拟机的光驱中;Step 4: Copy the ISO image file to the host and mount the ISO image file to the CD-ROM drive of the VM.
    步骤5:在宿主机上向虚拟机的串口发送命令,获取ISO镜像文件中的版本和安装在虚拟机上的软件版本,并进行比较;Step 5: Send a command to the serial port of the virtual machine on the host machine to obtain the version in the ISO image file and the software version installed on the virtual machine, and compare them;
    步骤6:如果ISO镜像文件中的软件版本较新,那么对ISO镜像文件中的软件安装程序执行静默安装;Step 6: If the software version in the ISO image file is newer, perform a silent installation on the software installation program in the ISO image file.
    步骤7:如果安装在虚拟机上的软件版本与ISO镜像文件中的软件版本相同,或安装在虚拟机上的软件版本较新,那么不执行任何安装。Step 7: If the software version installed on the virtual machine is the same as the software version in the ISO image file, or if the software version installed on the virtual machine is newer, no installation is performed.
  2. 根据权利要求1所述的虚拟机的软件更新方法,其特征在于:所述的ISO镜像文件是以ISO-9660格式保存的光盘镜像文件,ISO镜像形式上只有一个文件,光盘上的所有文件压缩到此文件中。The software update method for a virtual machine according to claim 1, wherein the ISO image file is a CD image file saved in the ISO-9660 format, and only one file is in the ISO image format, and all files on the CD are compressed. Go to this file.
  3. 根据权利要求1所述的虚拟机的软件更新方法,其特征在于:所述将ISO镜像文件挂载到虚拟机的光驱中是指在宿主机中将ISO镜像文件挂载成一个loop设备,然后把loop设备作为虚拟机光驱的源,使得通过访问虚拟机的光驱能直接访问到ISO镜像文件中的内容。The software update method of the virtual machine according to claim 1, wherein the mounting the ISO image file to the CD-ROM drive of the virtual machine means that the ISO image file is mounted as a loop device in the host machine, and then The loop device is used as the source of the virtual machine's optical drive, so that the optical drive that accesses the virtual machine can directly access the content in the ISO image file.
  4. 根据权利要求2所述的虚拟机的软件更新方法,其特征在于:所述将ISO 镜像文件挂载到虚拟机的光驱中是指在宿主机中将ISO镜像文件挂载成一个loop设备,然后把loop设备作为虚拟机光驱的源,使得通过访问虚拟机的光驱能直接访问到ISO镜像文件中的内容。A software update method for a virtual machine according to claim 2, wherein said ISO is Mounting an image file to a virtual machine's CD-ROM drive means that the ISO image file is mounted as a loop device in the host machine, and then the loop device is used as the source of the virtual machine CD-ROM drive, so that the optical drive that accesses the virtual machine can directly access the ISO. The contents of the image file.
  5. 根据权利要求1至4任一项所述的虚拟机的软件更新方法,其特征在于:所述的向虚拟机的串口发送命令是指在虚拟机上的一个串口监听程序收到宿主机向虚拟机串口发送的消息,解析消息然后执行对应的操作。The software update method for a virtual machine according to any one of claims 1 to 4, wherein the sending a command to the serial port of the virtual machine means that a serial port listener on the virtual machine receives the host to the virtual machine. The message sent by the serial port of the machine, parsing the message and then performing the corresponding operation.
  6. 根据权利要求1至4任一项所述的虚拟机的软件更新方法,其特征在于:所述的静默安装是调用安装程序提供的静默安装方式执行静默安装和强制覆盖。The software update method for a virtual machine according to any one of claims 1 to 4, wherein the silent installation is to perform a silent installation and a mandatory overlay by calling a silent installation manner provided by the installer.
  7. 根据权利要5所述的虚拟机的软件更新方法,其特征在于:所述的静默安装是调用安装程序提供的静默安装方式执行静默安装和强制覆盖。The software update method of the virtual machine according to claim 5, wherein the silent installation performs a silent installation and a mandatory overlay by calling a silent installation manner provided by the installer.
  8. 根据权利要求1至4任一项所述的虚拟机的软件更新方法,其特征在于:所述的新旧软件版本比较,包括如下步骤:The software update method for a virtual machine according to any one of claims 1 to 4, wherein the comparing the new and old software versions comprises the following steps:
    步骤1:新旧版本号都进行按级分割,获取每一级的版本号;Step 1: The new and old version numbers are divided into levels to obtain the version number of each level;
    步骤2:把每一级的版本号按从高到底排列,先将新旧版本号的第一级版本号进行比较,如果新的版本号比旧版本号大,跳到步骤4;如果新的版本号比旧版本号小,跳到步骤5;如果新的版本号跟旧版本号相同,那么执行下一级版本号的比较;Step 2: Sort the version numbers of each level from high to low, first compare the first version number of the new and old version numbers. If the new version number is larger than the old version number, skip to step 4; if the new version The number is smaller than the old version number, skip to step 5; if the new version number is the same as the old version number, then perform the comparison of the next level version number;
    步骤3:比较第二级的版本号,如此类推,直到最后一级的版本号都相同,那么新旧版本号完全相同,不需要进行软件更新;Step 3: Compare the version number of the second level, and so on, until the version numbers of the last level are the same, then the old and new version numbers are identical and no software update is required;
    步骤4:新版本比旧版本要高,需要进行软件更新;Step 4: The new version is higher than the old version and requires a software update.
    步骤5:新版本比旧版本还要旧,不需要进行软件更新。 Step 5: The new version is older than the old version and no software updates are required.
  9. 根据权利要求5所述的虚拟机的软件更新方法,其特征在于:所述的新旧软件版本比较,包括如下步骤:The software update method for a virtual machine according to claim 5, wherein the comparing the new and old software versions comprises the following steps:
    步骤1:新旧版本号都进行按级分割,获取每一级的版本号;Step 1: The new and old version numbers are divided into levels to obtain the version number of each level;
    步骤2:把每一级的版本号按从高到底排列,先将新旧版本号的第一级版本号进行比较,如果新的版本号比旧版本号大,跳到步骤4;如果新的版本号比旧版本号小,跳到步骤5;如果新的版本号跟旧版本号相同,那么执行下一级版本号的比较;Step 2: Sort the version numbers of each level from high to low, first compare the first version number of the new and old version numbers. If the new version number is larger than the old version number, skip to step 4; if the new version The number is smaller than the old version number, skip to step 5; if the new version number is the same as the old version number, then perform the comparison of the next level version number;
    步骤3:比较第二级的版本号,如此类推,直到最后一级的版本号都相同,那么新旧版本号完全相同,不需要进行软件更新;Step 3: Compare the version number of the second level, and so on, until the version numbers of the last level are the same, then the old and new version numbers are identical and no software update is required;
    步骤4:新版本比旧版本要高,需要进行软件更新;Step 4: The new version is higher than the old version and requires a software update.
    步骤5:新版本比旧版本还要旧,不需要进行软件更新。Step 5: The new version is older than the old version and no software updates are required.
  10. 根据权利要求6所述的虚拟机的软件更新方法,其特征在于:所述的新旧软件版本比较,包括如下步骤:The software update method for a virtual machine according to claim 6, wherein the comparing the new and old software versions comprises the following steps:
    步骤1:新旧版本号都进行按级分割,获取每一级的版本号;Step 1: The new and old version numbers are divided into levels to obtain the version number of each level;
    步骤2:把每一级的版本号按从高到底排列,先将新旧版本号的第一级版本号进行比较,如果新的版本号比旧版本号大,跳到步骤4;如果新的版本号比旧版本号小,跳到步骤5;如果新的版本号跟旧版本号相同,那么执行下一级版本号的比较;Step 2: Sort the version numbers of each level from high to low, first compare the first version number of the new and old version numbers. If the new version number is larger than the old version number, skip to step 4; if the new version The number is smaller than the old version number, skip to step 5; if the new version number is the same as the old version number, then perform the comparison of the next level version number;
    步骤3:比较第二级的版本号,如此类推,直到最后一级的版本号都相同,那么新旧版本号完全相同,不需要进行软件更新;Step 3: Compare the version number of the second level, and so on, until the version numbers of the last level are the same, then the old and new version numbers are identical and no software update is required;
    步骤4:新版本比旧版本要高,需要进行软件更新;Step 4: The new version is higher than the old version and requires a software update.
    步骤5:新版本比旧版本还要旧,不需要进行软件更新。 Step 5: The new version is older than the old version and no software updates are required.
PCT/CN2014/094358 2014-07-10 2014-12-19 Virtual machine software update method WO2016004737A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410328506.5 2014-07-10
CN201410328506.5A CN104102527A (en) 2014-07-10 2014-07-10 Method for updating software of virtual machine

Publications (1)

Publication Number Publication Date
WO2016004737A1 true WO2016004737A1 (en) 2016-01-14

Family

ID=51670699

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/094358 WO2016004737A1 (en) 2014-07-10 2014-12-19 Virtual machine software update method

Country Status (2)

Country Link
CN (1) CN104102527A (en)
WO (1) WO2016004737A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391810A (en) * 2015-11-06 2016-03-09 北京中星微电子有限公司 Interface device of terminal equipment
EP4086756A4 (en) * 2019-12-31 2023-06-07 ZTE Corporation Method and apparatus for processing virtual machine component

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102527A (en) * 2014-07-10 2014-10-15 国云科技股份有限公司 Method for updating software of virtual machine
CN105592114A (en) * 2014-10-22 2016-05-18 北京云巢动脉科技有限公司 Application software issuing method in virtual desktop environment
CN105550567A (en) * 2015-12-09 2016-05-04 国云科技股份有限公司 USB device read-write authority management and control method of Windows virtual machine
CN105335202A (en) * 2015-12-09 2016-02-17 浪潮电子信息产业股份有限公司 Method for locally and automatically installing Redhat software packages in batches
CN105610630A (en) * 2016-01-29 2016-05-25 博雅网信(北京)科技有限公司 Patch installation system and method in cloud computing environment
CN107643937B (en) * 2016-07-22 2020-07-03 北京金山云网络技术有限公司 Virtual machine monitor upgrading method and device
CN107968794B (en) * 2016-10-18 2023-05-12 中兴通讯股份有限公司 Virtual CD-ROM mounting method and system, server and terminal
CN106502763A (en) * 2016-11-01 2017-03-15 上海优刻得信息科技有限公司 A kind of Oftware updating method and device
CN107463427A (en) * 2017-06-29 2017-12-12 北京北信源软件股份有限公司 The acquisition methods and device of a kind of VME operating system type and version
CN108932155A (en) * 2018-07-25 2018-12-04 迈普通信技术股份有限公司 Virtual machine memory management method, device, electronic equipment and readable storage medium storing program for executing
CN109240716B (en) * 2018-09-10 2022-10-25 福建星瑞格软件有限公司 Big data platform version management and rapid iterative deployment method and system
CN111124603A (en) * 2019-11-30 2020-05-08 北京浪潮数据技术有限公司 CD-ROM mounting method, device and related equipment
CN112596757A (en) * 2020-11-26 2021-04-02 新华三大数据技术有限公司 Method and device for upgrading agent component of cloud desktop virtual machine and storage medium
CN112783525A (en) * 2021-01-22 2021-05-11 新华三大数据技术有限公司 Daemon process upgrading method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616018A (en) * 2008-06-27 2009-12-30 中兴通讯股份有限公司 The method of upgrading network management software and device
CN101702131A (en) * 2009-11-19 2010-05-05 中兴通讯股份有限公司 Self-installing method of wireless network card and system thereof
CN102880482A (en) * 2012-08-06 2013-01-16 厦门市美亚柏科信息股份有限公司 System and technical method of automatically updating software in host batch control virtual machine
CN104102527A (en) * 2014-07-10 2014-10-15 国云科技股份有限公司 Method for updating software of virtual machine

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7603440B1 (en) * 2001-11-09 2009-10-13 Persystent Technology Corporation System and method for management of end user computing devices
CN102707971A (en) * 2012-04-26 2012-10-03 广东电子工业研究院有限公司 Method for automatically acquiring and installing software in virtual machine
CN103902302A (en) * 2012-12-26 2014-07-02 鸿富锦精密工业(深圳)有限公司 Software installation system and method for virtual machine
CN103441867B (en) * 2013-08-15 2016-12-28 国云科技股份有限公司 A kind of method updating virtual machine internal Network resource allocation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616018A (en) * 2008-06-27 2009-12-30 中兴通讯股份有限公司 The method of upgrading network management software and device
CN101702131A (en) * 2009-11-19 2010-05-05 中兴通讯股份有限公司 Self-installing method of wireless network card and system thereof
CN102880482A (en) * 2012-08-06 2013-01-16 厦门市美亚柏科信息股份有限公司 System and technical method of automatically updating software in host batch control virtual machine
CN104102527A (en) * 2014-07-10 2014-10-15 国云科技股份有限公司 Method for updating software of virtual machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391810A (en) * 2015-11-06 2016-03-09 北京中星微电子有限公司 Interface device of terminal equipment
CN105391810B (en) * 2015-11-06 2020-12-22 广东中星电子有限公司 Terminal equipment interface device
EP4086756A4 (en) * 2019-12-31 2023-06-07 ZTE Corporation Method and apparatus for processing virtual machine component

Also Published As

Publication number Publication date
CN104102527A (en) 2014-10-15

Similar Documents

Publication Publication Date Title
WO2016004737A1 (en) Virtual machine software update method
US11301280B2 (en) System and method for managing a monitoring agent in an operating system of a virtual computing instance
US9229705B2 (en) In-band hypervisor-managed firmware updates
US11243792B2 (en) Image file conversion method and apparatus
US9075690B2 (en) Automatically and securely configuring and updating virtual machines
US9519513B2 (en) Methods and apparatus to automatically configure monitoring of a virtual machine
US10120672B2 (en) Method for offline updating virtual machine images
US9841988B1 (en) Updating service virtual machines using a new image that is certified
CN106911729B (en) Remote installation method of operating system suitable for domestic processor
CN103984575A (en) Rapid deployment method of cluster Linux operation system in cloud-computing environment
US9268662B2 (en) Method and system for a high availability framework
TW201301138A (en) Virtual machine migration tool
CN105159704A (en) Method and apparatus for batch deployment of operation systems
CN104113430A (en) Cloud computing data center automatic deployment software framework design
US10929115B2 (en) Distribution and execution of instructions in a distributed computing environment
US10558449B2 (en) Distribution and execution of instructions in a distributed computing environment
CN109002346B (en) Conversion method of Windows virtual machine bootstrap program
CN107608681A (en) Installation method of operating system, device and server
CN106775876B (en) Method for quickly starting application by android system
CN111475172B (en) Bare metal deployment method and device
US20110320595A1 (en) Medical information processing device and software distributing system
WO2016095796A1 (en) Secure operating system update method used in reliable execution environment
US20210263721A1 (en) Method, device, and computer program product for managing virtual machine upgrage
CN110737444A (en) Remote self-adaptive dynamic deployment method and system for operating system based on firmware
US9262151B2 (en) Methods and systems for automatic configuration of algorithms in a system based on self aware algorithms

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14897092

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14897092

Country of ref document: EP

Kind code of ref document: A1