CN106371895A - Method for upgrading KVM (Kernel-based Virtual Machine) for de-virtualization - Google Patents

Method for upgrading KVM (Kernel-based Virtual Machine) for de-virtualization Download PDF

Info

Publication number
CN106371895A
CN106371895A CN201610802455.4A CN201610802455A CN106371895A CN 106371895 A CN106371895 A CN 106371895A CN 201610802455 A CN201610802455 A CN 201610802455A CN 106371895 A CN106371895 A CN 106371895A
Authority
CN
China
Prior art keywords
virtual machine
upgrading
configuration
kvm
virtualization
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.)
Pending
Application number
CN201610802455.4A
Other languages
Chinese (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.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud Technology 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 G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201610802455.4A priority Critical patent/CN106371895A/en
Publication of CN106371895A publication Critical patent/CN106371895A/en
Pending legal-status Critical Current

Links

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
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Landscapes

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

Abstract

The invention relates to the technical field of cloud computing, in particular to a method for upgrading a KVM (Kernel-based Virtual Machine) for de-virtualization. The method comprises the following steps: firstly, upgrading a QEMU version; finding an LIBVIRT configuration file corresponding to the virtual machine; editing the configuration file, upgrading a QEMU emulator, shielding system virtualization information of the virtual machine, and solving the problem that a VNC (Virtual Network Computer) cannot be connected; redefining the virtual machine and starting. By adopting the method, virtualization information shielding for the KVM is realized, and correct installation and use of software and applications on the virtual machine are ensured.

Description

A kind of upgrading kvm virtual machine goes virtualized method
Technical field
The present invention relates to field of cloud computer technology, particularly one kind upgrading kvm virtual machine go virtualized method.
Background technology
The rise of cloud computing, allow increasing user start select using can elastic telescopic extension resources of virtual machine. User buys or is typically necessary after renting virtual machine in the software of deployment some oneself installed above and application, but at present Some special software such and application are existed on market, they cannot be supported with virtualization letter when installation and deployment The dummy machine system of breath.
Pin is in this regard, a kind of method wanting scalable virtual machine to go virtualization information is badly in need of in virtual machine provider, to meet use Family needs the demand of installation and deployment special software and application on a virtual machine.
qemu/kvm
Kvm is an Intel Virtualization Technology module of linux, after physics linux node is loaded with module, could lead to further Cross other instrument creation virtual machines.But only kvm module is far from being enough, because user cannot directly control kernel module to go Do work it is necessary to have the instrument of a user's space, the exactly such a virtualization software increased income of qemu.Kvm makes With a part of qemu, and slightly transform, just become the user's space instrument of controllable kvm.
libvirt/dump
Libvrt is the c function library that under a set of free, support linux of increasing income, main flow virtualizes instrument.Current popular Cloud platform all manages the resources of virtual machine of oneself using libvirt.Libvirt provides a kind of configuration file of xml form Libvirt.xml is in order to define the various configuration informations of resources of virtual machine.Virtual machine using libvirt management can use it Dump instrument (virsh dumpxml) is checking the virtual machine configuration information in being currently running.
Content of the invention
Present invention solves the technical problem that being that proposing a kind of upgrading kvm virtual machine goes virtualized method, overcomes The resources of virtual machine of current cloud platform provider generally existing carries virtualization relevant information, user's special software and application cannot The problem of installation and deployment on a virtual machine.
The technical scheme that the present invention solves above-mentioned technical problem is:
Described method is upgrading qemu version, searches virtual machine and corresponds to libvirt configuration file, edits configuration file liter Level qemu simulator, shielding dummy machine system virtualization information and solution vnc cannot connect, and redefine virtual machine and start.
After redefining virtual machine and starting, correct upgrading is confirmed by dump virtual machine libvirt configuration file;
Described confirm that correct upgrading refers to check whether virtual machine configuration comprises described above interpolation and modification Libvirt configuration item.
Described qemu is a virtualization simulator software, simulates the various different hardware resources of virtual machine use; Version is more than 2.1;
Described libvirt is main flow virtualization instrument under linux, provides institute needed for the management of virtual machine whole life cycle There are interface and command operation;Described libvirt configuration file is a kind of configuration file of xml form, it is possible to use its definition The various configuration informations of resources of virtual machine;
Described vnc is a remote control tool software, provides the Telnet of virtual machine to control.
Described upgrading qemu version further includes:
Qemu source software bag is downloaded in networking;
Decompress and compile source software bag;
Executable file after copy compiling is to virtual machine place physical node;
Qemu simulator in edit-modify virtual machine libvirt configuration file;
Editor's libvirt configuration file adds vnc configuration.
Described virtualization information includes cpu virtualization information, internal memory virtualization information, io virtualization information;
Described shielding dummy machine system virtualization information refers to that not allowing dummy machine system recognize lays oneself open to virtualization On platform, correctly install and deploy use with ensure software in virtual machine and application.
The described virtual machine that redefines further includes:
Close the virtual machine being currently running;
Cancel defined virtual machine configuration;
Define virtual machine using virtual machine configuration.
The present invention program has the beneficial effect that:
1st, the present invention provides a kind of upgrading kvm virtual machine to go virtualized method, comprises to provide a kind of establishment non-with void The kvm virtual machine method of planization information, the resources of virtual machine solving current cloud platform provider generally existing carries virtualization Relevant information, user's special software and application cannot installation and deployment on a virtual machine problem.
2nd, the method for the present invention provides the virtualization relevant information on shielding dummy machine system, enhances cloud platform virtualization The transparency of resource, improves the using experience degree to resources of virtual machine for the user.
Brief description
The present invention is further described below in conjunction with the accompanying drawings:
Fig. 1 is the flow chart of the present invention.
Specific embodiment
Refer to Fig. 1, a kind of upgrading kvm virtual machine being provided by the embodiment of the present invention removes virtualized method flow Figure.Separately below its each flow process is implemented and be described.
Qemu on Virtual Machine Manager person's upgrading virtual machine place physical node first.Here we are to be upgraded to Illustrate as a example qemu2.5.
Qemu2.5 software kit qemu_2.5_x86_64.tar.gz is downloaded in networking, and is copied to virtual machine place thing Reason node respective directories.Qemu_2.5_x86_64.tar.gz carried out decompress, compile executable file after generation compiling, here The executable file path generating is /root/qemu25/qemu/x86_64-softmmu/qemu-system-x86_64.
Manager searches virtual machine corresponding libvirt configuration file place path, and execution is such as issued orders:
[root@gcloud51107~] #find/cephfilesystem/-name i-39d93b71
/cephfilesystem/instances/config/cc81efe719bf4b05a3c21524ccf6clea/i- 39d93b71
Then the qemu simulator in modification upgrading virtual machine configuration file, that is, change:
< emulator >/usr/libexec/qemu-kvm </emulator >
For
< emulator >/root/qemu25/qemu/x86_64-softmmu/qemu-system-x86_64 </ Emulator >
Simultaneously increase smm=off relevant configuration, solve the problems, such as qemu2.5 cannot vnc it may be assumed that
Continue upgrading modification libvirt configuration file, shield virtualization information in dummy machine system, virtual to shield here Illustrate as a example machine cpuid.Increase characteristic item in<featrues>configuration item, specific as follows:
< kvm >
<hidden state=' on '/>
</kvm>
Then virtual machine is carried out redefining with configuration file operation:
Virsh shutdown i-39d93b71//closing virtual machine
Virsh undefine i-39d93b71//cancellation virtual machine configuration definition
Virsh define libvirt.xml//definition virtual machine configuration
Virsh start i-39d93b71//startup virtual machine
Last its libvrit configuration file of dump on the physical node that virtual machine is located, confirms that virtual machine is correctly upgraded.
Virsh dumpxml i-39d93b71//i-39d93b71 is virtual machine id
Implementing result is as follows:
Embodiments described above is only a part of embodiment of the present invention, rather than whole embodiments.Based on this Embodiment in bright, those of ordinary skill in the art are not making the obtained scheme of substantive creation, broadly fall into the present invention The scope of protection.

Claims (10)

1. a kind of upgrading kvm virtual machine goes virtualized method it is characterised in that described method is upgrading qemu version, looks into Virtual machine is looked for correspond to libvirt configuration file, editor's configuration file upgrading qemu simulator, shielding dummy machine system virtualization letter Breath and solution vnc cannot connect, and redefine virtual machine and start.
2. upgrading kvm virtual machine according to claim 1 goes virtualized method it is characterised in that redefining virtual Machine simultaneously confirms correct upgrading by dump virtual machine libvirt configuration file after starting;
Described confirm that correct upgrading refers to check whether virtual machine configuration comprises described above interpolation and modification Libvirt configuration item.
3. upgrading kvm virtual machine according to claim 1 go virtualized method it is characterised in that
Described qemu is a virtualization simulator software, simulates the various different hardware resources of virtual machine use;Version For more than 2.1;
Described libvirt is main flow virtualization instrument under linux, provides all needed for the management of virtual machine whole life cycle connecing Mouth and command operation;Described libvirt configuration file is a kind of configuration file of xml form, it is possible to use its definition is virtual The various configuration informations of machine resource;
Described vnc is a remote control tool software, provides the Telnet of virtual machine to control.
4. the upgrading kvm virtual machine according to claim 1,2 or 3 goes virtualized method it is characterised in that described liter Level qemu version further includes:
Qemu source software bag is downloaded in networking;
Decompress and compile source software bag;
Executable file after copy compiling is to virtual machine place physical node;
Qemu simulator in edit-modify virtual machine libvirt configuration file;
Editor's libvirt configuration file adds vnc configuration.
5. the upgrading kvm virtual machine according to claim 1,2 or 3 goes virtualized method it is characterised in that described void Planization information includes cpu virtualization information, internal memory virtualization information, io virtualization information;
Described shielding dummy machine system virtualization information refers to that not allowing dummy machine system recognize lays oneself open to virtual platform On, correctly install and deploy use with ensure software in virtual machine and application.
6. want the upgrading kvm virtual machine described in 4 to go virtualized method it is characterised in that described virtualization is believed according to right Breath includes cpu virtualization information, internal memory virtualization information, io virtualization information;
Described shielding dummy machine system virtualization information refers to that not allowing dummy machine system recognize lays oneself open to virtual platform On, correctly install and deploy use with ensure software in virtual machine and application.
7. the upgrading kvm virtual machine according to claim 1,2 or 3 go virtualized method it is characterised in that
The described virtual machine that redefines further includes:
Close the virtual machine being currently running;
Cancel defined virtual machine configuration;
Define virtual machine using virtual machine configuration.
8. upgrading kvm virtual machine according to claim 4 go virtualized method it is characterised in that
The described virtual machine that redefines further includes:
Close the virtual machine being currently running;
Cancel defined virtual machine configuration;
Define virtual machine using virtual machine configuration.
9. upgrading kvm virtual machine according to claim 5 go virtualized method it is characterised in that
The described virtual machine that redefines further includes:
Close the virtual machine being currently running;
Cancel defined virtual machine configuration;
Define virtual machine using virtual machine configuration.
10. upgrading kvm virtual machine according to claim 6 go virtualized method it is characterised in that
The described virtual machine that redefines further includes:
Close the virtual machine being currently running;
Cancel defined virtual machine configuration;
Define virtual machine using virtual machine configuration.
CN201610802455.4A 2016-09-04 2016-09-04 Method for upgrading KVM (Kernel-based Virtual Machine) for de-virtualization Pending CN106371895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610802455.4A CN106371895A (en) 2016-09-04 2016-09-04 Method for upgrading KVM (Kernel-based Virtual Machine) for de-virtualization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610802455.4A CN106371895A (en) 2016-09-04 2016-09-04 Method for upgrading KVM (Kernel-based Virtual Machine) for de-virtualization

Publications (1)

Publication Number Publication Date
CN106371895A true CN106371895A (en) 2017-02-01

Family

ID=57900400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610802455.4A Pending CN106371895A (en) 2016-09-04 2016-09-04 Method for upgrading KVM (Kernel-based Virtual Machine) for de-virtualization

Country Status (1)

Country Link
CN (1) CN106371895A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861792A (en) * 2017-11-06 2018-03-30 郑州云海信息技术有限公司 A kind of virtual machine management method and device based on Libvirt
US11875174B2 (en) 2018-09-30 2024-01-16 Huawei Technologies Co., Ltd. Method and apparatus for virtual machine emulator upgrading virtualization emulator

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503825A (en) * 2014-12-29 2015-04-08 西安电子科技大学 Mixed type equipment virtualization method based on KVM (Kernel-based Virtual Machine)
CN105700826A (en) * 2015-12-31 2016-06-22 华为技术有限公司 Virtualization method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503825A (en) * 2014-12-29 2015-04-08 西安电子科技大学 Mixed type equipment virtualization method based on KVM (Kernel-based Virtual Machine)
CN105700826A (en) * 2015-12-31 2016-06-22 华为技术有限公司 Virtualization method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ALEX WILLIAMSON: "Add new "kvm" domain feature and ability to hide KVM signature", 《HTTPS://WWW.REDHAT.COM/ARCHIVES/LIBVIR-LIST/2014-AUGUST/MSG00744.HTML》 *
说话的白菜: "使用libvirt管理kvm(virsh篇)", 《HTTPS://BLOG.51CTO.COM/SPEAKINGBAICAI/1161964》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861792A (en) * 2017-11-06 2018-03-30 郑州云海信息技术有限公司 A kind of virtual machine management method and device based on Libvirt
US11875174B2 (en) 2018-09-30 2024-01-16 Huawei Technologies Co., Ltd. Method and apparatus for virtual machine emulator upgrading virtualization emulator

Similar Documents

Publication Publication Date Title
Olivier et al. A binary-compatible unikernel
US8713566B2 (en) Method and system for delivering and executing virtual container on logical partition of target computing device
Koranne Handbook of open source tools
Guo CDE: A tool for creating portable experimental software packages
KR20070049095A (en) Servicing a component-base software product
CN100492387C (en) Method and system for software protected development based on Keil C51
CN110059456B (en) Code protection method, code protection device, storage medium and electronic equipment
US9383985B2 (en) Automated modification of pre-generated MSI packaged applications
CN102930190B (en) A kind of method stoping user to obtain superuser right in Android system
CN104484169A (en) Android software user interface generating method and system and Android application system
CN104503778A (en) Installation method and installation device for applications
CN103713902A (en) Method and system for BOA compiling based on Android system
CN106648827A (en) Method for online adding virtual machine resources
CN103793242A (en) Quick information system deploying method on basis of virtual computing environment
Andrus et al. Cider: Native execution of ios apps on android
Cerling et al. Mastering Microsoft Virtualization
CN109408101A (en) A kind of code development maintaining method and electronic equipment for programming
CN106371895A (en) Method for upgrading KVM (Kernel-based Virtual Machine) for de-virtualization
Peiro et al. PaRTiKle OS, a replacement for the core of RTLinux-GPL
CN101840337B (en) Method for customizing reducing system applied to packet capture application
Cartwright et al. Automating the design of mlut mpsopc fpgas in the cloud
US11188361B1 (en) Cross-architecture software distribution using a virtual instruction set architecture
CN101470657A (en) Verification method for BIOS refreshing content
US20230093197A1 (en) Generating executables for target operational environments
Ye Android System Programming

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170201