CN107357636A - A kind of method and main frame for creating virtual machine - Google Patents
A kind of method and main frame for creating virtual machine Download PDFInfo
- Publication number
- CN107357636A CN107357636A CN201710618603.1A CN201710618603A CN107357636A CN 107357636 A CN107357636 A CN 107357636A CN 201710618603 A CN201710618603 A CN 201710618603A CN 107357636 A CN107357636 A CN 107357636A
- Authority
- CN
- China
- Prior art keywords
- network interface
- virtual machine
- main frame
- parameter
- network
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
Abstract
The invention discloses a kind of method and main frame for creating virtual machine, New-deployed Network interface;According to the information of the physical network card to be allocated to virtual machine on main frame, the parameter of network interface is set;Virtual machine is created on main frame using the parameter of network interface.From technical scheme provided by the invention, enable to virtual machine directly to use the physical network card on main frame, lift the network interface card performance of virtual machine.
Description
Technical field
The present invention relates to virtual machine technique is created, the espespecially a kind of method and main frame of establishment virtual machine.
Background technology
In the prior art, by a physical computer (i.e. main frame) can be virtually more logics by virtualization technology
Computer, i.e. virtual machine.Multiple logical computers are run simultaneously on one computer, each logical computer can run difference
Operating system, and application program can be run and be independent of each other in separate space, be calculated so as to significantly improve
The operating efficiency of machine.
The network interface card that virtual machine uses at present is Microsoft Loopback Adapter, is by will be obtained after the physical network card virtualization on main frame
, virtual machine can not be directly using the physical network card on main frame so that the network interface card poor-performing of virtual machine, the speed of signal transmission
It is slower.
The content of the invention
In order to solve the above-mentioned technical problem, the invention provides a kind of method and main frame for creating virtual machine, void can be made
Plan machine directly uses the physical network card on main frame, lifts the network interface card performance of virtual machine.
In order to reach the object of the invention, the invention provides a kind of method for creating virtual machine, including:
New-deployed Network interface;
According to the information of the physical network card to be allocated to virtual machine on main frame, the parameter of network interface is set;
Virtual machine is created on main frame using the parameter of network interface.
Further, after the parameter of the setting network interface, and in the parameter using network interface in master
Before virtual machine being created on machine, in addition to:
If the quantity of the network interface is two or more, according to the title of the network interface, at two
Or selected in more than two network interfaces create virtual machine used in network interface.
Further, the parameter of the network interface includes one below or any combination:Network interface card type, the Physical Network
Protocol address, the Media Access Control address interconnected between the ID of card, network.
Present invention also offers a kind of main frame, including:
Newly-built module, for New-deployed Network interface;
Setup module, for the information according to the physical network card to be allocated to virtual machine on main frame, network interface is set
Parameter;
Creation module, for creating virtual machine on main frame using the parameter of network interface.
Further, in addition to:
Selecting module, if the quantity for the network interface is two or more, according to the network interface
Title, selected in two or more network interfaces create virtual machine used in network interface.
Further, the parameter of the network interface includes one below or any combination:Network interface card type, the Physical Network
Protocol address, the Media Access Control address interconnected between the ID of card, network.
Compared with prior art, the present invention comprises at least New-deployed Network interface;According to be allocated to virtual machine on main frame
The information of physical network card, the parameter of network interface is set;Virtual machine is created on main frame using the parameter of network interface.From this hair
The technical scheme of bright offer is visible, and by creating network interface, the information of the physical network card of main frame is write into the network interface
In parameter, using the information creating virtual machine of physical network card, the virtual machine so created just can directly use the physical network card,
So as to lift the network interface card performance of virtual machine, ensure the speed of virtual machine signal transmission.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights
Specifically noted structure is realized and obtained in claim and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this
The embodiment of application is used to explain technical scheme together, does not form the limitation to technical solution of the present invention.
Fig. 1 is a kind of schematic flow sheet of method for creating virtual machine provided in an embodiment of the present invention;
Fig. 2 is a kind of structural representation of main frame provided in an embodiment of the present invention;
Fig. 3 is the structural representation of another main frame provided in an embodiment of the present invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention
Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application
Feature can mutually be combined.
Can be in the computer system of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of
Perform.Also, although logical order is shown in flow charts, in some cases, can be with suitable different from herein
Sequence performs shown or described step.
The embodiment of the present invention provides a kind of method for creating virtual machine, as shown in figure 1, this method includes:
Step 101, New-deployed Network interface.
Step 102, the information according to the physical network card to be allocated to virtual machine on main frame, the parameter of network interface is set.
Specifically, the physical network card refer on main frame can with physical network card, be not assigned to the Physical Network of virtual machine
Card.
Step 103, using the parameter of network interface virtual machine is created on main frame.
When main frame has had been switched on hardware virtualization function, the parameter of network interface can be utilized to create void on main frame
Plan machine.Specifically, when creating virtual machine by the configuration file of the parameter read-in of network interface to virtual machine.
For example, there is openstack and virtualization to drive on main frame, openstack New-deployed Networks interface and according to main frame
The information of physical network card sets the parameter of network interface, and when needing to create virtual machine, openstack is by the parameter of network interface
Virtualization driving is sent to, specifically, realizes that the data between openstack and virtualization driving are handed over by message forwarding mechanism
Mutually, virtualization driving creates virtual machine using the parameter of network interface on main frame.Openstack is except by the ginseng of network interface
Number is sent to outside virtualization driving, and other data created needed for virtual machine are also sent to virtualization driving by openstack,
Such as CPU (Central Processing Unit, the central processing unit) information and memory information of virtual machine to be created.Wherein
Openstack is one by NASA (National Aeronautics and Space Administration, American National
Aeronautics and Space Administration) and Rackspace R & D Cooperations and initiate, with the free software of Apache licensing mandates and open-source generation
Code project.
Further, on the basis of embodiment corresponding to Fig. 1, after step 102, and before step 103, also wrap
Include:
If the quantity of network interface is two or more, according to the title of network interface, two or two with
On network interface in select create virtual machine used in network interface.
After having created network interface in main frame, the network interface of establishment is stored in database by main frame, if
Storage has more than one network interface in database, because the title of each network interface is different, therefore is needing to create
During virtual machine, the establishment network to be used of virtual machine is selected in multiple network interfaces according to the title of network interface and connect
Mouthful.
Further, the parameter of network interface includes one below or any combination:Network interface card type, physical network card ID,
Agreement (Internet Protocol, IP) address for being interconnected between network, medium access control (Media Access
Control, MAC) address.
For example, the parameter of network interface is binding:Profile, binding:Profile includes { ' vnic-type ':
‘direct-physical’,‘net-id’:' netId ' }, wherein, ' vnic-type ' represents network interface card type, ' direct-
Physical ' represents to be worth corresponding to network interface card type, and ' net-id ' represents that the ID of physical network card, netId ' represent the ID of physical network card
Corresponding value.
A kind of method for establishment virtual machine that the embodiment of the present invention is provided, New-deployed Network interface;According to being treated on main frame point
The information of the physical network card of dispensing virtual machine, the parameter of network interface is set;Created using the parameter of network interface on main frame
Virtual machine.From technical scheme provided by the invention, by creating network interface, the information of the physical network card of main frame is write
In the parameter of the network interface, using the information creating virtual machine of physical network card, the virtual machine so created just can directly make
With the physical network card, so as to lift the network interface card performance of virtual machine, ensure the speed of virtual machine signal transmission.
The embodiment of the present invention provides a kind of main frame, as shown in Fig. 2 the main frame 2 includes:
Newly-built module 21, for New-deployed Network interface.
Setup module 22, for the information according to the physical network card to be allocated to virtual machine on main frame 2, network interface is set
Parameter.
Creation module 23, virtual machine is created on main frame 2 for the parameter using network interface.
Further, on the basis of embodiment corresponding to Fig. 2, the present invention proposes another main frame, as shown in figure 3,
The main frame 2 also includes:
Selecting module 24, if the quantity for network interface is two or more, according to the title of network interface,
The network interface used in establishment virtual machine is selected in two or more network interfaces.
Further, the parameter of network interface includes one below or any combination:Network interface card type, physical network card ID,
Protocol address, the Media Access Control address interconnected between network.
In actual applications, newly-built module 21, setup module 22, creation module 23 and selecting module 24 can be by main frames 2
In CPU, microprocessor (Micro Processor Unit, MPU), digital signal processor (Digital Signal
Processor, DSP) or field programmable gate array (Field Programmable Gate Array, FPGA) etc. realize.
A kind of main frame that the embodiment of the present invention is provided, New-deployed Network interface;According to be allocated to virtual machine on main frame
The information of physical network card, the parameter of network interface is set;Virtual machine is created on main frame using the parameter of network interface.From this hair
The technical scheme of bright offer is visible, and by creating network interface, the information of the physical network card of main frame is write into the network interface
In parameter, using the information creating virtual machine of physical network card, the virtual machine so created just can directly use the physical network card,
So as to lift the network interface card performance of virtual machine, ensure the speed of virtual machine signal transmission.
Although disclosed herein embodiment as above, content be only readily appreciate the present invention and use implementation
Mode, it is not limited to the present invention.Technical staff in any art of the present invention, do not depart from disclosed herein
On the premise of spirit and scope, any modification and change can be carried out in the form and details of implementation, but the present invention's is special
Sharp protection domain, still should be subject to the scope of the claims as defined in the appended claims.
Claims (6)
- A kind of 1. method for creating virtual machine, it is characterised in that including:New-deployed Network interface;According to the information of the physical network card to be allocated to virtual machine on main frame, the parameter of network interface is set;Virtual machine is created on main frame using the parameter of network interface.
- 2. the method according to claim 1 for creating virtual machine, it is characterised in that in the parameter of the setting network interface Afterwards, and before the parameter using network interface creates virtual machine on main frame, in addition to:If the quantity of the network interface is two or more, according to the title of the network interface, at two or two The network interface used in establishment virtual machine is selected in the network interface more than individual.
- 3. the method according to claim 1 or 2 for creating virtual machine, it is characterised in thatThe parameter of the network interface includes one below or any combination:Network interface card type, the ID of the physical network card, network it Between the protocol address, the Media Access Control address that interconnect.
- A kind of 4. main frame, it is characterised in that including:Newly-built module, for New-deployed Network interface;Setup module, for the information according to the physical network card to be allocated to virtual machine on main frame, the parameter of network interface is set;Creation module, for creating virtual machine on main frame using the parameter of network interface.
- 5. main frame according to claim 4, it is characterised in that also include:Selecting module, if the quantity for the network interface is two or more, according to the name of the network interface Claim, the network interface created used in virtual machine is selected in two or more network interfaces.
- 6. the main frame according to claim 4 or 5, it is characterised in thatThe parameter of the network interface includes one below or any combination:Network interface card type, the ID of the physical network card, network it Between the protocol address, the Media Access Control address that interconnect.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710618603.1A CN107357636A (en) | 2017-07-26 | 2017-07-26 | A kind of method and main frame for creating virtual machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710618603.1A CN107357636A (en) | 2017-07-26 | 2017-07-26 | A kind of method and main frame for creating virtual machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107357636A true CN107357636A (en) | 2017-11-17 |
Family
ID=60286174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710618603.1A Pending CN107357636A (en) | 2017-07-26 | 2017-07-26 | A kind of method and main frame for creating virtual machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107357636A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557420A (en) * | 2009-03-31 | 2009-10-14 | 北京航空航天大学 | Realization method of high-efficiency network communication of a virtual machine monitor |
CN102752137A (en) * | 2012-06-28 | 2012-10-24 | 用友软件股份有限公司 | Device and method for actively setting network parameters of virtual machine |
CN103812704A (en) * | 2014-02-25 | 2014-05-21 | 国云科技股份有限公司 | Public network IP (Internet Protocol) dynamic management method for virtual machine |
US20140226820A1 (en) * | 2013-02-12 | 2014-08-14 | Vmware, Inc. | Infrastructure level lan security |
-
2017
- 2017-07-26 CN CN201710618603.1A patent/CN107357636A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557420A (en) * | 2009-03-31 | 2009-10-14 | 北京航空航天大学 | Realization method of high-efficiency network communication of a virtual machine monitor |
CN102752137A (en) * | 2012-06-28 | 2012-10-24 | 用友软件股份有限公司 | Device and method for actively setting network parameters of virtual machine |
US20140226820A1 (en) * | 2013-02-12 | 2014-08-14 | Vmware, Inc. | Infrastructure level lan security |
CN103812704A (en) * | 2014-02-25 | 2014-05-21 | 国云科技股份有限公司 | Public network IP (Internet Protocol) dynamic management method for virtual machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11500670B2 (en) | Computing service with configurable virtualization control levels and accelerated launches | |
US10601637B2 (en) | Hierarchical network managers | |
CN108780410B (en) | Network virtualization of containers in a computing system | |
US9602636B1 (en) | Stateless packet segmentation and processing | |
RU2604431C2 (en) | Automated transformation of user interface object and code generation | |
WO2018133035A1 (en) | Method, network card, host device and computer system for forwarding data packages | |
EP2996294A1 (en) | Virtual switch method, relevant apparatus, and computer system | |
EP3242440A1 (en) | Fault tolerant method, apparatus and system for virtual machine | |
CN112671578B (en) | SRIOV virtual network configuration method and related device | |
WO2015199685A1 (en) | Network function virtualization | |
CN105337831B (en) | The implementation method and client device of Virtual Private Network | |
US10901725B2 (en) | Upgrade of port firmware and driver software for a target device | |
EP2846263A1 (en) | Methods for configurable hardware logic device reloading and devices thereof | |
WO2023124945A1 (en) | Multi-party data processing method and system, electronic apparatus and storage medium | |
US10942729B2 (en) | Upgrade of firmware in an interface hardware of a device in association with the upgrade of driver software for the device | |
CN105635332A (en) | Method for multiple virtual machines to share IP of single external network | |
CN116057909A (en) | Routing advertisement supporting distributed gateway services architecture | |
CN109697120A (en) | Method, electronic equipment for application migration | |
US10256994B2 (en) | Open virtualized multitenant network scheme servicing virtual machine and container based connectivity | |
CN108737499A (en) | server configuration method and device | |
US10389580B2 (en) | Distributed computing system configuration | |
CN107707690A (en) | A kind of non-ageing method, apparatus of dynamic address and medium | |
CN108347472B (en) | Configuration method of IP address, cloud server, cloud platform and readable storage medium | |
CN114650223A (en) | Network configuration method and device of Kubernetes cluster and electronic equipment | |
CN105871676B (en) | The method for connecting network and system of distal end virtual machine in a kind of desktop cloud |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171117 |
|
RJ01 | Rejection of invention patent application after publication |