ZC:我的環境:Win7x64、VMware10
ZC:我的處理:
ZC: (1)、usb.generic.allowHID = "TRUE" (本來就有,將它的位置提前)
ZC: (2)、usb.generic.allowLastHID = "TRUE" (本來沒有,需要添加)
ZC: (3)、usb.present = "TRUE" (將原來的"FALSE"改成"TRUE")
ZC: (4)、啟動虛擬機的服務:VMUSBArbService(VMware USB Arbitration Service)
參考文章:
1、網頁內容保存:
在Vmware中使用USB鍵盤, USB鍵盤可以正常輸入, 但是在虛擬系統的設備管理器中仍然只顯示一個PS/2鍵盤,
插上USB鍵盤后, 也沒有出現新硬件提示. USB鍵盤應該顯示為"HID Keyboard Device".
解決方法:
先關閉虛擬機,編輯虛擬機的配置文件.vmx, 在 usb:0.present = "TRUE" 之前添加如下兩行:
usb.generic.allowHID = "TRUE"
usb.generic.allowLastHID = "TRUE"
再重新開啟虛擬機就行了。
注意,如果這個文件里面已經有一行 usb.generic.allowHID = "FALSE",就只需把FLASE改成TRUE,不要重復添加了,否則虛擬機打不開。(好象VM8創建的虛擬機配置文件里就有這行)
如果沒有usb.generic.allowHID = "TRUE"這行,在VM里就看不到USB鼠標鍵盤,就沒辦法讓虛擬系統連接USB鼠標鍵盤。
也可在VM8里“編輯虛擬機設置-USB控制器—勾選顯示所有USB輸入設備。這和直接在.vmx里添加usb.generic.allowHID = "TRUE"是一樣的。
插上USB鍵盤, 點擊VM菜單上的“虛擬機-移除設備-(相應的USB鼠標鍵盤和聲卡設備, 我這里是"GreenAsia AMP USB KB Pro")-與主機連接或斷開連接”,就可將USB鼠標鍵盤和USB聲卡分配給虛擬操作系統。
(如果沒有添加usb.generic.allowLastHID = "TRUE"這行,分配時就會出現“無法連接到此虛擬機的……”“主機需要輸入此設備”的提示窗口。)
上述紅字的意思就是: 相應的USB設備就不再受到主機的控制了, 而只供虛擬機使用。虛擬機中出現USB鍵盤設備HID Keyboard Device.
解決方法來自: "用VMware8.0實現主機一拖二,兩人共用一台主機"(http://www.clubstars.cn/blog/post/36.html)
2、我的 "E:\ZC_XuNiJi\xp_sp3_DriverStudio\xp_sp3_x86_pro_han_cd_vl_x14_74070.vmx",主要就是 加了 “usb.generic.allowLastHID = "TRUE"”,∵ “usb.generic.allowHID = "TRUE"” 原來就有 只是把它移動到 更前面的位置了
2.1、修改前 xp_sp3_x86_pro_han_cd_vl_x14_74070.vmx 的內容:
.encoding = "GBK" config.version = "8" virtualHW.version = "10" scsi0.present = "TRUE" memsize = "768" ide0:0.present = "TRUE" ide0:0.fileName = "xp_sp3_x86_pro_han_cd_vl_x14_74070.vmdk" usb.present = "FALSE" mks.enable3d = "TRUE" serial0.present = "TRUE" serial0.fileType = "thinprint" 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" hpet0.present = "TRUE" usb.vbluetooth.startConnected = "TRUE" displayName = "xp_sp3_x86_pro_han_cd_vl_x14_74070" guestOS = "winxppro" nvram = "xp_sp3_x86_pro_han_cd_vl_x14_74070.nvram" virtualHW.productCompatibility = "hosted" powerType.powerOff = "soft" powerType.powerOn = "soft" powerType.suspend = "soft" powerType.reset = "soft" extendedConfigFile = "xp_sp3_x86_pro_han_cd_vl_x14_74070.vmxf" uuid.bios = "56 4d c4 60 02 f9 a7 1e-49 13 8f be 66 5e 49 07" uuid.location = "56 4d c4 60 02 f9 a7 1e-49 13 8f be 66 5e 49 07" replay.supported = "FALSE" replay.filename = "" ide0:0.redo = "" pciBridge0.pciSlotNumber = "17" pciBridge4.pciSlotNumber = "21" pciBridge5.pciSlotNumber = "22" pciBridge6.pciSlotNumber = "23" pciBridge7.pciSlotNumber = "24" scsi0.pciSlotNumber = "16" usb.pciSlotNumber = "-1" vmci0.pciSlotNumber = "36" vmci0.id = "1141701829" monitor.phys_bits_used = "40" vmotion.checkpointFBSize = "134217728" cleanShutdown = "TRUE" softPowerOff = "TRUE" tools.remindInstall = "FALSE" tools.syncTime = "FALSE" unity.wasCapable = "FALSE" toolsInstallManager.updateCounter = "1" ide0:1.present = "TRUE" ide0:1.fileName = "xp_sp3_x86_pro_han_cd_vl_x14_74070-0.vmdk" ide0:1.redo = "" gui.lastPoweredViewMode = "fullscreen" checkpoint.vmState = "" serial1.present = "TRUE" serial1.autodetect = "FALSE" serial1.startConnected = "TRUE" usb.generic.allowHID = "TRUE" gui.exitOnCLIHLT = "TRUE" serial1.fileName = "\\.\pipe\com_2" ethernet0.present = "TRUE" sound.present = "TRUE" ethernet0.wakeOnPcktRcv = "FALSE" ethernet0.addressType = "generated" ethernet0.pciSlotNumber = "32" ethernet0.generatedAddress = "00:0c:29:5e:49:07" ethernet0.generatedAddressOffset = "0" sound.fileName = "-1" sound.autodetect = "TRUE" sound.pciSlotNumber = "33" serial1.fileType = "pipe" serial1.tryNoRxLoss = "TRUE" serial2.present = "FALSE" ehci.present = "FALSE" usb_xhci.present = "FALSE" ide1:0.present = "FALSE" floppy0.present = "FALSE"
2.2、修改后 xp_sp3_x86_pro_han_cd_vl_x14_74070.vmx 的內容:
.encoding = "GBK" config.version = "8" virtualHW.version = "10" scsi0.present = "TRUE" memsize = "768" ide0:0.present = "TRUE" ide0:0.fileName = "xp_sp3_x86_pro_han_cd_vl_x14_74070.vmdk" usb.generic.allowHID = "TRUE" usb.generic.allowLastHID = "TRUE" usb.present = "TRUE" mks.enable3d = "TRUE" serial0.present = "TRUE" serial0.fileType = "thinprint" 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" hpet0.present = "TRUE" usb.vbluetooth.startConnected = "TRUE" displayName = "xp_sp3_x86_pro_han_cd_vl_x14_74070" guestOS = "winxppro" nvram = "xp_sp3_x86_pro_han_cd_vl_x14_74070.nvram" virtualHW.productCompatibility = "hosted" powerType.powerOff = "soft" powerType.powerOn = "soft" powerType.suspend = "soft" powerType.reset = "soft" extendedConfigFile = "xp_sp3_x86_pro_han_cd_vl_x14_74070.vmxf" uuid.bios = "56 4d c4 60 02 f9 a7 1e-49 13 8f be 66 5e 49 07" uuid.location = "56 4d c4 60 02 f9 a7 1e-49 13 8f be 66 5e 49 07" replay.supported = "FALSE" replay.filename = "" ide0:0.redo = "" pciBridge0.pciSlotNumber = "17" pciBridge4.pciSlotNumber = "21" pciBridge5.pciSlotNumber = "22" pciBridge6.pciSlotNumber = "23" pciBridge7.pciSlotNumber = "24" scsi0.pciSlotNumber = "16" usb.pciSlotNumber = "34" vmci0.pciSlotNumber = "36" vmci0.id = "1141701829" monitor.phys_bits_used = "40" vmotion.checkpointFBSize = "134217728" cleanShutdown = "TRUE" softPowerOff = "TRUE" tools.remindInstall = "FALSE" tools.syncTime = "FALSE" unity.wasCapable = "FALSE" toolsInstallManager.updateCounter = "1" ide0:1.present = "TRUE" ide0:1.fileName = "xp_sp3_x86_pro_han_cd_vl_x14_74070-0.vmdk" ide0:1.redo = "" gui.lastPoweredViewMode = "fullscreen" checkpoint.vmState = "" serial1.present = "TRUE" serial1.autodetect = "FALSE" serial1.startConnected = "TRUE" gui.exitOnCLIHLT = "TRUE" serial1.fileName = "\\.\pipe\com_2" ethernet0.present = "TRUE" sound.present = "TRUE" ethernet0.wakeOnPcktRcv = "FALSE" ethernet0.addressType = "generated" ethernet0.pciSlotNumber = "32" ethernet0.generatedAddress = "00:0c:29:5e:49:07" ethernet0.generatedAddressOffset = "0" sound.fileName = "-1" sound.autodetect = "TRUE" sound.pciSlotNumber = "33" serial1.fileType = "pipe" serial1.tryNoRxLoss = "TRUE" serial2.present = "FALSE" ehci.present = "FALSE" usb_xhci.present = "FALSE" ide1:0.present = "FALSE" floppy0.present = "FALSE" usb:1.speed = "2" usb:1.present = "TRUE" usb:1.deviceType = "hub" usb:1.port = "1" usb:1.parent = "-1" usb.autoConnect.device0 = "path:1/0/0/1 autoclean:1" usb:0.present = "TRUE" usb:0.deviceType = "hid" usb:0.port = "0" usb:0.parent = "-1" usb.autoConnect.device1 = "path:1/1/0/0 autoclean:1"
3、
4、
5、