CN103297277A - Virtual network repairing method and system - Google Patents

Virtual network repairing method and system Download PDF

Info

Publication number
CN103297277A
CN103297277A CN2013102431055A CN201310243105A CN103297277A CN 103297277 A CN103297277 A CN 103297277A CN 2013102431055 A CN2013102431055 A CN 2013102431055A CN 201310243105 A CN201310243105 A CN 201310243105A CN 103297277 A CN103297277 A CN 103297277A
Authority
CN
China
Prior art keywords
virtual
network
card
host
host server
Prior art date
Application number
CN2013102431055A
Other languages
Chinese (zh)
Inventor
王雪山
邵文韬
Original Assignee
北京华胜天成科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京华胜天成科技股份有限公司 filed Critical 北京华胜天成科技股份有限公司
Priority to CN2013102431055A priority Critical patent/CN103297277A/en
Publication of CN103297277A publication Critical patent/CN103297277A/en

Links

Abstract

The invention discloses a virtual network repairing method and system. The method includes reading information of all virtual machines and virtual network interface cards on a host server on the host server, activating the virtual network interface cards which are not activated according to the read information of the virtual machines and the virtual network interface cards and enabling the activated virtual network interface cards on the host server and a virtual switch to be communicated. The method and system avoids rebuilding of the virtual network interface cards and rebinding of the virtual network interface cards on the virtual machines, improves system management efficiency accordingly, reduces resource waste and shortens virtual network repairing time.

Description

虚拟网络修复的方法及系统 Virtual network and system repair

技术领域 FIELD

[0001] 本发明涉及虚拟化技术领域,尤其涉及一种虚拟网络修复的方法及系统。 [0001] The present invention relates to the field of virtualization technology, particularly to a method and system for repair of a virtual network.

背景技术 Background technique

[0002] 随着IT行业的发展,虚拟化技术的逐步成熟。 [0002] With the development of IT industry, virtualization technology matures. 从当前的IT基础架构到云平台是一个逐步演进的过程,通过虚拟化技术构建资源池是云平台建设的关键阶段。 From the current IT infrastructure to the cloud platform is a gradual process of evolution, to build a resource pool through virtualization technology is the key stages of the cloud platform construction. 虚拟化系统,是基础架构软件,是云计算的操作系统。 Virtualization system is an infrastructure software, cloud computing operating system. 在云中,它无处不在,它可以在你不察觉的情况下出现,它能发挥重要作用。 In the cloud, it's everywhere, it can occur in case you're not aware, it can play an important role. 在云中,它时刻看护着您的业务、应用,它还决定您系统的安全性、合规性。 In the cloud, it always look after your business, application, also decided the security of your system, and compliance.

[0003] 虚拟化(Virtulization)是表示计算机资源的抽象方法。 [0003] Virtualization (Virtulization) method is an abstract computer resources. 通过虚拟化可以对包括基础设施,系统和软件等计算机资源的表示,访问和管理进行简化,并为这些资源提供标准的接口来接受输入和提供输出。 May represent include infrastructure, systems, and software and other computer resources, access and simplified management through virtualization, and provides a standard interface for these resources to accept input and provide output. 虚拟化将基础设施资源的“池化”,将主机、存储、网络等物理基础实施抽象成为资源池中逻辑单元,以支持业务应用部署对市场变化的反应速度,优化资源的配置,降低云计算服务提供的总体成本。 Virtualization will "pool" of infrastructure resources, physical infrastructure will be implemented hosts, storage, networking and other abstract become logical resource pools unit to support business application deployment speed of response to market changes, optimizing the allocation of resources, reduce cloud computing the overall cost of the service provided.

[0004] 基础设施虚拟化技术一般可划分为:服务器虚拟化、存储虚拟化、网络虚拟化、负载均衡虚拟化、防火墙/VPN/IDS虚拟化等。 [0004] infrastructure virtualization technology can generally be divided into: server virtualization, storage virtualization, network virtualization, load balancing, virtualization, firewall / VPN / IDS virtualization. 网络虚拟化是虚拟化技术的重要组成部分。 Network virtualization is an important part of virtualization technology.

[0005] 传统的虚拟化系统中的虚拟网络的修复是通过虚拟网卡的重新创建,并重新绑定给虚拟机实现。 [0005] restoration of the traditional virtual network system virtualization through a virtual network adapter is re-created and re-bound to the virtual machine implementation. 这样在虚拟化环境的管理系统需要维护相应的网络私有化、虚拟网卡等信息,并提交Hypervisor或者VMM来实现宿主机重启、宿主机断电、网络异常等情况的网络修复工作,不利于管理,造成的资源的浪费;而且虚拟化网卡的重新创建,网络的恢复时间较长。 In this virtual environment management systems need to maintain the appropriate network privatization, virtual network cards and other information, and submit it to achieve Hypervisor or VMM host restart, power off the host, network restoration abnormal network situation is not conducive to management, waste of resources caused; and a longer recovery time to re-create the virtual network card, network.

发明内容 SUMMARY

[0006] 为解决传统技术基于虚拟网卡的重启或者重新建立的虚拟网络修复,修复时间长,且不利于管理的问题,本发明提供了一种虚拟网络修复的方法及系统。 [0006] In order to solve traditional technologies based restart the virtual network card or a virtual network to re-establish the repair, repair for a long time, and not conducive to management problems, the present invention provides a method and system for virtual network restoration.

[0007] 为实现本发明目的提供的一种虚拟网络修复的方法,包括以下步骤: [0007] To achieve the object of the present invention provides a method of repairing a virtual network, comprising the steps of:

[0008] 读取主机服务器上所有虚拟机及所述虚拟机上的虚拟网卡信息; [0008] Read all the virtual machines on the host server and the virtual card information on the virtual machine;

[0009] 根据所读取的虚拟机及所述虚拟机上的虚拟网卡信息,激活未激活的虚拟网卡; [0009] According to the read virtual machine and a virtual machine on the virtual card information, activate inactive virtual NIC;

[0010] 配置主机服务器上已激活的虚拟网卡与虚拟交换机连通。 [0010] The host configuration server activated virtual network adapter communicates with the virtual switch.

[0011] 较佳地,作为一种可实施方式,所述配置主机服务器上已激活的虚拟网卡与虚拟交换机连通,包括以下步骤: [0011] Preferably, as an embodiment, the configuration has been activated on the host server virtual network adapter communicates with the virtual switch, comprising the steps of:

[0012] 在主机服务器上的虚拟交换机上插入虚拟端口的连接或者添加新的虚拟端口,并配置所述虚拟端口的网络策略为已激活的虚拟网卡的网络策略。 Insertion of the virtual ports on [0012] a virtual switch on the host server connection or to add a new virtual port and the virtual network policy configuration port network policy for the activated virtual NIC.

[0013] 较佳地,作为一种可实施方式,在所述配置主机服务器上已激活的虚拟网卡与虚拟交换机连通之前,还包括以下步骤: Before [0013] Preferably, as an embodiment, may be, on the configuration of the host server is activated virtual NIC communicates with the virtual switch, further comprising the step of:

[0014] 在主机服务器上的虚拟交换机上拔掉原来连接虚拟网卡的虚拟端口上的连接或者删除所述原来连接虚拟网卡的虚拟端口。 [0014] unplug originally connected virtual NIC connection on a virtual port or a virtual port delete the original virtual NIC connected to the virtual switch on the host server.

[0015] 较佳地,作为一种可实施方式,在所述配置主机服务器上已激活的虚拟网卡与虚拟交换机连通之前,还包括以下步骤: Before [0015] Preferably, as an embodiment, may be, on the configuration of the host server is activated virtual NIC communicates with the virtual switch, further comprising the step of:

[0016] 从主机服务器中读取与虚拟机对应的虚拟网卡的网络策略。 [0016] corresponds to the virtual network interface card reads the virtual machine from the host server network policy.

[0017] 所述网络策略包括,虚拟局域网VLAN、网络限速以及安全信息; The [0017] network strategies include virtual local area network VLAN, rate limiting and network security information;

[0018] 所述虚拟网卡信息包括,网卡名,MAC地址,IP地址,子网掩码以及网关。 [0018] The virtual card information includes card name, MAC address, IP address, subnet mask, and gateway.

[0019] 基于同一发明构思的一种虚拟网络修复的系统,包括:第一读取模块,第一处理模块,第二处理模块,其中: [0019] Based on the same concept for a virtual network of the invention, the repair system, comprising: a first reading module, a first processing module, a second processing module, wherein:

[0020] 所述第一读取模块,用于读取主机服务器上所有虚拟机及所述虚拟机上的虚拟网卡信息; [0020] The first reading module for reading all virtual machines on the host server and the virtual card information on the virtual machine;

[0021] 所述第一处理模块,用于根据所读取的虚拟机及所述虚拟机上的虚拟网卡信息,激活未激活的虚拟网卡; [0021] The first processing module, according to the read virtual machine and a virtual machine on the virtual card information, activate inactive virtual NIC;

[0022] 所述第二处理模块,用于配置主机服务器上已激活的虚拟网卡与虚拟交换机连通。 [0022] The second processing module host server configuration for the activated virtual network card communicates with the virtual switch.

[0023] 较佳地,作为一种可实施方式,所述第二处理模块包括第一处理单元,其中: [0023] Preferably, an embodiment may be used as the second processing module comprises a first processing unit, wherein:

[0024] 所述第一处理单元,用于在主机服务器上的虚拟交换机上插入虚拟端口的连接或者添加新的虚拟端口,并配置所述虚拟端口的网络策略为已激活的虚拟网卡的网络策略。 Insertion of the virtual ports on virtual switch [0024] the first processing unit, for connection on the host server or add new virtual port, and configuring the network policy for the virtual port of the activated virtual NIC network policy .

[0025] 较佳地,作为一种可实施方式,所述虚拟网络修复的系统还包括第三处理模块,其中: [0025] Preferably, as an embodiment, the virtual network system further comprises a third fixed in a processing module, wherein:

[0026] 所述第三处理模块,用于在主机服务器上的虚拟交换机上拔掉原来连接虚拟网卡的虚拟端口上的连接或者删除所述原来连接虚拟网卡的虚拟端口。 [0026] The third processing module, are disconnected from the previously connected virtual NIC virtual switch for a virtual port on the host server or to delete the original virtual port connected virtual NIC.

[0027] 较佳地,作为一种可实施方式,所述虚拟网络修复的系统还包括第二读取模块,其中: [0027] Preferably, as an embodiment, the virtual network system further comprises a second repair reading module, wherein:

[0028] 所述第二读取模块,用于从主机服务器中读取与虚拟机对应的虚拟网卡的网络策略。 [0028] The second reading module configured to read from the virtual NIC and the virtual machine host server corresponding to the network policy.

[0029] 所述网络策略包括,虚拟局域网VLAN、网络限速以及安全信息; [0029] The network strategy includes virtual local area network VLAN, rate limiting and network security information;

[0030] 所述虚拟网卡信息包括,网卡名,MAC地址,IP地址,子网掩码以及网关。 The [0030] information includes a virtual card, the card name, MAC address, IP address, subnet mask, and gateway. 本发明的有益效果包括: Advantageous effects of the invention comprises:

[0031] 本发明提供的一种虚拟网络修复的方法及系统,通过读取主机服务器上虚拟网卡信息,并激活未激活的虚拟网卡;在主机服务器上的虚拟交换机上拔掉或者删除原来的连接虚拟网卡的虚拟端口;从主机服务器中读取虚拟网卡的网络策略;在主机服务器上的虚拟交换机上插入虚拟端口的连接或者添加新的虚拟端口,并配置所述虚拟端口的网络策略,从而实现网络恢复。 [0031] The method and system of the present invention provides a virtual network repaired by the host server reading the virtual card information, and activate inactive virtual NIC; unplug or delete the original virtual switch connected to the server on the host virtual virtual NIC ports; reading from the virtual NIC host server network policy; virtual port is inserted on a virtual switch on the host server connection or to add a new virtual port and the virtual network policy configuration port to achieve network recovery. 避免了虚拟网卡的重新建立,提高了系统管理的效率,减少了资源的浪费,也缩短了虚拟网络恢复的时间。 Avoiding the re-establishment of a virtual network card, improve the efficiency of system management, reducing the waste of resources, but also shorten the time to recovery of virtual networks.

附图说明 BRIEF DESCRIPTION

[0032] 图1为本发明一种虚拟网络修复的方法的一具体实施例的流程示意图; [0032] FIG 1 Virtual network restoration process of the present invention, one embodiment of a schematic view of a particular embodiment;

[0033] 图2为本发明一种虚拟网络修复的系统的一具体实施例的结构示意图。 Schematic structural diagram of a specific [0033] FIG. 2 of the present invention for a virtual network system according repaired. 具体实施方式 Detailed ways

[0034] 为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图对本发明的虚拟网络修复的方法及系统的具体实施方式进行说明。 [0034] To make the objectives, technical solutions and advantages of the present invention will become more apparent hereinafter in conjunction with the accompanying drawings of specific embodiments of the method of repair and the virtual network system according to the present invention will be described. 应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 It should be understood that the specific embodiments described herein are only intended to illustrate the present invention and are not intended to limit the present invention.

[0035] 本发明实施例的虚拟网络修复的方法,如图1所示,包括以下步骤: [0035] The method of an embodiment of a virtual network of the present invention, repair, shown in Figure 1, comprising the steps of:

[0036] S100,读取主机服务器上所有虚拟机及所述虚拟机上的虚拟网卡信息; [0036] S100, reads all the virtual machines on the host server and the virtual card information on the virtual machine;

[0037] 在云计算环境中,通常包括至少一个主机服务器,所述主机服务器为物理服务器,所述主机服务器上设置有至少一台虚拟机。 [0037] In the cloud computing environment, typically includes at least one host server, the host server is a physical server, the host server is provided with at least one virtual machine.

[0038] 需要说明的是,当所述主机服务器重启、或者断电,或出现网络异常等情况时,当所述主机服务器恢复正常工作后,需要对所述主机服务器中的网络进行恢复,所述虚拟机通过其上的虚拟网卡连接到虚拟交换机,从而使所述虚拟机的网络连通,从而可以正常工作。 [0038] Incidentally, when the host server to restart or power failure or abnormal condition of the network occurs, when the host server to resume normal operation, the need for recovery of the host server in the network, the said virtual machine via a virtual card to the virtual switch on, so that the virtual machine network communication, so that work properly. 本发明实施例中首先读取主机服务器上所有虚拟机及所述虚拟机上虚拟网卡信息,以便后续根据所读取的虚拟机及所述虚拟机上的虚拟网卡信息对虚拟网卡做进一步处理。 Embodiments of the present invention is first read all the virtual machines on the host server and the virtual machine virtual card information according to the virtual network card for subsequent read the virtual machine and the virtual machine information for further processing of the virtual network card.

[0039] 虚拟网卡的信息包括:网卡名,IP地址,MAC地址,子网掩码以及网关。 Information [0039] virtual NIC include: card name, IP address, MAC address, subnet mask and gateway.

[0040] S200,根据所读取的虚拟机及所述虚拟机上的虚拟网卡信息,激活未激活的虚拟网卡; [0040] S200, according to the read virtual machine and the virtual card information on the virtual machine, the virtual network card activation inactive;

[0041] 激活未激活的虚拟网卡而不用重新建立新的虚拟网卡,从而避免了资源的浪费,使整个系统更加便于管理,同时也会大大缩短因断电或者网络异常等情况需要进行的网络修复时间。 [0041] Activated Not activated virtual NICs without re-establish a new virtual network adapter, thus avoiding the waste of resources, so that the whole system more manageable, but also greatly shorten repair network or the network due to power anomalies such as the need of time.

[0042] 较佳地,作为一种可实施方式,所述S200,包括以下步骤: [0042] Preferably, as an embodiment, the S200, the steps comprising:

[0043] S210,根据所读取的虚拟机及所述虚拟机上的虚拟网卡信息,判断是否有虚拟网卡未激活,如果是,则执行步骤S220,否则不进行操作; [0043] S210, according to the read virtual machine and the virtual card information on the virtual machine, determines whether there is a virtual NIC is not active, if yes, performing step S220, the operation or not;

[0044] 所述判断是否有虚拟网卡未激活,是根据所读取的虚拟机及所述虚拟机上的虚拟网卡信息,判断是否所有虚拟机都有其对应的虚拟网卡,并且所述虚拟机和与其对应的虚拟网卡连接。 [0044] determines whether the virtual card is not activated, the virtual card information based on the read virtual machine and the virtual machine, determines whether or not all the virtual network adapter has its corresponding virtual machine and the virtual machine and its corresponding virtual card to connect.

[0045] 当存在虚拟机没有与其对应的虚拟网卡,即所述虚拟机上的虚拟网卡,连接时,则说明此虚拟网卡没有激活,则执行步骤S220 ;否则,则说明主机服务器上的所有虚拟机都与其对应的虚拟网卡连接,即当前主机服务器中网络正常,不进行操作。 [0045] When virtual NIC is not present virtual machine corresponding thereto, i.e., the virtual machine on the virtual network adapter, the connection, then the virtual card is not activated, step S220 is executed; otherwise, it indicates all virtual servers on the host virtual machines corresponding to the card connector, i.e., the current host network server normally does not operate.

[0046] S220,激活未激活的虚拟网卡; [0046] S220, activation of inactive virtual network card;

[0047] 所述激活未激活的虚拟网卡,是将虚拟网卡的网卡信息进行重新配置,使虚拟网卡与其对应的虚拟机相匹配,建立虚拟网卡与其对应的虚拟机之间的连接。 [0047] The activation of inactive virtual network card, the card information is to reconfigure the virtual network card, network adapter and its corresponding virtual machine virtual matches, the virtual NIC connection between the virtual machine corresponding thereto.

[0048] 较佳地,作为一种可实施方式,所述S200中还包括以下步骤; [0048] Preferably, as an embodiment, the step S200 further includes the step of;

[0049] S230,当主机服务器中存在虚拟机没有与其对应的虚拟网卡时,则建立新的虚拟网卡,并激活所述新的虚拟网卡。 [0049] S230, when the virtual machine virtual NIC is not present in the corresponding host server, the establishment of a new virtual network adapter, and activation of the new virtual network adapter.

[0050] S300,配置主机服务器上已激活的虚拟网卡与虚拟交换机连通; [0050] S300, the host server configuration activated virtual network adapter communicates with the virtual switch;

[0051] 较佳地,作为一种可实施方式,所述S300,包括以下步骤: [0051] Preferably, as an embodiment, the S300, the steps comprising:

[0052] S310,在主机服务器上的虚拟交换机上插入虚拟端口的连接或者添加新的虚拟端口,并配置所述虚拟端口的网络策略为已激活的虚拟网卡的网络策略。 [0052] S310, the insertion of the virtual port on a virtual switch on the host server connection or to add a new virtual port and the virtual network policy configuration port is activated virtual NIC network policy.

[0053] 所述网络策略包括VLAN标签、网络限速以及安全控制信息等。 The [0053] network comprises a VLAN tag policy, network security and speed control information. [0054] 在主机服务器上的虚拟交换机插入虚拟端口的连接或者添加新的虚拟端口,并配置所述虚拟端口的网路策略为已激活的虚拟网卡的网络策略,从而建立了虚拟网卡与虚拟交换机之间的连接,则对应的虚拟机的网络连通修复完成,可以正常的工作。 [0054] The virtual switch on the host server is connected to the inserted virtual port or add new virtual port, and configuring the network policy for the virtual port of the network policy activated virtual card, thereby establishing a virtual NIC and a virtual switch connection, the corresponding virtual machine repair is completed communication network, can work properly.

[0055] 较佳地,作为一种可实施方式,本实施例中采用添加的方式在主机服务器上的虚拟交换机上加入新的虚拟端口。 [0055] Preferably, as an embodiment, the present embodiment uses to add new way to join a virtual port on the host virtual switch on the server.

[0056] 较佳地,作为一种可实施方式,在步骤S300,配置主机服务器上已激活的虚拟网卡与虚拟交换机连通之前,还包括以下步骤: [0056] Preferably, as an embodiment, in step S300, the host server configuration prior to activation of the virtual network card communicates with the virtual switch, further comprising the step of:

[0057] S3001,在主机服务器上的虚拟交换机上拔掉原来连接虚拟网卡的虚拟端口上的连接或者删除所述原来连接虚拟网卡的虚拟端口。 [0057] S3001, are disconnected from the previously connected virtual NIC virtual port on the virtual switch on the host server or to delete the original virtual port connected virtual NIC.

[0058] 拔掉虚拟交换机上原来连接虚拟网卡的虚拟端口的上的连接,或者删除所述原来连接虚拟网卡的虚拟端口,则为后续在虚拟交换机上创建新的连接做准备。 Connection on the [0058] unplug the original virtual switch connected to the virtual network adapter virtual port, or delete the original virtual connection virtual NIC ports, for the follow-up to create a new connection in preparation on the virtual switch.

[0059] 较佳地,作为一种可实施方式,本实施例中采用删除所述原来连接虚拟网卡的虚拟端口的方式。 [0059] Preferably, as an embodiment, virtual port delete the embodiment previously connected virtual NIC employed in the present embodiment.

[0060] S3002,从主机服务器中读取与虚拟机对应的虚拟网卡的网络策略。 [0060] S3002, network policy read from the host server and virtual machine corresponding to the virtual NIC.

[0061] 从主机服务器中读取进行虚拟网络修复前主机服务器中缓存的虚拟机对应的虚拟网卡的网络策略,从而可以在后续步骤中进一步将虚拟机对应的虚拟网卡的网络策略配置到虚拟交换机的虚拟端口,使虚拟机的网络连通,恢复正常工作。 [0061] read from the host server for the virtual network before the host server repair network policy cached in the virtual machine corresponding to the virtual card, which can further configure a network policy virtual machine corresponding to the virtual card to a virtual switch in a subsequent step the virtual port, the virtual machine network connectivity, back to work.

[0062] 较佳地,作为一种可实施方式,本实施例中首先执行步骤S3001,再执行步骤S3002。 [0062] Preferably, as an embodiment, the present embodiment is first performed in step S3001,, then the step S3002.

[0063] 在本发明的其他实施例中,可以首先执行步骤S3002,从主机服务器中读取与虚拟机对应的的虚拟网卡的网络策略,再执行步骤S3001,在主机服务器上的虚拟交换机上拔掉原来连接虚拟网卡的虚拟端口上的连接或者删除所述原来连接虚拟网卡的虚拟端口。 [0063] In other embodiments of the present invention, the step S3002 may be performed first, reads the network policy of the virtual network card corresponding to the virtual machine from the host server, step S3001, and then, pulling the virtual switch on the host server off the original connection connect the virtual NIC on the virtual port or delete the original virtual ports connect the virtual NIC.

[0064] 基于同一发明构思,还提供一种虚拟网络修复的系统,由于此系统解决问题的原理与前述一种虚拟网络修复的方法相似,因此,该系统的实施可以通过前述前述方法的步骤实现,重复之处不再赘述。 [0064] Based on the same inventive concept, the virtual network is also provided a repair system, because this system is similar to the principle problem with the repair method for a virtual network, therefore, the implementation of the system may be implemented by the aforementioned method steps repeat the Department will not be repeated.

[0065] 本发明实施例提供的一种虚拟网络修复的系统,如图2所示,包括第一读取模块100,第一处理模块200,第二处理模块300,其中: [0065] A system provided in the virtual network of the embodiment of the present invention to repair, as shown in FIG. 2, comprising a first reading module 100, a first processing module 200, a second processing module 300, wherein:

[0066] 所述第一读取模块100,用于读取主机服务器上所有虚拟机及虚拟网卡的信息; [0066] The first reading module 100, for reading information of all the virtual machines on the host server and the virtual NIC;

[0067] 虚拟网卡的信息包括:网卡名,MAC地址,IP地址,子网掩码以及网关等。 Information [0067] virtual NIC include: card name, MAC address, IP address, subnet mask and gateway.

[0068] 读取主机服务器上的所有虚拟机及虚拟网卡的信息,以便后根据所读取的虚拟机及所述虚机上的虚拟网卡信息对虚拟网卡做进一步处理。 [0068] Read all virtual machines and virtual card information on the host server, according to the virtual cards on the read virtual machine and the virtual machine information for further processing of the virtual network card.

[0069] 所述第一处理模块200,用于根据所读取的虚拟机及所述虚拟机上虚拟网卡信息,激活未激活的虚拟网卡; [0069] The first processing module 200, a virtual machine on a virtual machine and the virtual card information according to the read activate inactive virtual network adapter;

[0070] 较佳地,作为一种可实施方式,所述第一处理模块200包括虚拟网卡激活判定单元210及虚拟网卡激活设置单元220。 [0070] Preferably, as an embodiment, the first processing module includes a virtual NIC 200 activates the determination unit 210 and the setting unit 220 activates the virtual NIC.

[0071] 所述虚拟网卡激活判定单元210,用于根据所读取的虚拟机及虚拟网卡信息,判断是否有虚拟网卡未激活; [0071] The determination unit 210 activates the virtual card, according to virtual machines and virtual card information read, it is determined whether there is a virtual card is not activated;

[0072] 所述判断是否有虚拟网卡未激活,是根据所读取的虚拟机及所述虚拟机上的虚拟网卡信息,判断是否所有虚拟机都有其对应的虚拟网卡,并且所述虚拟机和与其对应的虚拟网卡连接。 [0072] determines whether the virtual card is not activated, the virtual card information based on the read virtual machine and the virtual machine, determines whether or not all the virtual network adapter has its corresponding virtual machine and the virtual machine and its corresponding virtual card to connect.

[0073] 当存在虚拟机没有与其对应的虚拟网卡,即所述虚拟机上的虚拟网卡,连接时,则说明此虚拟网卡没有激活,则利用虚拟网卡激活设置单元220对网卡进行设置;否则,则说明主机服务器上的所有虚拟机都与其对应的虚拟网卡连接,即当前主机服务器中网络正常,不进行操作。 [0073] When there is no corresponding virtual machine virtual network adapter, i.e. the virtual machine on a virtual network adapter, the connection, then the virtual card is not activated, the activation using the virtual NIC setting unit 220 set the card; otherwise, description of all the virtual machines on the host server connected to the corresponding virtual network adapter, i.e. the current host network server normally does not operate.

[0074] 所述虚拟网卡激活设置单元220,用于激活未激活的虚拟网卡。 [0074] The virtual card activation unit 220 is provided, for activating the virtual network card is not activated.

[0075] 所述激活未激活的虚拟网卡,是将虚拟网卡的网卡信息进行重新配置,使虚拟网卡与其对应的虚拟机相匹配,建立虚拟网卡与其对应的虚拟机之间的连接。 [0075] The activation of inactive virtual network card, the card information is to reconfigure the virtual network card, network adapter and its corresponding virtual machine virtual matches, the virtual NIC connection between the virtual machine corresponding thereto.

[0076] 较佳地,作为一种可实施方式,所述第一处理模块200,还包括虚拟网卡建立单元230。 [0076] Preferably, as an embodiment, the first processing module 200 further includes establishing a virtual network adapter unit 230.

[0077] 所述虚拟网卡建立单元230,用于当主机服务器中存在虚拟机没有与其对应的虚拟网卡时,则建立新的虚拟网卡,并激活所述新的虚拟网卡。 When the [0077] unit 230 to establish a virtual network adapter, network adapter to the host server when the virtual VM exists no corresponding thereto, to establish the new virtual network adapter, and activation of the new virtual network adapter.

[0078] 所述第二处理模块300,用于配置主机服务器上已激活的虚拟网卡与虚拟交换机连通。 [0078] The second processing module 300, host server configuration for the activated virtual network card communicates with the virtual switch.

[0079] 所述第二处理模块300包括第一处理单元310 ; [0079] The second processing module 300 includes a first processing unit 310;

[0080] 所述第一处理单元310,用于在主机服务器上的虚拟交换机上插入虚拟端口的连接或者添加新的虚拟端口,并配置所述虚拟端口的网络策略为已激活的虚拟网卡的网络策略。 [0080] The first processing unit 310, the insertion of the virtual ports for the virtual switch on the host server connection or to add a new virtual port, and configuring the network policy for the virtual port of the activated virtual NIC Network strategy.

[0081] 所述网络策略包括VLAN标签、网络限速以及安全控制信息等。 The [0081] network comprises a VLAN tag policy, network security and speed control information.

[0082] 在主机服务器上的虚拟交换机插入虚拟端口的连接或者添加新的虚拟端口,并配置所述虚拟端口的网路策略为已激活的虚拟网卡的网络策略,从而建立了虚拟网卡与虚拟交换机之间的连接,则对应的虚拟机的网络连通修复完成,可以正常的工作。 [0082] The virtual switch on the host server is connected to the inserted virtual port or add new virtual port, and configuring the network policy for the virtual port of the network policy activated virtual card, thereby establishing a virtual NIC and a virtual switch connection, the corresponding virtual machine repair is completed communication network, can work properly.

[0083] 较佳地,作为一种可实施方式,本实施例中采用添加的方式在主机服务器上的虚拟交换机上加入新的虚拟端口。 [0083] Preferably, as an embodiment, the present embodiment uses to add new way to join a virtual port on the host virtual switch on the server.

[0084] 较佳地,作为一种可实施方式,本发明实施例的一种虚拟网络修复的系统,还包括第三处理模块400。 [0084] Preferably, as an embodiment, may be, embodiment of the present invention is a system for repair of a virtual network embodiment, further comprising a third processing module 400.

[0085] 所述第三处理模块400,用于在主机服务器上的虚拟交换机上拔掉原来连接虚拟网卡的虚拟端口上的连接或者删除所述原来连接虚拟网卡的虚拟端口。 [0085] the third processing module 400 are disconnected from the previously connected virtual NIC virtual switch for a virtual port on the host server or to delete the original virtual port connected virtual NIC.

[0086] 拔掉虚拟交换机上原来连接虚拟网卡的虚拟端口的上的连接,或者删除所述原来连接虚拟网卡的虚拟端口,则为后续在虚拟交换机上创建新的连接做准备。 Connection on the [0086] unplug the original virtual switch connected to the virtual network adapter virtual port, or delete the original virtual connection virtual NIC ports, for the follow-up to create a new connection in preparation on the virtual switch.

[0087] 较佳地,作为一种可实施方式,本发明实施例的一种虚拟网络修复的系统,还包括第二读取模块500。 [0087] Preferably, as an embodiment, may be, embodiment of the present invention is a system for repair of a virtual network embodiment, further comprising a second reading module 500.

[0088] 所述第二读取模块500,用于从主机服务器中读取与虚拟机对应的虚拟网卡的网络策略。 [0088] The second reading module 500, a network policy of the virtual card read from the host server corresponding to the virtual machine.

[0089] 从主机服务器中读取进行虚拟网络修复前主机服务器中缓存的虚拟机对应的虚拟网卡的网络策略,从而可以在后续步骤中进一步将虚拟机对应的虚拟网卡的网络策略配置到虚拟交换机的虚拟端口,使虚拟机的网络连通,恢复正常工作。 [0089] read from the host server for the virtual network before the host server repair network policy cached in the virtual machine corresponding to the virtual card, which can further configure a network policy virtual machine corresponding to the virtual card to a virtual switch in a subsequent step the virtual port, the virtual machine network connectivity, back to work.

[0090] 此处需要说明的是,本发明的虚拟网络修复系统中所述第一处理模块200,第三处理模块400及第二读取模块500,处理问题的的先后顺序可以进行灵活设置。 [0090] Note that here, the virtual network system of the present invention to repair the first processing module 200, a third processing module 400 and the second reading module 500, order processing issues can be flexibly set. [0091] 以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。 [0091] The above embodiments are only expressed several embodiments of the present invention, and detailed description thereof is more specific, but can not therefore be understood as limiting the scope of the present invention. 应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。 It should be noted that those of ordinary skill in the art, without departing from the spirit of the present invention, can make various changes and modifications, which fall within the protection scope of the present invention. 因此,本发明专利的保护范围应以所附权利要求为准。 Therefore, the protection scope of the present invention should be subject to the appended claims.

Claims (10)

1.一种虚拟网络修复的方法,其特征在于,包括以下步骤: 读取主机服务器上所有虚拟机及所述虚拟机上的虚拟网卡信息; 根据所读取的虚拟机及所述虚拟机上的虚拟网卡信息,激活未激活的虚拟网卡; 配置主机服务器上已激活的虚拟网卡与虚拟交换机连通。 CLAIMS 1. A method of repairing a virtual network, characterized by comprising the steps of: reading card information on all the virtual machines on the virtual server and the virtual machine host; according to the read virtual machine and the virtual machine virtual card information, the activation of the inactive virtual NIC; host configuration server activated virtual card communicates with the virtual switch.
2.根据权利要求1所述的虚拟网络修复的方法,其特征在于,所述配置主机服务器上已激活的虚拟网卡与虚拟交换机连通,包括以下步骤: 在主机服务器上的虚拟交换机上插入虚拟端口的连接或者添加新的虚拟端口,并配置所述虚拟端口的网络策略为已激活的虚拟网卡的网络策略。 2. The method of repairing a virtual network according to claim 1, wherein the configuration server is activated on the host virtual network adapter communicates with the virtual switch, comprising the steps of: inserting a virtual port on the virtual switch on the host server connection or add a new virtual port, and configure the virtual network policy port is already active virtual network card network policy.
3.根据权利要求2所述的虚拟网络修复的方法,其特征在于,在所述配置主机服务器上已激活的虚拟网卡与虚拟交换机连通之前,还包括以下步骤: 在主机服务器上的虚拟交换机上拔掉原来连接虚拟网卡的虚拟端口上的连接或者删除所述原来连接虚拟网卡的虚拟端口。 3. The method of repairing a virtual network according to claim 2, characterized in that, prior to the activation of the configuration server host virtual network adapter communicates with the virtual switch, further comprising the step of: the virtual switch on the host server unplug the original connection connect the virtual NIC on the virtual port or delete the original virtual ports connect the virtual NIC.
4.根据权利要求3所述的虚拟网络修复的方法,其特征在于,在所述配置主机服务器上已激活的虚拟网卡与虚拟交换机连通之前,还包括以下步骤: 从主机服务器中读取与虚拟机对应的虚拟网卡的网络策略。 4. The method of repairing the virtual network according to claim 3, characterized in that, prior to the activation of the configuration server host virtual network adapter communicates with the virtual switch, further comprising the step of: reading from the virtual host server network policy corresponding virtual machine network card.
5.根据权利要求4所述的虚拟网络修复的方法,其特征在于: 所述网络策略包括,虚拟局域网VLAN、网络限速以及安全信息; 所述虚拟网卡信息包括,网卡名,MAC地址,IP地址,子网掩码以及网关。 5. The method of repairing a virtual network of claim 4, wherein: said policy comprises network, the VLAN virtual local area network, the network speed and security information; includes the virtual card information, the card name, MAC address, IP address, subnet mask and gateway.
6.—种虚拟网络修复的系统,其特征在于,包括:第一读取模块,第一处理模块,第二处理模块,其中: 所述第一读取模块,用于读取主机服务器上所有虚拟机及所述虚拟机上的虚拟网卡信息; 所述第一处理模块,用于根据所读取的虚拟机及所述虚拟机上的虚拟网卡信息,激活未激活的虚拟网卡; 所述第二处理模块,用于配置主机服务器上已激活的虚拟网卡与虚拟交换机连通。 6.- virtual network types of repair system, comprising: a first reading module, a first processing module, a second processing module, wherein: the first reading module for reading all the host servers virtual machine and the virtual card information on the virtual machine; the first processing module, according to the read virtual NIC on the virtual machines and the virtual machine information, activation of inactive virtual card; the first second processing module, the virtual NIC configuration has been activated for the host server communicates with the virtual switch.
7.根据权利要求6所述的虚拟网络修复的系统,其特征在于,所述第二处理模块包括第一处理单元,其中: 所述第一处理单元,用于在主机服务器上的虚拟交换机上插入虚拟端口的连接或者添加新的虚拟端口,并配置所述虚拟端口的网络策略为已激活的虚拟网卡的网络策略。 The repair of the virtual network system according to claim 6, wherein said second processing module comprises a first processing unit, wherein: said first processing unit, a virtual switch on the host server insert virtual port connection or add a new virtual port, and configure the virtual port network policy for active virtual network card network policy.
8.根据权利要求7所述的虚拟网络修复的系统,其特征在于,还包括第三处理模块,其中: 所述第三处理模块,用于在主机服务器上的虚拟交换机上拔掉原来连接虚拟网卡的虚拟端口上的连接或者删除所述原来连接虚拟网卡的虚拟端口。 The repair of the virtual network system according to claim 7, characterized in that, further comprising a third processing module, wherein: the virtual unplug originally connected to the third processing module for the virtual switch on the host server connection ports on the virtual network card or delete the original virtual ports connect the virtual NIC.
9.根据权利要求7所述的虚拟网络修复的系统,其特征在于,还包括第二读取模块,其中: 所述第二读取模块,用于从主机服务器中读取与虚拟机对应的虚拟网卡的网络策略。 9. The repair system of the virtual network according to claim 7, characterized in that, further comprising a second reading module, wherein: the second reading module for reading from the host server corresponding to the virtual machine network policy virtual network card.
10.根据权利要求9所述的虚拟网络修复的系统,其特征在于: 所述网络策略包括,虚拟局域网VLAN、网络限速以及安全信息; 所述虚拟网卡信息包括,网卡名,MAC地址,IP地址,子网掩码以及网关。 Repair the virtual network system according to claim 9, wherein: said policy comprises network, the VLAN virtual local area network, the network speed and security information; includes the virtual card information, the card name, MAC address, IP address, subnet mask and gateway.
CN2013102431055A 2013-06-19 2013-06-19 Virtual network repairing method and system CN103297277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102431055A CN103297277A (en) 2013-06-19 2013-06-19 Virtual network repairing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102431055A CN103297277A (en) 2013-06-19 2013-06-19 Virtual network repairing method and system

Publications (1)

Publication Number Publication Date
CN103297277A true CN103297277A (en) 2013-09-11

Family

ID=49097625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102431055A CN103297277A (en) 2013-06-19 2013-06-19 Virtual network repairing method and system

Country Status (1)

Country Link
CN (1) CN103297277A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917630A (en) * 2015-04-15 2015-09-16 深圳市深信服电子科技有限公司 Method for recovering virtual network and system for recovering virtual network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332637A1 (en) * 2009-06-30 2010-12-30 Fujitsu Limited Virtual-machine management program and method for managing virtual machines
CN102413190A (en) * 2011-12-19 2012-04-11 广东电子工业研究院有限公司 Network architecture based on cloud computing and virtual network management method thereof
CN102457439A (en) * 2011-12-07 2012-05-16 中标软件有限公司 Virtual switching system and method of cloud computing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332637A1 (en) * 2009-06-30 2010-12-30 Fujitsu Limited Virtual-machine management program and method for managing virtual machines
CN102457439A (en) * 2011-12-07 2012-05-16 中标软件有限公司 Virtual switching system and method of cloud computing system
CN102413190A (en) * 2011-12-19 2012-04-11 广东电子工业研究院有限公司 Network architecture based on cloud computing and virtual network management method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917630A (en) * 2015-04-15 2015-09-16 深圳市深信服电子科技有限公司 Method for recovering virtual network and system for recovering virtual network
CN104917630B (en) * 2015-04-15 2018-12-28 深信服科技股份有限公司 The method and system that virtual network is restored

Similar Documents

Publication Publication Date Title
US8331362B2 (en) Methods and apparatus for distributed dynamic network provisioning
US9450813B2 (en) Automated host device virtual network configuration system
US9104460B2 (en) Inter-cloud live migration of virtualization systems
US8954544B2 (en) Cloud-based virtual machines and offices
US20130297800A1 (en) Environment preserving cloud migration and management
CN102202049B (en) Network policy implementation for multi-virtual machine appliance
US20100165876A1 (en) Methods and apparatus for distributed dynamic network provisioning
US9304793B2 (en) Master automation service
CN104221325B (en) System and method for virtualization of the network security configuration mirroring environment
US8898493B2 (en) Architecture to enable energy savings in networked computers
CN103608794B (en) Method and apparatus for delivery of services managed by usb remote mobile computing device
CN102648448B (en) Supply and management of replicated data
US20180373557A1 (en) System and Method for Virtual Machine Live Migration
JP5074274B2 (en) Monitoring method for a computer system and a communication path
WO2010022100A2 (en) Upgrading network traffic management devices while maintaining availability
US6687817B1 (en) Configuration of a network device via the network
US20130036213A1 (en) Virtual private clouds
CN102132523B (en) Device power management using network connections
US8997094B2 (en) Migrating virtual machines between computing devices
US9535871B2 (en) Dynamic routing through virtual appliances
CN103152419B (en) One kind of cloud computing platform for high-availability cluster management method
US8872638B2 (en) Controlling communication among multiple industrial control systems
CN103718164A (en) Virtual computer and service
CN102710432A (en) System and method for managing virtual network in cloud computation data center
CN103067344B (en) Non-invasive method and apparatus for automatically dispatching security rules in a cloud environment

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
RJ01