Summary: virtual machine installation is generally used to minimize the installation, the default no LSPCI tool. A virtual machine that tests the performance of a virtual network card requires a LSPCI tool to view the type of network adapter. This article describes specific steps for installing the LSPCI tool in a virtual machine.
Because you want to test the transmission efficiency of the different virtual NIC drive types on the virtual machine, you need to change the virtual network card type of the virtual machine and use the LSPCI tool to verify that the load is successful.
Virtual machine Operating system: CentOS6.0 i386.
When you start the virtual machine, type LSPCI, and the system prompts for this command. So I thought of installing this tool before testing. The installation process needs to address several issues: installation source? Which bag does lspci belong to?
Operation Steps:
1, the first solution to the problem of installation source. Because the virtual machine cannot be connected to the Internet, it cannot be installed via the Internet. Let's use the disc. Locate the original installation CD, put it in the host's CD drive, and click Connect on the virtual drive device to connect to the device. It is also possible to use ISO files.
2. Load the contents of the optical drive. Into the console of the virtual machine,
# mkdir/media/cdrom
# mount-t Iso9660/dev/sr0/media/cdrom
3, the use of localized Yum library, query Lspci belong to the Yum library which software package.
# yum--disablerepo=\*--enablerepo=c6-media whatprovides */lspci
c6-media/filelists_db | 4.7 MB 00:01 ...
PCIUTILS-3.1.4-9.EL6.I686:PCI Bus related utilities
Repo : C6-media
matched from:
Filename :/sbin/lspci
To query which software package is part of a program, you can also use
Yum provides */LSPCI
For the configuration of the Yum local library, see my article "Redhat, yum local software library settings for CentOS system"
4, the query results, belong to the Pciutils Toolkit, install the toolkit:
#yum--disablerepo=\*--enablerepo=c6-media Install pciutils
installing : pciutils-3.1.4-9.el6.i686 1/1
installed:
pciutils.i686 0:3.1.4-9.el6
complete!
5, installation complete, in the virtual machine console to query the type of network card
# Lspci | grep Ethernet
00:03.0 Ethernet controller:red Hat, INC Virtio Network
The virtual device virtio is currently in use.
You can now start a variety of performance tests for your NIC devices.
The above article uses the Yum View tool LSPCI the package and installs the method (detailed explanation) is the small series to share to everybody's content, hoped can give everybody a reference, also hoped that everybody supports the cloud habitat community.