連接器前置掛載U盾
連接器前置掛載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命令分析
[[email protected] 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盾