版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、【精品文档】如有侵权,请联系网站删除,仅供学习与交流VMWare不支持eth-tool,mii-tool等工具及使用E1000网卡.精品文档.VMWare不支持eth-tool,mii-tool等工具及使用E1000网卡博客分类: 操作系统Vmware虚拟机LinuxWindows 在VMWare中安装Linux时发现无法使用eth-tool,mii-tool等工具查询网卡的信息,导致一些程序都不能工作,其实是虚拟网卡的问题。 一直以来,VMware都在虚拟客户机中提供的是古老的AMD PCNet10/100Mbps虚拟网卡,后来,VMware通过一种类似部分虚拟化的vmxnet优化虚拟网卡的
2、方式提供了10/100 /1000Mbps性能,无疑性能更好。现在,VMware ESX Server已经可以提供基于Intel E1000的千兆虚拟网卡,从兼容性和性能的角度来看,E1000都是更好的选择。但似乎,在ESX/ESXi 3.5的图形界面中,都无法直接选择该网卡类型,需要手动配置。一、为什么要用E1000原有很很 多,其中最主要的有两个:1、PCNet32 网卡太古老这个古老的意思是,该网卡已经不适应新操作 系统的要求了。而且也不支持mii-tool等检测工具,过去用虚拟客户机测试HA集群时,就无法监控虚拟的PCNet32 网卡。甚至在 Linux kernel的默认配置中,都需
3、要费一番功夫才能找到该网卡的编译模块选项。2、性能现 在的服务器基本都提供千兆的网卡,若虚拟客户机中仍只提供100Mbps虚拟网卡,性能肯定会降低的。另一方面,vmxnet与E1000的对比 中,也会发现E1000的效率更高,见这里。因此,建议把虚拟客户机中的网卡设置为Intel E1000类型。二、指定网卡类型2、默认配置在Linux中,为PCNet32 网卡:引用# lspci -v00:11.0 Ethernet controller: Advanced Micro Devices AMD 79c970 PCnet32 LANCE (rev 10)Subsystem: Advanced
4、Micro Devices AMD PCnet - Fast 79C971Flags: bus master, medium devsel, latency 64, IRQ 177I/O ports at 1400 size=128virtual Expansion ROM at 50000000 disabled size=64K# cat /etc/modprobe.conf|grep ethalias eth0 pcnet32# ethtool eth0Settings for eth0:Current message level: 0x00000007 (7)Link detected
5、: yes# mii-tool eth0SIOCGMIIPHY on eth0 failed: Operation not supported3、修改配置若希望把虚拟网卡类 型改为Intel E1000,直接修改对应虚拟客户机的.vmx文件:先关闭VMWare WorkStation,不然修改会被覆盖加入或修改:ethernet0.virtualDev = e1000保存即 可。若有多个网卡,采取同样的操作。值为e1000指定网卡类型为Intel(R) PRO/1000值为vlance指定网卡类型为AMD PCNet AM79C970A(默认为此项)值为vmxnet指定网卡类型为VMware
6、PCI Ethernet Adapter重启虚拟客户机后,可看到结果:引用# lspci -v00:13.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)Subsystem: VMware Inc Abstract PRO/1000 MT Single Port AdapterFlags: bus master, 66MHz, medium devsel, latency 0, IRQ 193Memory at f4840000 (64-bit, non-
7、prefetchable) size=128KMemory at f4810000 (64-bit, non-prefetchable) size=64KI/O ports at 14c0 size=64virtual Expansion ROM at 50010000 disabled size=64KCapabilities: dc Power Management version 2Capabilities: e4 PCI-X non-bridge device# cat /etc/modprobe.conf|grep ethalias eth0 e1000# ethtool eth0S
8、ettings for eth0:Supported ports: TP Supported link modes: 10baseT/Half 10baseT/Full100baseT/Half 100baseT/Full1000baseT/FullSupports auto-negotiation: YesAdvertised link modes:10baseT/Half 10baseT/Full100baseT/Half 100baseT/Full1000baseT/FullAdvertised auto-negotiation: YesSpeed: 1000Mb/sDuplex: Fu
9、llPort: Twisted PairPHYAD: 0Transceiver: internalAuto-negotiation: onSupports Wake-on: dWake-on: dCurrent message level: 0x00000007 (7)Link detected: yes# mii-tool eth0eth0: negotiated 100baseTx-FD, link ok下面是VMware Guest Operating System Installation Guide中的一段内容:The AMD Ethernet card driver include
10、d with certain Windows Vista buildsincluding 4074 and possibly othersdoes not work correctly or is not included with Windows. To use networking in these Windows Vista guest operating systems, you must change the network adapter. A driver for the vmxnet adapter is included in VMware Tools.VMware GSX
11、Server: Choose VM Settings Network Adapter (Windows) or VM Settings NIC (Linux), and select vmxnet as the virtual device to use. Then install VMware Tools. A driver for the vmxnet adapter is included in VMware Tools.VMware Workstation 4.x or lower, or VMware ACE, on a Windows host: Use a text editor
12、 such as Notepad to edit the configuration (.vmx) file for your Windows Vista virtual machine. Add the following line:Ethernetn.virtualDev = vmxnetReplace n with the number of the Ethernet adapter. The first Ethernet adapter is number 0, so the line for that adapter isEthernet0.virtualDev = vmxnetIn
13、clude a line for each Ethernet adapter configured for the virtual machine. Then install VMware Tools. A driver for the vmxnet adapter is included in VMware Tools.VMware Workstation 4.x or lower on a Linux host: Choose VM Settings, select Network Adapter, and then select vmxnet as the virtual device
14、to use. Then install VMware Tools. A driver for the vmxnet adapter is included in VMware Tools.VMware Workstation 5.0.x: Install VMware Tools. A driver for the network adapter is included in VMware Tools.VMware Workstation 5.5.x and VMware Server 1.x: Install VMware Tools. A vmxnet driver for the ne
15、twork adapter is included in VMware Tools. Installing VMware Tools automatically switches the network adapter to vmxnet, and installs the vmxnet driver.Alternatively, you can change the network adapter to e1000 (the Intel PRO/1000 MT Adapter) before installing Windows Vista. Use a text editor such a
16、s Notepad to edit the configuration (.vmx) file for your Windows Vista virtual machine. Add the following line:Ethernetn.virtualDev = e1000Replace n with the number of the Ethernet adapter. The first Ethernet adapter is number 0, so the line for that adapter isEthernet0.virtualDev = e1000Include a l
17、ine for each Ethernet adapter configured for the virtual machine.ESX Server 2.x: In the Hardware page, under Network Adapter, click Edit. In the Network Adapter page, in the Device Binding list, select the virtual network device that you want the virtual machine to use. In the Virtual Device list, c
18、hoose vmxnet. Then install VMware Tools. A driver for the vmxnet adapter is included in VMware Tools.ESX Server 3.x: Install VMware Tools. A vmxnet driver for the network adapter is included in VMware Tools. Installing VMware Tools automatically switches the network adapter to vmxnet, and installs the vmxnet driver.Alternatively, you can change the network adapter to e1000 (the Intel PRO/1000 MT Adapter) before installing Windows Vista. Use a text editor such as Notepad to edit the configuration (.vmx) file for your Windows Vist
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年保定职业技术学院单招职业技能测试题库含答案详解(能力提升)
- 2026年保定电力职业技术学院单招职业倾向性考试题库及答案详解1套
- 2026年兰州石化职业技术学院单招职业技能测试题库附参考答案详解(能力提升)
- 2026年北海康养职业学院单招职业适应性测试题库附参考答案详解ab卷
- 2026年南宁职业技术学院单招职业技能考试题库及答案详解(夺冠)
- 2026年南京工业职业技术大学单招职业技能测试题库带答案详解(新)
- 湖南省湖南师大附中2018届高三月考试卷(五)历史试题-含答案
- 四川省德阳五中2025-2026学年高三下学期教学质量监测(三模)语文试题含解析
- 山西省孝义市第四中学2026年高三下学期4月份月考英语试题含解析
- 甘肃省酒泉市敦煌中学2025-2026学年高三第一次联考试题物理试题试卷含解析
- 2025年重庆高考物理试卷试题真题及答案详解(精校打印)
- 土改田施工方案(3篇)
- 河北省衡水中学2026届数学高一上期末质量跟踪监视模拟试题含解析
- 安乐死协议书模板
- 2026内蒙古自治区行政执法人员专场招收1991人参考笔试试题及答案解析
- 断路器绝缘电阻试验方法
- 智能机械臂路径规划算法的创新探索
- 成自铁路成都罗家湾牵引站220千伏供电工程环境影响报告表
- 2025年绥化市中考地理试题卷(含答案解析)
- 作业人员安全管理档案
- 商务总监聘用协议书范本
评论
0/150
提交评论