ESXi 5 Creates a disk bare map and a virtual machine NIC directly connected

Source: Internet
Author: User
Tags passthrough

First item: Create a disk bare map.


RDM (RAM Device Mapping) is a way for a virtual machine to use a physical disk directly through a map. VMware RDM is only for Sans (note: Map local disks are not provided).


RDM is a file on a VMFS volume that is like a proxy or medium to the original physical device. We can think of RDM as a symbolic chain to the original LUN. The RDM contains metadata and other information about the original physical device being accessed, depending on the configuration of the RDM and the ability to add features such as vmotion support and virtual machine snapshots using the original LUN.


Why use RDM instead of virtual disk files? VMware uses VMFS as a priority option for enterprise applications, including file servers, Web servers, EPR, and CRM. In previous versions of ESX server and VMFS, RDM was typically used to minimize VMFS expenses in order to improve disk performance. However, based on the comparisons made by VMware using VMFS-3, in most cases the disk performance between VMFS-3 and RDM is similar.


If you have the appropriate controller, you can configure the local device as RDM. The local storage device must be configured as RDM using the command line interface (CLI) and cannot be performed through VSphere Client .


First use the vsphere client to log on to the ESXi host or Vcenter host, and then open the SSH service on the corresponding physical host so that it can be logged on remotely through the CLI command line interface.


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/07/wKiom1Uev9-BVmuWAAEzS_4o19Q086.jpg "title=" 10.png "alt=" Wkiom1uev9-bvmuwaaezs_4o19q086.jpg "/>

View the disk information of the ESXi host after logging in

ls/vmfs/devices/disks/


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5D/02/wKioL1UewVeh9sxdAAFSC_OMRzA647.jpg "title=" 11.png "alt=" Wkiol1uewveh9sxdaafsc_omrza647.jpg "/>

Record the unique disk code (beginning with T10) that you need to open the disk identifier for the bare map (the physical disk cannot be used as a virtual disk)


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/02/wKioL1UewZ6gMNjFAA7B-QOxFTE758.jpg "title=" 12.png "alt=" Wkiol1uewz6gmnjfaa7b-qoxfte758.jpg "/>

Then copy the code from the command line


then enter the command

Vmkfstools-z/vmfs/devices/disks/t10. ata_____wdc_wd2003fyys2d02w0b0___________________wd2dwmay01803910_____/vmfs/volumes/datastore1/ Wd2dwmay01803910_____.vmdk

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5D/02/wKioL1UewiWBpl7HAACvVU73MjQ287.jpg "title=" 13.png "alt=" Wkiol1uewiwbpl7haacvvu73mjq287.jpg "/>

This is the path to the virtual disk file that is to create the corresponding mapping relationship (the size of the newly created RDM pointer file is the same size as the bare device it maps to, and it is a virtual file that does not occupy any storage space.) )


Once the creation is complete, you can add the corresponding disk to the virtual machine and select the DATASTORE1/WD2DWMAY01803910_____.VMDK of the existing disk file

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5D/07/wKiom1Uewdngb7GmAAFyfpN6eDI218.jpg "title=" 14.png "alt=" Wkiom1uewdngb7gmaafyfpn6edi218.jpg "/>

Okay, it's done.


---------------------------------------------------------------------------------------------------------------

Second item: Creating a virtual machine NIC directly connected

About Vmdirectpath I/O passthrough devices

You can connect up to two pass-through (ESX 4.0) devices and four pass-through (ESX 4.1) devices to a virtual machine. When selecting a device, keep the following restrictions in mind:

    • Do not plug the device after the PCI bridge.

    • The device must be located behind a PCI switch that supports ACS. For more information, see PCI passthrough (1036811) for PCIe devices after vSphere non-ACS switch (PCI Passthrough with PCIe devices behind a non-acs switch in vSp Here (1036811)).

    • Do not plug the device after the non-ACS switch. For more information, see PCI passthrough (1036811) for PCIe devices after vSphere non-ACS switch (PCI Passthrough with PCIe devices behind a non-acs switch in vSp Here (1036811)).

    • You cannot use the same PCI slots to plug in two devices with different usage scenarios, such as one used by VMkernel and the other in passthrough. For example, a dual-head NIC is dedicated to VMkernel or can be used for passthrough devices. If you select one, the other is automatically selected at the same time. A dialog box is displayed that tells you why this is happening.

Configuring a pass-through device

Before configuring, make sure that the vt-d feature is turned on in the bios of the physical host about the CPU.

Login to vsphere Client client, host configuration → hardware → advanced settings →vmdirectpath I/o settings → Edit

Select the appropriate network adapter (do not choose the other)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/02/wKioL1UexGaTANVaAAEqa9_2O_k962.jpg "title=" 2.png " alt= "Wkiol1uexgatanvaaaeqa9_2o_k962.jpg"/>


After the configuration, the icon will have a * * * arrow message saying that the host needs to be restarted to take effect.

Now restart the ESXi host by shutting down the existing virtual machine.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/07/wKiom1UexAvySZ5LAAH1v0SIUFI698.jpg "title=" 3.png " alt= "Wkiom1uexavysz5laah1v0siufi698.jpg"/>

Once the reboot is complete, the pass-through device is ready to use.

Now add the NIC to the virtual machine.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5D/02/wKioL1UexYXR9kODAAENC1Uy8y0466.jpg "title=" 4.png " alt= "Wkiol1uexyxr9kodaaenc1uy8y0466.jpg"/>

Add Hardware.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5D/07/wKiom1UexFXjZt1YAADwUYcBW9k776.jpg "title=" 5.png " alt= "Wkiom1uexfxjzt1yaadwuycbw9k776.jpg"/>

Choose a PCI device here

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5D/02/wKioL1UexazQYYNOAAFU0qLWLJg612.jpg "title=" 6.png " alt= "Wkiol1uexazqyynoaafu0qlwljg612.jpg"/>

Select the Passthrough device that is in effect after the restart

Note: You cannot use the Suspend feature of a virtual machine, you cannot create and restore a snapshot, you cannot use Vmotion ,


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/02/wKioL1Uexijhxzr1AADe_oVjWB0731.jpg "title=" 7.png " alt= "Wkiol1uexijhxzr1aade_ovjwb0731.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5D/07/wKiom1UexPiR9nPRAAGbcNCmxkM229.jpg "title=" 8.png " alt= "Wkiom1uexpir9npraagbcncmxkm229.jpg"/>


This article from "Professor elder brother" blog, reprint please contact the author!

ESXi 5 Creates a disk bare map and a virtual machine NIC directly connected

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.