修改vmx文件,添加如下字段
usb_xhci.autoConnect.device2
usb_xhci.autoConnect.device3
并设置虚拟机开机时自动连接usb设备,
此配置字段对U盘作用良好,好似对 无线键鼠不起作用?
每次虚拟机开机还得手动连接,而且下回再打开此虚拟机时,添加的配置字段会自动清除。
如有解决方案请联系我 e-mail:zulinfi@163.com
以下为vmx文件:
encoding = "GBK"
config.version = "8"
virtualHW.version = "12"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsisas1068"
sata0.present = "TRUE"
memsize = "3072"
mem.hotadd = "TRUE"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Windows 10_32税务开票用-cl1-000005.vmdk"
sata0:1.present = "TRUE"
sata0:1.autodetect = "TRUE"
sata0:1.deviceType = "cdrom-raw"
ethernet0.present = "TRUE"
ethernet0.connectionType = "bridged"
ethernet0.virtualDev = "e1000e"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.addressType = "static"
usb.present = "TRUE"
ehci.present = "TRUE"
ehci.pciSlotNumber = "34"
sound.present = "TRUE"
sound.virtualDev = "hdaudio"
sound.fileName = "VX2363 Series-1 (NVIDIA High De"
sound.autodetect = "FALSE"
mks.enable3d = "TRUE"
svga.graphicsMemoryKB = "1048576"
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 = "FALSE"
sensor.accelerometer = "disabled"
sensor.ambientLight = "disabled"
sensor.compass = "disabled"
sensor.gyrometer = "disabled"
sensor.inclinometer = "disabled"
sensor.location = "pass-through"
sensor.orientation = "disabled"
displayName = "Win10_32位办公开票"
guestOS = "windows9"
nvram = "Win10_32位办公开票.nvram"
virtualHW.productCompatibility = "hosted"
powerType.powerOff = "soft"
powerType.powerOn = "soft"
powerType.suspend = "soft"
powerType.reset = "soft"
extendedConfigFile = "Win10_32位办公开票.vmxf"
numa.autosize.vcpu.maxPerVirtualNode = "1"
numa.autosize.cookie = "10001"
uuid.bios = "56 4d 44 36 ce c7 5e 66-a3 13 35 75 e9 de 77 7b"
uuid.location = "56 4d 44 36 ce c7 5e 66-a3 13 35 75 e9 de 77 7b"
migrate.hostlog = ".\Windows 10 32办公开票-b1e8212e.hlog"
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "160"
usb.pciSlotNumber = "32"
ethernet0.pciSlotNumber = "192"
sound.pciSlotNumber = "33"
vmci0.pciSlotNumber = "35"
sata0.pciSlotNumber = "36"
scsi0.sasWWID = "50 05 05 66 ce c7 5e 60"
ethernet0.generatedAddressOffset = "0"
vmci0.id = "-193236920"
monitor.phys_bits_used = "42"
vmotion.checkpointFBSize = "4194304"
vmotion.checkpointSVGAPrimarySize = "33554432"
cleanShutdown = "FALSE"
softPowerOff = "FALSE"
usb_xhci:6.speed = "2"
usb_xhci:6.present = "TRUE"
usb_xhci:6.deviceType = "hub"
usb_xhci:6.port = "6"
usb_xhci:6.parent = "-1"
usb_xhci:7.speed = "4"
usb_xhci:7.present = "TRUE"
usb_xhci:7.deviceType = "hub"
usb_xhci:7.port = "7"
usb_xhci:7.parent = "-1"
svga.guestBackedPrimaryAware = "TRUE"
tools.syncTime = "FALSE"
vc.uuid = ""
policy.vm.mvmtid = ""
vm.genid = "6572508173046865130"
vm.genidX = "8686589763381290563"
checkpoint.vmState = ""
checkpoint.vmState.readOnly = "FALSE"
RemoteDisplay.vnc.enabled = "FALSE"
gui.lastPoweredViewMode = "fullscreen"
MemTrimRate = "30"
applianceView.coverPage.author = "zulinfi"
applianceView.coverPage.version = "1.0"
tools.upgrade.policy = "useGlobal"
sata0:1.startConnected = "FALSE"
toolsInstallManager.lastInstallError = "0"
toolsInstallManager.updateCounter = "17"
isolation.tools.hgfs.disable = "FALSE"
priority.grabbed = "normal"
priority.ungrabbed = "normal"
sharedFolder0.present = "true"
sharedFolder0.enabled = "true"
sharedFolder0.readAccess = "true"
sharedFolder0.hostPath = "Z:\各类软件"
sharedFolder0.guestName = "各类软件"
sharedFolder0.expiration = "session"
sharedFolder1.present = "true"
sharedFolder1.enabled = "true"
sharedFolder1.readAccess = "true"
sharedFolder1.writeAccess = "true"
sharedFolder1.hostPath = "D:\Users\Zulinfi@163.com_dropbox\各类文档"
sharedFolder1.guestName = "各类文档"
sharedFolder1.expiration = "session"
sharedFolder.maxNum = "8"
hgfs.mapRootShare = "TRUE"
tools.remindInstall = "FALSE"
applianceView.showAtPowerOn = "FALSE"
sharedFolder2.present = "true"
sharedFolder2.enabled = "TRUE"
sharedFolder2.readAccess = "true"
sharedFolder2.writeAccess = "true"
sharedFolder2.hostPath = "T:\下载"
sharedFolder2.guestName = "下载"
sharedFolder2.expiration = "never"
sharedFolder3.present = "true"
sharedFolder3.enabled = "true"
sharedFolder3.readAccess = "true"
sharedFolder3.hostPath = "Z:\字体"
sharedFolder3.guestName = "字体"
sharedFolder3.expiration = "session"
sharedFolder4.present = "true"
sharedFolder4.enabled = "true"
sharedFolder4.readAccess = "true"
sharedFolder4.hostPath = "Z:\Program Files (x86)"
sharedFolder4.guestName = "Program Files (x86)"
sharedFolder4.expiration = "session"
sharedFolder4.writeAccess = "true"
sharedFolder5.present = "true"
sharedFolder5.enabled = "true"
sharedFolder5.readAccess = "true"
sharedFolder5.writeAccess = "true"
sharedFolder5.hostPath = "D:\Users\Zulinfi@163.com_dropbox\软件\电脑ERP"
sharedFolder5.guestName = "电脑ERP"
sharedFolder5.expiration = "session"
numvcpus = "1"
cpuid.coresPerSocket = "1"
vhv.enable = "FALSE"
RemoteDisplay.vnc.key = ""
sharedFolder6.present = "TRUE"
sharedFolder6.enabled = "TRUE"
sharedFolder6.readAccess = "TRUE"
sharedFolder6.writeAccess = "TRUE"
sharedFolder6.hostPath = "Z:\Program Files"
sharedFolder6.guestName = "Program Files"
sharedFolder6.expiration = "session"
templateVM = "FALSE"
gui.viewModeAtPowerOn = "windowed"
gui.applyHostDisplayScalingToGuest = "TRUE"
usb.generic.allowHID = "TRUE"
chipset.useAcpiBattery = "FALSE"
chipset.useApmBattery = "FALSE"
vmx.buildType = "release"
svga.autodetect = "TRUE"
svga.numDisplays = "1"
svga.maxWidth = "1920"
svga.maxHeight = "1080"
svga.vramSize = "134217728"
gui.exitAtPowerOff = "FALSE"
acpi.smbiosVersion2.7 = "FALSE"
acpi.mouseVMW0003 = "FALSE"
isolation.tools.copy.disable = "FALSE"
isolation.tools.dnd.disable = "FALSE"
isolation.tools.paste.disable = "FALSE"
usb:1.speed = "2"
usb:1.present = "TRUE"
usb:1.deviceType = "hub"
usb:1.port = "1"
usb:1.parent = "-1"
usb.autoConnect.device0 = ""
usb.autoConnect.device1 = ""
usb.autoConnect.device2 = ""
usb.autoConnect.device3 = ""
usb.autoConnect.device4 = ""
sound.enableAEC = "FALSE"
rollingTier0.uid = "1"
rollingTier0.interval = "86400"
rollingTier0.maximum = "1"
rollingTier0.clientFlags = "8"
rollingTier0.displayName = "自动保护快照"
rollingTier1.uid = "2"
rollingTier1.interval = "604800"
rollingTier1.baseTier = "1"
rollingTier1.baseTierInterval = "7"
rollingTier1.maximum = "1"
rollingTier1.clientFlags = "8"
rollingTier1.displayName = "自动保护快照"
rollingTier2.uid = "3"
rollingTier2.interval = "2419200"
rollingTier2.baseTier = "1"
rollingTier2.baseTierInterval = "28"
rollingTier2.maximum = "1"
rollingTier2.clientFlags = "8"
rollingTier2.displayName = "自动保护快照"
snapshot.numRollingTiers = "3"
workingDir = "."
rollingTier0.timeSincelast = "368729"
rollingTier1.timeSincelast = "368729"
rollingTier2.timeSincelast = "368729"
usb.autoConnect.device5 = ""
usb.autoConnect.device6 = ""
rollingTier1.baseTierSnapshotCount = "4"
rollingTier2.baseTierSnapshotCount = "4"
sharedFolder7.present = "true"
sharedFolder7.enabled = "true"
sharedFolder7.readAccess = "true"
sharedFolder7.writeAccess = "true"
sharedFolder7.hostPath = "D:\Users\QQData"
sharedFolder7.guestName = "QQData"
sharedFolder7.expiration = "session"
mks.keyboardFilter = "allow"
gui.exitOnCLIHLT = "TRUE"
ethernet0.address = "28:88:88:88:88:88"
serial0.startConnected = "FALSE"
usb_xhci.present = "TRUE"
usb_xhci.pciSlotNumber = "224"
usb_xhci.autoConnect.device0 = "path:1/2/2 autoclean:1"
usb_xhci:4.speed = "2"
usb_xhci:4.present = "TRUE"
usb_xhci:4.deviceType = "hub"
usb_xhci:4.port = "4"
usb_xhci:4.parent = "-1"
usb_xhci:5.speed = "4"
usb_xhci:5.present = "TRUE"
usb_xhci:5.deviceType = "hub"
usb_xhci:5.port = "5"
usb_xhci:5.parent = "-1"
usb_xhci.autoConnect.device1 = "path:1/2/3/1 autoclean:1"
usb_xhci.autoConnect.device2 = "vid:062a pid:4101 autoclean:1"
usb_xhci.autoConnect.device3 = "path:1/0/0/5 autoclean:1"
floppy0.present = "FALSE"
usb_xhci:8.present = "TRUE"
usb_xhci:8.deviceType = "hid"
usb_xhci:8.port = "0"
usb_xhci:8.parent = "4"
附上vmware.log文件