码迷,mamicode.com
首页 > 其他好文 > 详细

连接器前置挂载U盾

时间:2017-05-16 09:57:12      阅读:432      评论:0      收藏:0      [点我收藏+]

标签:type   ice   2.4   enter   软件版本   des   stand   table   lin   

连接器前置挂载U盾

1. 宿主机配置及其信息

虚拟化软件版本

主机名

宿主机IP

账号及其密码  

WorkStation windows

idca- vm01

172.16.6.30

*

Qemu-kvm 1.5.3

idca- vm02

172.16.6.40

                *

Qemu-kvm 1.5.3

idca- vm03

172.16.6.50

                *

2.宿主机挂载U盾脚本

2.1宿主机172.16.6.40挂载脚本及其命令

 

脚本内容如下:

echo -n "

# Bus 002 Device 019: ID 163c:0620 ccb_b2b_wq

# Bus 002 Device 007: ID 1677:0024 ccb_b2c_hd  China Huada Integrated Circuit Design (Group) Co., Ltd. (CIDC Group)

# Bus 002 Device 006: ID 096e:0801 cncb_ft Feitian Technologies, Inc.

# Bus 002 Device 017: ID 1780:0401 icbc_te

# Bus 002 Device 020: ID 096e:a010 cmb_b2b  Feitian Technologies, Inc.

# Bus 002 Device 012: ID 096e:0703 Feitian Technologies, Inc.

"

virsh attach-device idca-bankicbc-42-clone /etc/libvirt/qemu/usbs/ukey_icbc_te_sumapay08.xml

virsh attach-device idca-bankcncb-44  /etc/libvirt/qemu/usbs/ukey_cncb_ft_smsx06.xml

virsh attach-device idca-bankccb-b2c-45  /etc/libvirt/qemu/usbs/ukey_ccb_b2c_hd_020.xml

virsh attach-device idca_w03_bkccb_b2b_101  /etc/libvirt/qemu/usbs/ukey_ccb_b2b_wq_wlpt03.xml

virsh attach-device idca_w03_bkcmb_b2b_105 /etc/libvirt/qemu/usbs/ukey_cmb_b2b_ft.xml

virsh attach-device idca_w03_bkcomm_b2b_103   /etc/libvirt/qemu/usbs/ukey_comm_b2b_00015.xml

virsh attach-device idca_w03_bkpab_87 /etc/libvirt/qemu/usbs/ukey_pkpab_ft3003.xml

## 挂载中 “ idca_w03_bkpab_87”指的是主机名

2.2宿主机172.16.6.40相应xml配置文件

ukey_ccb_b2b_wq_wlpt03.xml模板文件如下:

<hostdev mode=‘subsystem‘ type=‘usb‘>

<source>

<vendor id=‘0x163c‘/>      

<product id=‘0x0620‘/>

</source>

</hostdev>

#设备的ID号分别包括供应商号(vendor id):产品号(product id): 备注勿忘加”0x”

2.3宿主机172.16.6.50挂载脚本及其命令

 

脚本内容如下:

#!/bin/bash

 

echo -n "

Bus 001 Device 035: ID 096e:a010 Feitian Technologies, Inc.                  招商银行

Bus 001 Device 033: ID 096e:0703 Feitian Technologies, Inc.       平安银行

Bus 001 Device 019: ID 1677:0024 China Huada Integrated Circuit Design (Group) Co., Ltd. (CIDC Group)         建行b2c

Bus 001 Device 063: ID 163c:0620  建行b2b

Bus 001 Device 049: ID 1780:0401 工商银行

Bus 001 Device 062: ID 096e:0801 Feitian Technologies, Inc.       中信银行

"

 

virsh attach-device idca-bankpab-69 /etc/libvirt/qemu/usbs/ukey_pab.xml

virsh attach-device idca-bankcmb-b2b-66  /etc/libvirt/qemu/usbs/ukey_cmb.xml

virsh attach-device idca-bankccb-b2c-63  /etc/libvirt/qemu/usbs/ukey_ccb_b2c.xml

virsh attach-device idca-bankccb-b2b-64  /etc/libvirt/qemu/usbs/ukey_ccb_b2b.xml

virsh attach-device idca-bankicbc-67  /etc/libvirt/qemu/usbs/ukey_icbc.xml

virsh attach-device idca-bankcncb-62 /etc/libvirt/qemu/usbs/ukey_cncb.xml

2.4宿主机172.16.6.50相应xml配置文件

 

 

3.宿主机lsusb命令分析

 

[root@idca-vm02 usbs]# lsusb

Bus 001:指明设备连接到哪(那条总线)

Device 001:表明这是连接到总线上的第几台设备

ID:设备的ID   供应商号:产品号

Linux Foundation 2.0 root hub:生产商名字和设备名

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub

Bus 005 Device 017: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub

Bus 003 Device 002: ID 1c4f:0026 SiGma Micro Keyboard

Bus 005 Device 035: ID 0624:0248 Avocent Corp. Virtual Hub

Bus 005 Device 018: ID 096e:0703 Feitian Technologies, Inc.

Bus 005 Device 019: ID 1d99:0011 

Bus 005 Device 020: ID 096e:a010 Feitian Technologies, Inc.

Bus 005 Device 029: ID 163c:0620 

Bus 005 Device 030: ID 1780:0401 

Bus 005 Device 023: ID 1677:0024 China Huada Integrated Circuit Design (Group) Co., Ltd. (CIDC Group)

Bus 005 Device 024: ID 096e:0801 Feitian Technologies, Inc.

4.U盾挂载详细信息

宿主机

虚机名

银行名

U盾名

U盾ID

idca-vm01(172.16.6.30)

idca-bankicbc_32

工商银行

Tendyron Token(已换成软证书)

USB Mass Storage Device(USB\VID_1780&PID_0401\7&C6E4ACC&0&1)(已换成软证书)

idca-bankhxb-33

华夏银行

idca-bankcncb-34

中信银行

已下线

已下线

idca-bankccb-B2C_35

建行

China Huada Integrated Circuit Design uKeyCI800-K16

USB Mass Storage Device(USB\VID_1677&PID_0024\619371B292939525)

idca_w03_bkcmb_B2B_6.85

招商

Feitian USB_KEY

 

idca-w03_bkccb_b2b_6.81

建行

USB Device 163c:0620

USB Mass Storage Device(USB\VID_163C&PID_0620\BCF973119271)

idca_w03_bkicbc_b2b_6.82

工商银行

已换成软证书

已换成软证书

idca_w03_bkcomm_b2b_6.83_xin531

交通

无(不用)

idca_w03_bkpab_df_6.86

平安

Feitian USB TOKEN 3003

USB Mass Storage Device(USB\VID_096E&PID_0703\7&C6E4ACC&0&1)

idca_w03_bkpab_dk_6.36

平安

无(用的软证书)

 

 

 

 

 

 

 

 

 

idca-vm02(172.16.6.40)

idca-bankccb-b2c-45

建行

China Huada Integrated Circuit Design (Group) Co., Ltd. (CIDC Group)

1677:0024

idca-bankicbc-42-clone

工行

 

1780:0401

idca_w03_bkccb_b2b_101

建行

 

163c:0620

idca_w03_bkicbc_b2b_102

中信

idca-bankcncb-44

中信

Feitian Technologies, Inc

096e:0801

idca_w03_bkcmb_b2b_105

招行

Feitian Technologies, Inc.

096e:a010

idca_w03_bkpab_87

平安

Feitian Technologies, Inc.

096e:0703

idca_w03_bkcomm_b2b_103

交通

 

1d99:0011

idca-bankhxb-43

华夏

  idca_w03_bkpab_dk_6.88

平安

idca-vm03(172.16.6.50)

idca-bankccb-b2b-64

    建行

 

163c:0620

idca-bankccb-b2c-63

建行

China Huada Integrated Circuit Design (Group) Co., Ltd. (CIDC Group)

1677:0024

idca-bankcmb-b2b-66

招商

Feitian Technologies, Inc.

096e:a010

idca-bankcncb-62

中信

Feitian Technologies, Inc.

096e:0801

idca-bankhxb-61

华夏

idca-bankicbc-67

工行

idca-bankicbc-b2b-65

工行

idca-bankpab-69

平安

Feitian Technologies, Inc.

096e:0703

idca-bkpab-dk-70

平安

 

参考

# http://blog.csdn.net/robertsong2004/article/details/46619629

连接器前置挂载U盾

标签:type   ice   2.4   enter   软件版本   des   stand   table   lin   

原文地址:http://www.cnblogs.com/flyback/p/6859704.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!