技巧.【转】在虚拟机Vmware中使用HID设备(如USB免驱键盘)
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、
技巧.【转】在虚拟机Vmware中使用HID设备(如USB免驱键盘)的更多相关文章
- Linux从入门到放弃、零基础入门Linux(第三篇):在虚拟机vmware中安装linux(二)超详细手把手教你安装centos6分步图解
一.继续在vmware中安装centos6.9 本次安装是进行最小化安装,即没有图形化界面的安装,如果是新手,建议安装带图形化界面的centos, 具体参考Linux从入门到放弃.零基础入门Linux ...
- [机器学习] 虚拟机VMware中使用Ubuntu的联网问题
在VMware中安装Ubuntu要解决两个问题: 1.VMware Tools安装使用 2.Ubuntu联网的虚拟机设置 1.VMware Tools安装 它的作用就是使用户可以从物理主机直接往虚拟机 ...
- 使用Xshell5连接虚拟机VMware中安装的CentOS7系统
使用Xshell5连接VMware中安装的CentOS7系统 准备材料 Xshell 下载地址 VMware Workstation 12 Pro 下载地址 CentOS 7 64位系统 下载地址 安 ...
- 如何使用桥接模式使虚拟机VMware中的Redhat能上网
VMware中有三种网络连接方式可使其上网:桥接模式,NAT模式,host-only模式,下面详细介绍如何使用桥接模式使虚拟机中的Redhat连上互联网. Bridge(桥接)模式 在Bridge模式 ...
- Linux从入门到放弃、零基础入门Linux(第四篇):在虚拟机vmware中安装centos7.7
如果是新手,建议安装带图形化界面的centos,这里以安装centos7.7的64位为例 一.下载系统镜像 镜像文件下载链接https://wiki.centos.org/Download 阿里云官网 ...
- 虚拟机VMware中安装Ubuntu18.04
准备工作 Ubuntu 获取地址: 官网 清华镜像站 VMware 获取地址链接 安装过程 Vmware的安装过程此处不在赘述,不清楚如何安装的请自行百度,参见VMware14安装教程 然后就是Vmw ...
- 虚拟机VMware中的CentOS字符界面和图形界面切换
在虚拟机中安装CentOS后展示的界面是图形用户界面,想切换到命令模式,于是查了linux下切换模式的方法,可是按了ctrl+alt+f1.f2....f7都是没用,后来发现是因为按键冲突的原因 问题 ...
- Linux从入门到放弃、零基础入门Linux(第二篇):在虚拟机vmware中安装linux(一)超详细手把手教你安装centos分步图解
一.Vmware vmware介绍:VMware,Inc. (Virtual Machine ware)是一个“虚拟PC”软件公司,提供服务器.桌面虚拟化的解决方案.其虚拟化平台的产品包括播放器:它能 ...
- 在虚拟机(VMware)中安装Linux CentOS 6.4系统(图解) 转
一.下载最新版本Linux CentOS 1.打开官网地址:http://www.centos.org/,点击Downloads->Mirrors 2.点击CentOS ...
随机推荐
- ubuntu 安装低版本firefox
firefox 57以后很多插件不支持了,ubuntu16自带火狐版本59,想换回56. 1.下载想换回的版本 https://ftp.mozilla.org/pub/mozilla.org/fire ...
- Exchange Powershell:ForwardingAddress&InboxRule
查询在邮箱上设置的转发功能: Get-Mailbox -server MX01 -Filter {ForwardingAddress -like '*'} | Select-Object Name, ...
- mybatis框架(三)
mybatis框架
- 流畅的python 闭包
闭包 人们有时会把闭包和匿名函数弄混.这是有历史原因的:在函数内部定义函数不常见,直到开始使用匿名函数才会这样做.而且,只有涉及嵌套函数时才有闭包问题.因此,很多人是同时知道这两个概念的.其实,闭包指 ...
- 数据库引擎、索引、pymysql
一.数据库存储引擎 1.存储引擎 mysql中建立的库===>文件夹 库中建立的表===>文件 现实生活中我们用来存储数据的文件应该有不同的类型:比如存文本用txt类型,存表格用excel ...
- 聚合的安全类导航、专业的安全知识学习平台——By Me:)
以“基于对抗的安全研发”为初衷,让大家在工作中始终有安全意识.安全思维和安全习惯,几年前自己搭建了面向公司内部全员的安全晨报.现在站在“用户“的角度回头看看,觉得科目设计等很多方面都还有很多的不足: ...
- CWM是什么?
CWM [1] (CommonWarehouseMetamodel公共仓库元模型)是OMG组织在数据仓库系统中定义了一套完整的元模型体系结构,用于数据仓库构建和应用的元数据建模.公共仓库元模型指定的 ...
- 008-shiro与spring web项目整合【二】认证、授权、session管理
一.认证 1.添加凭证匹配器 添加凭证匹配器实现md5加密校验. 修改applicationContext-shiro.xml: <!-- realm --> <bean id=&q ...
- Excel数据常用操作,vlookup,text,trim,数据格式导致出错
数据有缺漏,需要在数据前面补零 =TEXT(F70,"000000") 前面是要操作的数据,后面是补几位 匹配数据(将一个表格中的数据进行匹配) =VLOOKUP(C2,aaa,4 ...
- Delphi 正则表达式之TPerlRegEx 类的属性与方法(5): Compile、Study
Delphi 正则表达式之TPerlRegEx 类的属性与方法(5): Compile.Study // Compile.Study var reg: TPerlRegEx; begin re ...