[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106878082A - A kind of Microsoft Loopback Adapter thermomigration process and its device - Google Patents

A kind of Microsoft Loopback Adapter thermomigration process and its device Download PDF

Info

Publication number
CN106878082A
CN106878082A CN201710113469.XA CN201710113469A CN106878082A CN 106878082 A CN106878082 A CN 106878082A CN 201710113469 A CN201710113469 A CN 201710113469A CN 106878082 A CN106878082 A CN 106878082A
Authority
CN
China
Prior art keywords
microsoft loopback
loopback adapter
bridge
vacation
virtual machine
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.)
Granted
Application number
CN201710113469.XA
Other languages
Chinese (zh)
Other versions
CN106878082B (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710113469.XA priority Critical patent/CN106878082B/en
Publication of CN106878082A publication Critical patent/CN106878082A/en
Application granted granted Critical
Publication of CN106878082B publication Critical patent/CN106878082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of Microsoft Loopback Adapter thermomigration process and its device, including perform pre-set commands;Pre-set commands include two subcommands, and the first subcommand is used to delete the connecting interface of the Microsoft Loopback Adapter on former vacation bridge;Second subcommand is used to be created on purpose vacation bridge the connecting interface of the same name of Microsoft Loopback Adapter;The network interface card connection status in the corresponding xml document of virtual machine is updated according to the title of purpose vacation bridge.The present invention does not close virtual machine in transition process, and the order of the order and newly-built connection that transition process is broken into connection is arranged in an order, can as far as possible avoid transition process from the situation of network interruption occur.

Description

A kind of Microsoft Loopback Adapter thermomigration process and its device
Technical field
The present invention relates to technical field of virtualization, more particularly to a kind of Microsoft Loopback Adapter thermomigration process and its device.
Background technology
With the development of Intel Virtualization Technology, the application of virtual machine is more and more extensive, based on open source software Openvswitch (OVS) in virtualized network environment, virtual bridge that network in virtual environment is created by OVS and false bridge etc. are constituted, wherein, The Microsoft Loopback Adapter of virtual machine is connected with false bridge and is connected virtual bridge by false bridge, and virtual bridge connects physical network card, from And realize the transmission of information and receive.
When the network of virtual machine needs to change, then need to carry out the migration of Microsoft Loopback Adapter, Microsoft Loopback Adapter is migrated at present Mode needs the connection for interrupting Microsoft Loopback Adapter to be migrated, and virtual machine is then restarted again, and this mode can cause on virtual machine Network interruption, influences the operation of Network.
Therefore, how to provide a kind of Microsoft Loopback Adapter thermomigration process and its device that need not turn off virtual machine is this area Technical staff needs the problem for solving at present.
The content of the invention
It is an object of the invention to provide a kind of Microsoft Loopback Adapter thermomigration process and its device, void is not closed in transition process Plan machine, and can as far as possible avoid transition process from the situation of network interruption occur.
In order to solve the above technical problems, the invention provides a kind of Microsoft Loopback Adapter thermomigration process of virtual machine, including:
Perform pre-set commands;The pre-set commands include two subcommands, and the first subcommand is used to delete former vacation bridge The Microsoft Loopback Adapter connecting interface;Second subcommand is used to create the of the same name of the Microsoft Loopback Adapter on purpose vacation bridge Connecting interface;
The network interface card connection status in the corresponding xml document of virtual machine is updated according to the title of purpose vacation bridge.
Preferably, the pre-set commands are specially OVS orders, and first subcommand is OVS interface ON- and OFF- commands, described Second subcommand is the newly-built order of OVS interfaces.
Preferably, after the execution pre-set commands, also include:
Reset the QoS configuration parameters of the Microsoft Loopback Adapter.
Preferably, the QoS configuration parameters include the speed and peak value of the Microsoft Loopback Adapter.
In order to solve the above technical problems, present invention also offers a kind of Microsoft Loopback Adapter thermophoresis device of virtual machine, including:
Transferring module, for performing pre-set commands;The pre-set commands include two subcommands, and the first subcommand is used to delete Except the connecting interface of the Microsoft Loopback Adapter on former vacation bridge;Second subcommand is used to create described virtual on purpose vacation bridge The connecting interface of the same name of network interface card;
File update module, in the corresponding xml document of title renewal virtual machine according to purpose vacation bridge Network interface card connection status.
Preferably, also include:
Parameter reset module, the QoS configuration parameters for resetting the Microsoft Loopback Adapter.
The invention provides a kind of Microsoft Loopback Adapter thermomigration process and its device, migrate virtual by performing pre-set commands Network interface card, the pre-set commands include two parts, and a part is for disconnecting the connection between Microsoft Loopback Adapter and former vacation bridge, another part For setting up the connection between Microsoft Loopback Adapter and purpose vacation bridge, then according to the name modifications virtual machine correspondence of purpose vacation bridge Xml document.The order that the present invention will be switched off connection combines execution with the order of newly-built connection, it is ensured that Microsoft Loopback Adapter Migration order comes into force immediately, it is to avoid occur disconnecting network caused by long time interval between newly-built connection Interrupt, after it also avoid disconnecting cannot newly-built connection situation occur, the complete of Microsoft Loopback Adapter is carried out using an instruction Migration so that otherwise can successfully delete and create connection, otherwise cannot delete, will not be because of the order for disconnecting or new The order for building connection performs unsuccessful and middle circuit network.It can be seen that, the present invention need not turn off virtual machine, and can avoid as far as possible There is the situation of network interruption in transition process.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to institute in prior art and embodiment The accompanying drawing for needing to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also obtain according to these accompanying drawings Obtain other accompanying drawings.
A kind of flow chart of the process of the Microsoft Loopback Adapter thermomigration process of virtual machine that Fig. 1 is provided for the present invention;
A kind of structural representation of the Microsoft Loopback Adapter thermophoresis device of virtual machine that Fig. 2 is provided for the present invention.
Specific embodiment
Core of the invention is to provide a kind of Microsoft Loopback Adapter thermomigration process and its device, and void is not closed in transition process Plan machine, and can as far as possible avoid transition process from the situation of network interruption occur.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The invention provides a kind of Microsoft Loopback Adapter thermomigration process of virtual machine, shown in Figure 1, Fig. 1 is carried for the present invention A kind of flow chart of the process of the Microsoft Loopback Adapter thermomigration process of the virtual machine for supplying;The method includes:
Step s101:Perform pre-set commands;Pre-set commands include two subcommands, and the first subcommand is used to delete former vacation net The connecting interface of the Microsoft Loopback Adapter on bridge;Second subcommand is used to be created on purpose vacation bridge the connection of the same name of Microsoft Loopback Adapter Interface;
Step s102:The network interface card connection status in the corresponding xml document of virtual machine is updated according to the title of purpose vacation bridge.
It is understood that by updating the corresponding xml document of virtual machine, after ensure that next virtual machine is restarted, moving Shifting is not failed, that is, restart rear Microsoft Loopback Adapter and be still connected with purpose vacation bridge.
Specifically, pre-set commands are specially OVS orders, the first subcommand is OVS interface ON- and OFF- commands, and the second subcommand is The newly-built order of OVS interfaces.
For example, it is assumed that the entitled vnet0 of Microsoft Loopback Adapter, former bridge name and false bridge name be respectively srcbr and Srcfkbr, purpose bridge name and false bridge name are respectively destbr and destfkbr, can be realized using following OVS orders virtual The temporary migration of network interface card:
ovs-vsctl--del-port vnet0--add-port destfkbr vnet0
Wherein, ovs-vsctl del-port vnet0 are OVS interface ON- and OFF- commands;ovs-vsctl add-port Destfkbr vnet0 are the newly-built order of OVS interfaces.
Preferably, after step s101, also include:
Reset the QoS configuration parameters of Microsoft Loopback Adapter.
Wherein, QoS configuration parameters include the speed and peak value of Microsoft Loopback Adapter.
It is understood that after Microsoft Loopback Adapter migration, the QoS configurations of Microsoft Loopback Adapter may fail, the virtual net for being yes QoS configurations after card migration are normal, in addition it is also necessary to carried out the configuration of QoS again to Microsoft Loopback Adapter:
Ovs-vsctl set Interface vnet0 ingress_policing_rate=xxx# set the speed of network interface card Rate, xxx is integer, and unit is kb
Ovs-vsctl set Interface vnet0 ingress_policing_burst=yyy# set network interface card peak Value, yyy is integer, and unit is kb
In addition, the migration of step s101 is temporary migration, can be failed if virtual machine is restarted, therefore needed virtual net The connection status of card is updated to the corresponding xml document of virtual machine (be located at/etc/libvirt/qemu/ under), so as to ensure to restart (including normally restart, Startable, and pressure is restarted) migrate do not fail afterwards, modification content is as follows:
The invention provides a kind of Microsoft Loopback Adapter thermomigration process, Microsoft Loopback Adapter is migrated by performing pre-set commands, should Pre-set commands include two parts, and a part is used to build for disconnecting the connection between Microsoft Loopback Adapter and former vacation bridge, another part Connection between vertical Microsoft Loopback Adapter and purpose vacation bridge, then according to the corresponding xml of name modifications virtual machine of purpose vacation bridge File.The order that the present invention will be switched off connection combines execution with the order of newly-built connection, it is ensured that Microsoft Loopback Adapter is migrated Order immediately comes into force, it is to avoid occur disconnecting caused by time interval long between newly-built connection in network It is disconnected, after it also avoid disconnecting cannot the situation of newly-built connection occur, being instructed using one is carried out the complete of Microsoft Loopback Adapter and moves Move so that otherwise can successfully delete and create connection, otherwise cannot delete, will not be because of the order for disconnecting or newly-built The order of connection performs unsuccessful and middle circuit network.It can be seen that, the present invention need not turn off virtual machine, and can avoid moving as far as possible Move past journey and the situation of network interruption occur.
Shown in Figure 2 present invention also offers a kind of Microsoft Loopback Adapter thermophoresis device of virtual machine, Fig. 2 is the present invention A kind of structural representation of the Microsoft Loopback Adapter thermophoresis device of the virtual machine for providing.The device includes:
Transferring module 1, for performing pre-set commands;Pre-set commands include two subcommands, and the first subcommand is used to delete The connecting interface of the Microsoft Loopback Adapter on former vacation bridge;Second subcommand is used to create the of the same name of Microsoft Loopback Adapter on purpose vacation bridge Connecting interface;
File update module 3, the network interface card in the corresponding xml document of virtual machine is updated for the title according to purpose vacation bridge Connection status.
Preferably, the device also includes:
Parameter reset module 2, the QoS configuration parameters for resetting Microsoft Loopback Adapter.
The invention provides a kind of Microsoft Loopback Adapter thermophoresis device, Microsoft Loopback Adapter is migrated by performing pre-set commands, should Pre-set commands include two parts, and a part is used to build for disconnecting the connection between Microsoft Loopback Adapter and former vacation bridge, another part Connection between vertical Microsoft Loopback Adapter and purpose vacation bridge, then according to the corresponding xml of name modifications virtual machine of purpose vacation bridge File.The order that the present invention will be switched off connection combines execution with the order of newly-built connection, it is ensured that Microsoft Loopback Adapter is migrated Order immediately comes into force, it is to avoid occur disconnecting caused by time interval long between newly-built connection in network It is disconnected, after it also avoid disconnecting cannot the situation of newly-built connection occur, being instructed using one is carried out the complete of Microsoft Loopback Adapter and moves Move so that otherwise can successfully delete and create connection, otherwise cannot delete, will not be because of the order for disconnecting or newly-built The order of connection performs unsuccessful and middle circuit network.It can be seen that, the present invention need not turn off virtual machine, and can avoid moving as far as possible Move past journey and the situation of network interruption occur.
It should be noted that in this manual, term " including ", "comprising" or its any other variant be intended to Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or uses the present invention. Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The scope most wide for causing.

Claims (6)

1. the Microsoft Loopback Adapter thermomigration process of a kind of virtual machine, it is characterised in that including:
Perform pre-set commands;The pre-set commands include two subcommands, and the first subcommand is used to delete the institute on former vacation bridge State the connecting interface of Microsoft Loopback Adapter;Second subcommand is used to be created on purpose vacation bridge the connection of the same name of the Microsoft Loopback Adapter Interface;
The network interface card connection status in the corresponding xml document of virtual machine is updated according to the title of purpose vacation bridge.
2. method according to claim 1, it is characterised in that the pre-set commands are specially OVS orders, first son It is OVS interface ON- and OFF- commands to order, and second subcommand is the newly-built order of OVS interfaces.
3. method according to claim 1 and 2, it is characterised in that after the execution pre-set commands, also include:
Reset the QoS configuration parameters of the Microsoft Loopback Adapter.
4. method according to claim 3, it is characterised in that the QoS configuration parameters include the speed of the Microsoft Loopback Adapter Rate and peak value.
5. the Microsoft Loopback Adapter thermophoresis device of a kind of virtual machine, it is characterised in that including:
Transferring module, for performing pre-set commands;The pre-set commands include two subcommands, and the first subcommand is used to delete original The connecting interface of the Microsoft Loopback Adapter on false bridge;Second subcommand is used to create the Microsoft Loopback Adapter on purpose vacation bridge Connecting interface of the same name;
File update module, the network interface card in the corresponding xml document of virtual machine is updated for the title according to purpose vacation bridge Connection status.
6. device according to claim 5, it is characterised in that also include:
Parameter reset module, the QoS configuration parameters for resetting the Microsoft Loopback Adapter.
CN201710113469.XA 2017-02-28 2017-02-28 Virtual network card hot migration method and device Active CN106878082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710113469.XA CN106878082B (en) 2017-02-28 2017-02-28 Virtual network card hot migration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710113469.XA CN106878082B (en) 2017-02-28 2017-02-28 Virtual network card hot migration method and device

Publications (2)

Publication Number Publication Date
CN106878082A true CN106878082A (en) 2017-06-20
CN106878082B CN106878082B (en) 2020-03-31

Family

ID=59169045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710113469.XA Active CN106878082B (en) 2017-02-28 2017-02-28 Virtual network card hot migration method and device

Country Status (1)

Country Link
CN (1) CN106878082B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107317710A (en) * 2017-06-30 2017-11-03 郑州云海信息技术有限公司 A kind of method and apparatus for carrying out QoS configurations to Microsoft Loopback Adapter based on SDN
CN107861792A (en) * 2017-11-06 2018-03-30 郑州云海信息技术有限公司 A kind of virtual machine management method and device based on Libvirt
CN112000429A (en) * 2020-08-06 2020-11-27 北京浪潮数据技术有限公司 Connection tracking deletion method, device and equipment of cloud platform management platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8150971B2 (en) * 2009-05-31 2012-04-03 Red Hat Israel, Ltd. Mechanism for migration of client-side virtual machine system resources
CN103324532A (en) * 2013-06-28 2013-09-25 东软集团股份有限公司 Dynamic migration method and system of virtual machine
CN103888417A (en) * 2012-12-21 2014-06-25 中国电信股份有限公司 Network switching method and system for virtual machine system migration
CN104243205A (en) * 2014-09-03 2014-12-24 杭州华三通信技术有限公司 Message processing method and device used during virtual switch fault
CN105589744A (en) * 2015-08-25 2016-05-18 杭州华三通信技术有限公司 Virtual machine migration method and apparatus
CN105612498A (en) * 2013-12-31 2016-05-25 华为技术有限公司 Virtual machine live migration method, virtual machine memory data processing method, server, and virtual machine system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8150971B2 (en) * 2009-05-31 2012-04-03 Red Hat Israel, Ltd. Mechanism for migration of client-side virtual machine system resources
CN103888417A (en) * 2012-12-21 2014-06-25 中国电信股份有限公司 Network switching method and system for virtual machine system migration
CN103324532A (en) * 2013-06-28 2013-09-25 东软集团股份有限公司 Dynamic migration method and system of virtual machine
CN105612498A (en) * 2013-12-31 2016-05-25 华为技术有限公司 Virtual machine live migration method, virtual machine memory data processing method, server, and virtual machine system
CN104243205A (en) * 2014-09-03 2014-12-24 杭州华三通信技术有限公司 Message processing method and device used during virtual switch fault
CN105589744A (en) * 2015-08-25 2016-05-18 杭州华三通信技术有限公司 Virtual machine migration method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107317710A (en) * 2017-06-30 2017-11-03 郑州云海信息技术有限公司 A kind of method and apparatus for carrying out QoS configurations to Microsoft Loopback Adapter based on SDN
CN107861792A (en) * 2017-11-06 2018-03-30 郑州云海信息技术有限公司 A kind of virtual machine management method and device based on Libvirt
CN112000429A (en) * 2020-08-06 2020-11-27 北京浪潮数据技术有限公司 Connection tracking deletion method, device and equipment of cloud platform management platform

Also Published As

Publication number Publication date
CN106878082B (en) 2020-03-31

Similar Documents

Publication Publication Date Title
CN105103132B (en) Cloud service is repaired during upgrading
Neumann The book of GNS3: build virtual network labs using Cisco, Juniper, and more
CN107222349A (en) A kind of method and device for configuring virtual machine network interface card speed
CN102447723A (en) Client Virtualization Architecture
CN107666415B (en) Optimization method and device of FC-AE-1553 protocol bridge
CN106445663A (en) Application data migration method and device
CN109639449A (en) Virtualize method, equipment and the medium of the automatic management of traffic mirroring strategy
CN106878082A (en) A kind of Microsoft Loopback Adapter thermomigration process and its device
CN103888417B (en) Network switching method and system for virtual machine system migration
CN106412064A (en) Remote upgrade method of power utilization information acquisition terminal
CN114650223B (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN105847053A (en) Method and system for automatically setting arbitrary bonding for multi-network card and multi-network segment under LINUX system
CN112835604A (en) System gray scale version release management method, system, device and medium
CN103246535A (en) Spliced screen updating system and spliced screen updating method
CN107729040A (en) A kind of IAP method and system of single-chip microcomputer
KR20230079348A (en) Cloud code development system, method, device, device and storage medium
CN106571945A (en) Control surface and business surface separating method and system, server and cloud calculating platform
CN101262375B (en) A dynamic configuration recovery method and system for network devices
CN103856502A (en) Method and NAS cluster system for realizing mirror image document thermal migration of virtual machine
CN102736926B (en) The upgrade method of a kind of task based access control template and device, batch upgrading system
CN104753816A (en) RDMA (remote direct memory access) connection message processing method and related device
CN103677845A (en) Website application deployment method
CN110515888A (en) FPGA portion reconfigures implementation method, device and electronic equipment and storage medium
CN107317710A (en) A kind of method and apparatus for carrying out QoS configurations to Microsoft Loopback Adapter based on SDN
CN113312138A (en) Virtual machine migration method, device, system and storage medium

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