CN108108177B - Firmware upgrading method of physical host, physical host and virtual machine - Google Patents

Firmware upgrading method of physical host, physical host and virtual machine Download PDF

Info

Publication number
CN108108177B
CN108108177B CN201810001125.4A CN201810001125A CN108108177B CN 108108177 B CN108108177 B CN 108108177B CN 201810001125 A CN201810001125 A CN 201810001125A CN 108108177 B CN108108177 B CN 108108177B
Authority
CN
China
Prior art keywords
firmware
upgrading
virtual machine
physical host
upgraded
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
CN201810001125.4A
Other languages
Chinese (zh)
Other versions
CN108108177A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810001125.4A priority Critical patent/CN108108177B/en
Publication of CN108108177A publication Critical patent/CN108108177A/en
Application granted granted Critical
Publication of CN108108177B publication Critical patent/CN108108177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F9/45558Hypervisor-specific management and integration aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a firmware upgrading method of a physical host, the physical host starts a first virtual machine running on the physical host after receiving a firmware upgrading instruction, virtualization processing is carried out on an upgrading interface of firmware to be upgraded, the generated virtual firmware upgrading interface is used as virtual equipment to be transmitted to the first virtual machine, the first virtual machine upgrades the firmware to be upgraded through a firmware upgrading tool, and therefore in-band upgrading of the firmware in the physical host is achieved. The application also discloses a physical host and a virtual machine for realizing the functions.

Description

Firmware upgrading method of physical host, physical host and virtual machine
Technical Field
The application belongs to the technical field of computers, and particularly relates to a firmware upgrading method of a physical host, the physical host and a virtual machine.
Background
A VM (Virtual Machine) refers to a complete computer system that operates in a completely isolated environment and has complete hardware system functions and is realized by software simulation. One or more virtual computers can be simulated on one physical computer by virtual machine software, and the virtual machines can work like real computers, such as installing an operating system, installing application programs, accessing network resources and the like. The physical computer running the virtual machine is called a host or physical host.
Firmware (Firmware) is software that serves as the most basic and bottom layer of a system and is typically stored in an EEPROM (Electrically Erasable Programmable ROM) or FLASH chip on the chip.
In the using process of the electronic equipment, the firmware needs to be upgraded according to actual requirements. The operating system of the physical host is only equivalent to a hypervisor (also called VMM) (Virtual Machine Monitor), and an API (Application Programming Interface) is not provided, which results in that the firmware in the physical host cannot be upgraded in-band.
Disclosure of Invention
In view of this, an object of the present application is to provide a firmware upgrading method for a physical host, a physical host and a virtual machine, so as to solve the problem that in the prior art, in-band upgrading cannot be performed on firmware in the physical host.
In order to achieve the above purpose, the present application provides the following technical solutions:
the application provides a firmware upgrading method of a physical host, wherein the firmware upgrading method is applied to the physical host and comprises the following steps:
responding to a firmware upgrading instruction, starting a first virtual machine, wherein the first virtual machine runs on the physical host, and is provided with a firmware upgrading tool, and the firmware upgrading instruction carries an identifier of firmware to be upgraded;
determining the firmware to be upgraded according to the firmware upgrading instruction;
and performing virtualization processing on an interface of the firmware to be upgraded, transmitting a virtual firmware upgrading interface to the first virtual machine, and upgrading the firmware to be upgraded by the first virtual machine through the firmware upgrading tool.
Optionally, in the firmware upgrading method, the transmitting the virtual firmware upgrading interface to the first virtual machine includes:
and transmitting the virtual firmware upgrading interface to the first virtual machine in a passthrough direct transmission mode.
Optionally, in the firmware upgrading method, the method further includes: and removing the first virtual machine after the firmware upgrading is finished.
The application also provides a firmware upgrading method of the physical host, the firmware upgrading method is applied to a virtual machine, the virtual machine runs on the physical host, the virtual machine is provided with a firmware upgrading tool, and the firmware upgrading method comprises the following steps:
receiving a virtual firmware upgrading interface transmitted by the physical host, wherein the virtual firmware upgrading interface is generated by virtualizing an upgrading interface of firmware to be upgraded by the physical host in response to a firmware upgrading instruction;
and upgrading the firmware to be upgraded by the firmware upgrading tool.
Optionally, in the firmware upgrading method, upgrading the firmware to be upgraded by using the firmware upgrading tool includes:
acquiring a firmware upgrading package of the firmware to be upgraded;
and upgrading the firmware to be upgraded by using the firmware upgrading package by the firmware upgrading tool.
The application also provides a physical host, which comprises a processor and a memory, wherein at least one virtual machine runs on the physical host;
the processor is configured to: responding to a firmware upgrading instruction, starting a first virtual machine, wherein the first virtual machine runs on the physical host, and is provided with a firmware upgrading tool, and the firmware upgrading instruction carries an identifier of firmware to be upgraded; determining the firmware to be upgraded according to the firmware upgrading instruction; and performing virtualization processing on an upgrading interface of the firmware to be upgraded, transmitting a virtual firmware upgrading interface to the first virtual machine, and upgrading the firmware to be upgraded by the first virtual machine through the firmware upgrading tool.
Optionally, in the physical host, in an aspect of transferring the virtual firmware upgrade interface to the first virtual machine, the processor is specifically configured to: and transmitting the virtual firmware upgrading interface to the first virtual machine in a passthrough direct transmission mode.
Optionally, in the physical host, the processor is further configured to: and removing the first virtual machine after the firmware upgrading is finished.
The application also provides a virtual machine, wherein the virtual machine runs on a physical host, the virtual machine is provided with a firmware upgrading tool, and the virtual machine comprises a virtual processor;
the virtual processor is to: receiving a virtual firmware upgrading interface transmitted by the physical host, wherein the virtual firmware upgrading interface is generated by virtualizing an upgrading interface of firmware to be upgraded by the physical host in response to a firmware upgrading instruction; and upgrading the firmware to be upgraded by a firmware upgrading tool.
Optionally, in the virtual machine, in terms of upgrading the firmware to be upgraded by using a firmware upgrade tool, the virtual processor is configured to: acquiring a firmware upgrading package of the firmware to be upgraded; and upgrading the firmware to be upgraded by using the firmware upgrading package by the firmware upgrading tool.
Therefore, the beneficial effects of the application are as follows:
according to the firmware upgrading method of the physical host, after the physical host receives a firmware upgrading instruction, a first virtual machine running on the physical host is started, an upgrading interface of firmware to be upgraded is subjected to virtualization processing, the generated virtual firmware upgrading interface is used as virtual equipment to be transmitted to the first virtual machine, the firmware to be upgraded is upgraded through a firmware upgrading tool by the first virtual machine, and therefore in-band upgrading of the firmware in the physical host is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart illustrating a method for upgrading firmware of a physical host according to the present disclosure;
FIG. 2 is a flow chart of another method for upgrading firmware of a physical host disclosed herein;
FIG. 3 is a system architecture diagram of a physical host as disclosed herein;
FIG. 4 is a flow chart of another method for firmware upgrade of a physical host disclosed herein;
FIG. 5 is a flow chart of another method for firmware upgrade of a physical host disclosed herein;
fig. 6 is a block diagram of a physical host disclosed in the present application.
Detailed Description
The application discloses a firmware upgrading method of a physical host, the physical host and a virtual machine, which aim to solve the problem that the firmware in the physical host cannot be upgraded in band in the prior art.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating a firmware upgrade method for a physical host according to the present disclosure. The firmware upgrading method is applied to a physical host and comprises the following steps:
step S101: and responding to the firmware upgrading instruction, and starting the first virtual machine.
The firmware upgrading instruction carries an identifier of firmware to be upgraded, the first virtual machine runs on the physical host, and the first virtual machine is provided with a firmware upgrading tool.
The physical host disclosed in the present application runs a plurality of virtual machines, wherein one virtual machine is provided with a firmware upgrade tool, and for convenience of description, the virtual machine is denoted as a first virtual machine.
And when a firmware upgrading requirement exists, outputting a firmware upgrading instruction to the physical host, wherein the firmware upgrading instruction carries an identifier of the firmware to be upgraded. After the physical host receives the firmware upgrading instruction, starting a first virtual machine provided with a firmware upgrading tool.
In an implementation, the firmware upgrading instruction may be sent by the server, and when the server determines that the firmware in the physical host has an upgrading requirement, the server sends the firmware upgrading instruction to the physical host. In addition, the firmware upgrading instruction can also be triggered and sent by a user, and when the user needs to upgrade the firmware in the physical host, the firmware upgrading instruction is sent to the physical host through the interaction device.
Step S102: and determining the firmware to be upgraded according to the firmware upgrading instruction.
Step S103: and performing virtualization processing on an upgrading interface of the firmware to be upgraded, transmitting the virtual firmware upgrading interface to the first virtual machine, and upgrading the firmware to be upgraded by the first virtual machine through a firmware upgrading tool.
The firmware upgrading instruction carries the identification of the firmware to be upgraded, and the physical host can determine the firmware to be upgraded according to the firmware upgrading instruction. The physical host virtualizes an upgrade interface of the firmware to be upgraded, and transmits the generated virtual firmware upgrade interface to the first virtual machine as a virtual device, that is, transmits an upgrade interface address of the firmware to be upgraded to the first virtual machine, and the first virtual machine can access the firmware to be upgraded. And the first virtual machine upgrades the firmware to be upgraded through a firmware upgrading tool.
According to the firmware upgrading method of the physical host, after the physical host receives a firmware upgrading instruction, a first virtual machine running on the physical host is started, an upgrading interface of firmware to be upgraded is subjected to virtualization processing, the generated virtual firmware upgrading interface is used as virtual equipment to be transmitted to the first virtual machine, the firmware to be upgraded is upgraded through a firmware upgrading tool by the first virtual machine, and therefore in-band upgrading of the firmware in the physical host is achieved.
Referring to fig. 2, fig. 2 is a flowchart illustrating another method for upgrading firmware of a physical host according to the present disclosure. The firmware upgrading method is applied to a physical host and comprises the following steps:
step S201: and responding to the firmware upgrading instruction, and starting the first virtual machine.
The firmware upgrading instruction carries an identifier of firmware to be upgraded, the first virtual machine runs on the physical host, and the first virtual machine is provided with a firmware upgrading tool.
Step S202: and determining the firmware to be upgraded according to the firmware upgrading instruction.
Step S203: the upgrading interface of the firmware to be upgraded is virtualized, the virtual firmware upgrading interface is transmitted to the first virtual machine in a passthrough mode, and the first virtual machine upgrades the firmware to be upgraded through a firmware upgrading tool.
After the physical host virtualizes the upgrade interface of the firmware to be upgraded, the virtual firmware upgrade interface is transmitted to the first virtual machine in a passthrough manner (direct transmission manner), and the first virtual machine upgrades the firmware to be upgraded by the firmware upgrade tool.
In addition, during the process that the first virtual machine upgrades the firmware through the firmware upgrading tool, a passthrough mode can also be adopted for data transmission.
Fig. 3 shows a system architecture of a physical host, which includes a hardware layer, a virtual machine monitoring unit VMM, and at least one virtual machine controlled by the VMM, specifically VM1, VM2, and VM3 in fig. 3, where VM1 is the first virtual machine provided with a firmware upgrade tool in this application, and the hardware layer is provided with a plurality of hardware and firmware.
In the method for upgrading the firmware of the physical host shown in fig. 2 of the present application, when the virtual firmware upgrade interface is transmitted to the first virtual machine and the firmware is upgraded by the firmware upgrade tool, a passhrough manner is adopted, so that the data is transmitted through the VMM, the process of data transmission is faster, and the in-band upgrade of the firmware is completed quickly.
In the method for upgrading the firmware of the physical host disclosed above, the following steps may also be provided: and removing the first virtual machine after the firmware upgrading is completed.
That is to say, after the firmware in the physical host is upgraded, the physical host removes the first virtual machine, that is, closes the first virtual machine, thereby saving more hardware resources, and the saved hardware resources can be allocated to other virtual machines.
Optionally, in the above-disclosed firmware upgrading method of a physical host, the physical host may further transmit firmware upgrade package information to the first virtual machine, where the firmware upgrade package information at least includes version information of the firmware upgrade package. Correspondingly, the first virtual machine obtains the firmware upgrade package of the version in the process of upgrading the firmware to be upgraded through the firmware upgrade tool, so that the firmware is upgraded to the corresponding version.
Optionally, the firmware upgrade package information transmitted by the physical host to the first virtual machine includes version information of the firmware upgrade package and a download address of the version firmware upgrade package. Correspondingly, in the process of upgrading the firmware to be upgraded through the firmware upgrading tool, the first virtual machine obtains the firmware upgrading packet of the version based on the download address, so that the firmware is upgraded to the corresponding version, and the problem of obtaining a malicious firmware upgrading packet can be avoided.
Referring to fig. 4, fig. 4 is a flowchart illustrating another method for upgrading firmware of a physical host according to the present disclosure.
The firmware upgrading method is applied to a virtual machine, the virtual machine runs on a physical host, and the virtual machine is provided with a firmware upgrading tool. The firmware upgrading method comprises the following steps:
step S401: and receiving a virtual firmware upgrading interface transmitted by the physical host.
The virtual firmware upgrading interface is generated by the physical host responding to a firmware upgrading instruction to perform virtualization processing on the upgrading interface of the firmware to be upgraded. The virtual machine is internally provided with a driver for identifying a virtual firmware upgrading interface.
In one embodiment, the virtual machine is started by the physical host after the physical host receives the firmware upgrade instruction.
Step S402: and upgrading the firmware to be upgraded in the physical host through a firmware upgrading tool.
And after the virtual machine receives the virtual firmware upgrading interface, upgrading the firmware to be upgraded in the physical host by using a built-in firmware upgrading tool.
According to the firmware upgrading method of the physical host, the firmware upgrading tool is arranged in the virtual machine, and after the virtual machine receives the virtual firmware upgrading interface transmitted by the physical host, the firmware to be upgraded in the physical host is upgraded through the built-in firmware upgrading tool, so that in-band upgrading of the firmware in the physical host is completed.
Referring to fig. 5, fig. 5 is a flowchart illustrating another method for upgrading firmware of a physical host according to the present disclosure.
The firmware upgrading method is applied to a virtual machine, the virtual machine runs on a physical host, and the virtual machine is provided with a firmware upgrading tool. The firmware upgrading method comprises the following steps:
step S501: and receiving a virtual firmware upgrading interface transmitted by the physical host.
The virtual firmware upgrading interface is generated by the physical host responding to a firmware upgrading instruction to perform virtualization processing on the upgrading interface of the firmware to be upgraded. The virtual machine is internally provided with a driver for identifying a virtual firmware upgrading interface.
Step S501: and acquiring a firmware upgrade package of the firmware to be upgraded.
In one embodiment, the virtual machine obtains a firmware upgrade package of a latest version of the firmware to be upgraded from a local storage medium, or obtains a firmware upgrade package of a latest version of the firmware to be upgraded via a network.
As another embodiment, the physical host further communicates firmware upgrade package information to the virtual machine, the firmware upgrade package information including at least version information of the firmware upgrade package. And the virtual machine obtains the firmware upgrading packet of the version from a local storage medium or obtains the firmware upgrading packet of the version through a network based on the firmware upgrading packet information transmitted by the physical host.
As another embodiment, the physical host further transmits firmware upgrade package information to the virtual machine, the firmware upgrade package information including at least version information of the firmware upgrade package and a download address of the version firmware upgrade package. And the virtual machine obtains the firmware upgrading package of the version based on the download address transmitted by the physical host. Based on the implementation mode, the virtual machine obtains the firmware upgrade package of the specified version at the download address specified by the physical host, so that the problem of obtaining the malicious firmware upgrade package can be avoided.
Step S501: and upgrading the firmware to be upgraded by using the firmware upgrading package by the firmware upgrading tool.
After the virtual machine obtains a firmware upgrade package of the firmware to be upgraded, the firmware upgrade package is used by a built-in firmware upgrade tool to upgrade the firmware to be upgraded in the physical host.
In the firmware upgrading method of the physical host shown in fig. 5, a firmware upgrading tool is built in the virtual machine, the virtual machine obtains a firmware upgrading package of the firmware to be upgraded after receiving a virtual firmware upgrading interface transmitted by the physical host, and the firmware upgrading tool upgrades the firmware to be upgraded in the physical host by using the firmware upgrading package to complete in-band upgrading of the firmware in the physical host.
The present application also discloses a physical host, which is structured as shown in fig. 6, and includes a processor 100 and a memory 200, and at least one virtual machine runs on the physical host.
The processor 100 is configured to: responding to a firmware upgrading instruction, starting a first virtual machine, wherein the first virtual machine runs on a physical host, the first virtual machine is provided with a firmware upgrading tool, and the firmware upgrading instruction carries an identifier of firmware to be upgraded; determining a firmware to be upgraded according to the firmware upgrading instruction; and performing virtualization processing on an upgrading interface of the firmware to be upgraded, transmitting the virtual firmware upgrading interface to the first virtual machine, and upgrading the firmware to be upgraded by the first virtual machine through a firmware upgrading tool.
The application discloses a physical host runs with at least one virtual machine, wherein a first virtual machine is provided with a firmware upgrading tool, the physical host starts the first virtual machine after receiving a firmware upgrading instruction, an upgrading interface of a firmware to be upgraded is subjected to virtualization processing, the generated virtual firmware upgrading interface is used as a virtual device to be transmitted to the first virtual machine, the firmware to be upgraded is upgraded through the firmware upgrading tool by the first virtual machine, and therefore in-band upgrading of the firmware in the physical host is achieved.
Optionally, in the aspect of transferring the virtual firmware upgrade interface to the first virtual machine, the processor 100 is specifically configured to: the processor 100 transfers the virtual firmware upgrade interface to the first virtual machine in a passthrough manner.
In addition, during the process that the first virtual machine upgrades the firmware through the firmware upgrading tool, a passthrough mode can also be adopted for data transmission.
Optionally, the processor 100 is further configured to: and removing the first virtual machine after the firmware upgrading is completed.
That is to say, after the firmware in the physical host is upgraded, the physical host removes the first virtual machine, that is, closes the first virtual machine, thereby saving more hardware resources, and the saved hardware resources can be allocated to other virtual machines.
The application also discloses a virtual machine, which runs on a physical host and is provided with a firmware upgrading tool, wherein the virtual machine comprises a virtual processor.
The virtual processor is configured to: receiving a virtual firmware upgrading interface transmitted by a physical host, wherein the virtual firmware upgrading interface is generated by virtualizing an upgrading interface of firmware to be upgraded by the physical host in response to a firmware upgrading instruction; and upgrading the firmware to be upgraded by a firmware upgrading tool.
The virtual machine runs on a physical host, and is provided with a firmware upgrading tool, and after receiving a virtual firmware upgrading interface transmitted by the physical host, the virtual machine upgrades firmware to be upgraded in the physical host through the built-in firmware upgrading tool to complete in-band upgrading of the firmware in the physical host.
Optionally, in the aspect of upgrading the firmware to be upgraded by the firmware upgrading tool, the virtual processor is configured to: acquiring a firmware upgrading package of firmware to be upgraded; and upgrading the firmware to be upgraded by using the firmware upgrading package by using the firmware upgrading tool.
In one embodiment, the virtual processor obtains a firmware upgrade package of a latest version of the firmware to be upgraded from a local storage medium or obtains a firmware upgrade package of a latest version of the firmware to be upgraded via a network.
As another embodiment, the physical host further communicates firmware upgrade package information to the virtual machine, the firmware upgrade package information including at least version information of the firmware upgrade package. And the virtual processor obtains the firmware upgrading packet of the version from a local storage medium or obtains the firmware upgrading packet of the version through a network based on the firmware upgrading packet information transmitted by the physical host.
As another embodiment, the physical host further transmits firmware upgrade package information to the virtual machine, the firmware upgrade package information including at least version information of the firmware upgrade package and a download address of the version firmware upgrade package. The virtual processor obtains the firmware upgrade package of the version based on the download address transmitted by the physical host. Based on the implementation mode, the virtual machine obtains the firmware upgrade package of the specified version at the download address specified by the physical host, so that the problem of obtaining the malicious firmware upgrade package can be avoided.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the physical host and the virtual machine disclosed by the embodiment, the description is relatively simple because the physical host and the virtual machine correspond to the method disclosed by the embodiment, and the relevant points can be referred to the method part for explanation.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A firmware upgrading method of a physical host, wherein the firmware upgrading method is applied to the physical host, the physical host is used for running a virtual machine, and the firmware upgrading method comprises the following steps:
responding to a firmware upgrading instruction, starting a first virtual machine, wherein the first virtual machine runs on the physical host, and is provided with a firmware upgrading tool, and the firmware upgrading instruction carries an identifier of firmware to be upgraded;
determining the firmware to be upgraded according to the firmware upgrading instruction;
and performing virtualization processing on an upgrading interface of the firmware to be upgraded, transmitting a virtual firmware upgrading interface to the first virtual machine, and upgrading the firmware to be upgraded by the first virtual machine through the firmware upgrading tool.
2. The firmware upgrade method according to claim 1, wherein the passing a virtual firmware upgrade interface to the first virtual machine comprises:
and transmitting the virtual firmware upgrading interface to the first virtual machine in a passthrough direct transmission mode.
3. The firmware upgrade method according to claim 1 or 2, further comprising: and removing the first virtual machine after the firmware upgrading is finished.
4. A firmware upgrading method of a physical host is characterized in that the firmware upgrading method is applied to a virtual machine, the virtual machine runs on the physical host, the virtual machine is provided with a firmware upgrading tool, and the firmware upgrading method comprises the following steps:
receiving a virtual firmware upgrading interface transmitted by the physical host, wherein the virtual firmware upgrading interface is generated by virtualizing an upgrading interface of firmware to be upgraded by the physical host in response to a firmware upgrading instruction;
and upgrading the firmware to be upgraded by the firmware upgrading tool.
5. The firmware upgrading method according to claim 4, wherein the upgrading the firmware to be upgraded by the firmware upgrading tool includes:
acquiring a firmware upgrading package of the firmware to be upgraded;
and upgrading the firmware to be upgraded by using the firmware upgrading package by the firmware upgrading tool.
6. A physical host comprising a processor and a memory, at least one virtual machine running on the physical host;
the processor is configured to: responding to a firmware upgrading instruction, starting a first virtual machine, wherein the first virtual machine runs on the physical host, and is provided with a firmware upgrading tool, and the firmware upgrading instruction carries an identifier of firmware to be upgraded; determining the firmware to be upgraded according to the firmware upgrading instruction; and performing virtualization processing on an upgrading interface of the firmware to be upgraded, transmitting a virtual firmware upgrading interface to the first virtual machine, and upgrading the firmware to be upgraded by the first virtual machine through the firmware upgrading tool.
7. The physical host according to claim 6, wherein the processor, in communicating the virtual firmware upgrade interface to the first virtual machine, is specifically configured to: and transmitting the virtual firmware upgrading interface to the first virtual machine in a passthrough direct transmission mode.
8. The physical host of claim 6 or 7, wherein the processor is further configured to: and removing the first virtual machine after the firmware upgrading is finished.
9. A virtual machine, wherein the virtual machine runs on a physical host, the virtual machine is provided with a firmware upgrading tool, and the virtual machine comprises a virtual processor;
the virtual processor is to: receiving a virtual firmware upgrading interface transmitted by the physical host, wherein the virtual firmware upgrading interface is generated by virtualizing an upgrading interface of firmware to be upgraded by the physical host in response to a firmware upgrading instruction; and upgrading the firmware to be upgraded by a firmware upgrading tool.
10. The virtual machine according to claim 9, wherein the virtual processor, in upgrading the firmware to be upgraded by a firmware upgrade tool, is configured to: acquiring a firmware upgrading package of the firmware to be upgraded; and upgrading the firmware to be upgraded by using the firmware upgrading package by the firmware upgrading tool.
CN201810001125.4A 2018-01-02 2018-01-02 Firmware upgrading method of physical host, physical host and virtual machine Active CN108108177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810001125.4A CN108108177B (en) 2018-01-02 2018-01-02 Firmware upgrading method of physical host, physical host and virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810001125.4A CN108108177B (en) 2018-01-02 2018-01-02 Firmware upgrading method of physical host, physical host and virtual machine

Publications (2)

Publication Number Publication Date
CN108108177A CN108108177A (en) 2018-06-01
CN108108177B true CN108108177B (en) 2020-10-27

Family

ID=62218418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810001125.4A Active CN108108177B (en) 2018-01-02 2018-01-02 Firmware upgrading method of physical host, physical host and virtual machine

Country Status (1)

Country Link
CN (1) CN108108177B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633131B (en) * 2019-09-16 2022-05-31 东软集团股份有限公司 Method, device, equipment and system for virtualizing firmware
CN113031999A (en) * 2021-03-25 2021-06-25 山东英信计算机技术有限公司 Method, device and equipment for controlling firmware upgrade of server component and storage medium
CN113242288B (en) * 2021-05-06 2022-03-08 国家计算机网络与信息安全管理中心 Internet of things equipment firmware upgrading method, system and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046749A (en) * 2006-03-31 2007-10-03 联想(北京)有限公司 Chip firmware updating method
CN104572179A (en) * 2014-12-19 2015-04-29 华为技术有限公司 IAAS (infrastructure as a service) software upgrading method and device
CN106301876A (en) * 2015-06-26 2017-01-04 中兴通讯股份有限公司 Physical machine upgrade method, business migration method and device
CN106325859A (en) * 2016-08-12 2017-01-11 华为技术有限公司 Method for installing driver and server
CN106528226A (en) * 2016-10-31 2017-03-22 紫光华山信息技术有限公司 Operation system installation method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9626221B2 (en) * 2015-02-24 2017-04-18 Red Hat Israel, Ltd. Dynamic guest virtual machine identifier allocation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046749A (en) * 2006-03-31 2007-10-03 联想(北京)有限公司 Chip firmware updating method
CN104572179A (en) * 2014-12-19 2015-04-29 华为技术有限公司 IAAS (infrastructure as a service) software upgrading method and device
CN106301876A (en) * 2015-06-26 2017-01-04 中兴通讯股份有限公司 Physical machine upgrade method, business migration method and device
CN106325859A (en) * 2016-08-12 2017-01-11 华为技术有限公司 Method for installing driver and server
CN106528226A (en) * 2016-10-31 2017-03-22 紫光华山信息技术有限公司 Operation system installation method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
USB设备固件升级系统的设计与开发;刘婷;《单片机与嵌入式系统应用》;20060915(第09期);I137-25 *

Also Published As

Publication number Publication date
CN108108177A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
US11886903B2 (en) Continuous uptime of guest virtual machines during upgrade of a virtualization host device
US7971203B2 (en) Method, apparatus and system for dynamically reassigning a physical device from one virtual machine to another
US8151265B2 (en) Apparatus for and method for real-time optimization of virtual machine input/output performance
KR102269452B1 (en) Supporting multiple operating system environments in computing device without contents conversion
US20160210168A1 (en) Reconfiguring virtual machines
CN106911729B (en) Remote installation method of operating system suitable for domestic processor
CN110032413B (en) Desktop virtualization method, related equipment and computer storage medium
US20170371683A1 (en) Provisioning the hyper-converged infrastructure bare metal systems from the top of the rack switch
CN108108177B (en) Firmware upgrading method of physical host, physical host and virtual machine
US10459802B2 (en) Backup image restore
US20070011444A1 (en) Method, apparatus and system for bundling virtualized and non-virtualized components in a single binary
US10185548B2 (en) Configuring dependent services associated with a software package on a host system
US10360043B2 (en) Installation of device drivers from virtual media
CN110162397B (en) Resource allocation method, device and system
CN111209080A (en) Transparent transmission method for graphic processor
CN114691300A (en) Hot migration method of virtual machine instance
US20160154661A1 (en) Systems and methods for virtual machine attribution with hardware information
CN113849272A (en) Method and device for adding GPU (graphics processing Unit) resources in virtual machine
CN109656675B (en) Bus equipment, computer equipment and method for realizing physical host cloud storage
CN115480931A (en) Inter-core communication processing method and device and computer system
US10467173B2 (en) Hot plugging of virtual bridges in a virtual PCI system
CN113282342A (en) Deployment method, device, system, electronic equipment and readable storage medium
EP3543849A1 (en) Driver management method and host machine
US20150381766A1 (en) Application transfer system, application transfer method, terminal, and program
CN109039765B (en) Network configuration method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant