VMware virtualization technology training (6) Virtual Network and virtual storage

Source: Internet
Author: User

 

1. Configure the virtual network

The network configuration in vSphere is much more complex than that in VMware Workstation or Hyper-v. The following is a personal explanation.
First, for physical servers, six NICs are usually required in the production environment to connect to three different networks:
Two NICs are used to connect to the production network;
Two NICs are used to connect to the storage network;
Two NICs are used to connect to the management network.
The reason why two NICs are used for each network is to achieve redundancy.
The topology of the virtualization platform in the production environment is roughly as follows:
650) this. width = 650; "title =" 1.jpg" src = "http://img1.51cto.com/attachment/201307/092712649.jpg"/>

During our training, two NICs were installed on the physical server, but the instructor only enabled one of them and the other was not connected. In the production environment, the storage network and the production network must be separated.
Next, let's take a look at the virtual network. There are many concepts involved here.
A vswitch can be created through a physical Nic. A vswitch can consist of one or more physical NICs, but each physical Nic can belong to only one vswitch. All network functions in vSphere are implemented through vswitches. After ESXi is installed, the system automatically creates a vswitch named vSwitch0.
650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/0055395431-1.jpg"/>

Different functions can be implemented on vswitches. These functions can be implemented by VMKernel ports or port groups respectively. You can understand the VMKernel port and port group as follows:
Port Group for virtual machines. It is similar to NIC bridging in VMware Workstation. to connect a virtual machine to a physical network, you must first connect the virtual machine to a port group.
Specifies the VMKernel port used by the physical server. For example, if you want to perform vMotion migration between physical servers or connect a network storage device to a physical server, you must first create the corresponding VMKernel port.
The relationships between concepts in a virtual network are shown in:
650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/0055391544-2.jpg"/>

Next we will first create a port group.
Select a physical server in vCenter and enable the attribute settings of the vswitch in "configuration/network. Then, click "add" on the properties page to open the network connection creation Wizard:
650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/0055391048-3.jpg"/>

Select "Virtual Machine" as the connection type ":

650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/0055392M3-4.jpg"/>

Choose to create a port group on the vSwitch0 vswitch:

650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/005539B06-5.jpg"/>

Name the port group, which is called test. At the same time, the port group is not added to the vlan:

650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/00553944a-6.jpg"/>

After creating a port group, you can allocate it to virtual machines.

650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/0055394509-7.jpg"/>

All port groups on the same vswitch can communicate with each other. However, you can add Port groups to different VLANs to isolate virtual machines.
Next we will create a VMkernel port. In the previous VM creation operation, a VMkernel port is created when network storage is attached. Here we create a VMkernel port as the Management port for the physical server.
In the Add Network Connection Wizard, select Vmkernel as the connection type:
650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/0055392038-8.jpg"/>

The vswitch still selects vSwitch0:

650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/00553923Q-9.jpg"/>

Start the name manager2 for the VMkernel Port:

650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/00553a2X-10.jpg"/>

You must specify the IP address for the VMkernel Port:

650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/0055396342-11.jpg"/>

After the VMkernel port is created, we can use it to connect to and manage this physical server.

650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/0055393149-12.jpg"/>

 

2. Configure virtual storage

Storage is the mother of virtualization. As mentioned previously, many advanced virtualization functions, such as vMotion migration and DRS dynamic resource allocation, require the support of shared storage. Currently, the most commonly used shared storage is iSCSI.
The biggest advantage of iSCSI is that it can be implemented directly based on the current Ethernet, without any network transformation, because it directly encapsulates data in IP data packets for transmission.
650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/0055392454-13.jpg"/>

Is a typical iSCSI-based virtualization platform:

650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/00553932U-14.jpg"/>

ISCSI also involves some related concepts:
The initiator of iSCSI, that is, the client that uses the iSCSI storage device. For example, our Win7 system already comes with an iSCSI initiator, which can be used as the initiator to connect to the iSCSI storage device set in the network.
On the virtualization platform, the ESXi Server is an iSCSI initiator.
650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/0055392U7-15.jpg"/>

ISCSI target, that is, the storage device.
LUN, an iSCSI Logical Unit. A lun is similar to a Logical partition. You can assign an IP address to the lun and connect it to the initiator.
The process for attaching iSCSI storage to vCenter is roughly as shown in. The specific operation has been performed before the VM was created.
650) this. width = 650; "title =" 1.jpg" src = "http://www.bkjia.com/uploads/allimg/131228/00553a415-16.jpg"/>

 

This article is from the "one pot of turbidity wine" blog. For more information, please contact the author!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.