VMware Server 2.0 修改网卡为千兆网卡(成功率99%)

网上类似的文章很多,说的也都对,但是测试的时候你也许会发现,成功率太低了,你修改完vmx文件,启动虚拟机,又变成AMD的网卡

经过多次测试,终于找到成功率99%的方法了(不敢说100%成功,但至少我测试了10几遍都成功了)

 

首先创建虚拟机(假设创建名为“WIN_XP_SP3”的虚拟机,虚拟机配置文件的保存路径为“[standard] WIN_XP_SP3/WIN_XP_SP3.vmx”)

创建完后,点击“摘要”(Summary)标签中的“命令”(Commands)选项中的“配置虚拟机”(Configure VM)命令

在弹出来的“虚拟机配置”(VM Configuration)窗口中,选择“电源”(Power)标签,然后钩选“BIOS设置”(BIOS Setup)中的“下次启动虚拟机时进入BIOS设置”(Enter the BIOS setup screen the next time this virtual machine boots),点击“确定”保存

此时不要急着启动虚拟机,先编辑对应的vmx文件

添加 ethernet0.virtualDev = "e1000" 在所有ethernet0选项的前面

此时WIN_XP_SP3.vmx看起来应该类似下面这样(请注意红色部分)

============================================

.encoding = "GBK"
config.version = "8"
virtualHW.version = "7"
floppy0.present = "TRUE"
mks.enable3d = "true"
pciBridge0.present = "true"
pciBridge4.present = "true"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "true"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "true"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "true"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "true"
nvram = "WIN_XP_SP3.nvram"
virtualHW.productCompatibility = "hosted"
ft.secondary0.enabled = "true"
tools.upgrade.policy = "useGlobal"
powerType.powerOff = "soft"
powerType.powerOn = "hard"
powerType.suspend = "hard"
powerType.reset = "soft"

displayName = "WIN_XP_SP3"
extendedConfigFile = "WIN_XP_SP3.vmxf"

numvcpus = "2"
memsize = "384"
ide0:0.present = "true"
ide0:0.fileName = "WIN_XP_SP3.vmdk"
ide0:0.writeThrough = "true"
ide1:0.present = "FALSE"
ide1:0.fileName = ""
ide1:0.deviceType = "cdrom-raw"
ide1:0.allowGuestConnectionControl = "false"
ethernet0.virtualDev = "e1000"
ethernet0.present = "true"
ethernet0.allowGuestConnectionControl = "false"
ethernet0.features = "1"
ethernet0.wakeOnPcktRcv = "false"
ethernet0.networkName = "Bridged"
ethernet0.addressType = "generated"
guestOS = "winxppro"
uuid.location = "56 4d 7f c7 11 20 54 cc-63 c6 4e b5 63 0d 6b 64"
uuid.bios = "56 4d 7f c7 11 20 54 cc-63 c6 4e b5 63 0d 6b 64"
vc.uuid = "52 7c 07 04 44 da 30 27-39 08 4a 5f a1 5a cf 74"

bios.forceSetupOnce = "FALSE"

ethernet0.generatedAddress = "00:0c:29:0d:6b:64"
ide0:0.redo = ""
vmotion.checkpointFBSize = "134217728"
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
ethernet0.pciSlotNumber = "32"
vmci0.pciSlotNumber = "33"
ethernet0.generatedAddressOffset = "0"
vmci0.id = "-741645910"

ide1:0.startConnected = "TRUE"
tools.syncTime = "FALSE"
ide1:0.clientDevice = "TRUE"

============================================

就只需要添加红色部分的代码即可,保存此配置文件,别急,先别关掉配置文件(这步是最重要的)

保持配置文件处于打开状态(记得添加完上面代码后先保存一下)

然后启动虚拟机,因为之前已经设置了启动后进入BIOS,所以此时虚拟机应该进入到BIOS设置中了,定位到“BOOT”选项

看看最下面是不是有个“Network boot from Intel E1000”,如果看到了,恭喜,修改网卡类型成功了,此时可以按F10保存退出BIOS设置(要不要保存随便你,我是习惯把软驱选项给Disable,所以我此处用F10来保存BIOS设置)

退出BIOS设置后,可以关闭虚拟机配置文件了,之后就是安装操作系统什么的了,这里就不累述了

安装完操作系统,还得安装网卡驱动,因为这网卡驱动是不包含在VM里的,必须到Intel的网站上去下载

下载链接http://downloadcenter.intel.com/SearchResult.aspx?lang=zho&keyword=%22intel+pro+1000+MT%22

因为网卡驱动未安装,所以此时是无法从宿主机拷贝文件到虚拟机的(即使你安装了 VMware Tools 也一样)

此时可以将网卡驱动打包成ISO镜像,然后通过加载光驱的方法拷贝驱动文件到虚拟机中

 

附:

如果不想安装那些大型的ISO制作工具,可从此处下载我制作的ISO镜像工具
http://cid-169e8a9b664f174d.skydrive.live.com/self.aspx/.Public/Folder2ISO.exe
此工具只是简单的将Microsoft出品的CDImage Ver. 2.47打包并添加到右键菜单而已,可通过WinRAR打开查看。下载后,双击此程序(如果你不放心,可先用WinRAR打开,看看里面的bat文件都写了些什么),之后将你下载的Intel Pro 1000 MT驱动程序放到一个文件夹下,然后在此文件夹上右键,选择“生成ISO文件”即可

 

如果还想更省事,可以下载我打包的包含

FreeBSD、Linux、DOS、Win_2000
以下均包含32与64位驱动
Win_XP、Win_2003、Win_Vista、Win_2008

的Intel Pro 1000 MT驱动(Win 7可使用Vista的驱动)

这些驱动文件都是从Intel官方网站上下载的(2个rar包合计 68.8MB,解压后为70MB的ISO镜像)

http://cid-169e8a9b664f174d.skydrive.live.com/self.aspx/.Public/Intel%5E_Pro%5E_1000%5E_MT.part1.rar

http://cid-169e8a9b664f174d.skydrive.live.com/self.aspx/.Public/Intel%5E_Pro%5E_1000%5E_MT.part2.rar

posted @ 2010-04-17 11:37  consatan  阅读(7477)  评论(1编辑  收藏  举报