我在 Ubuntu 中使用 3G 调制解调器时遇到问题。我在 VirtualBox 中安装了 Ubuntu 14.04 并将其用作客户操作系统。我的主机操作系统是 Windows 7。通过 NAT 共享主机互联网时没有遇到问题,但当我通过 VirtualBox 将 3G USB 调制解调器连接到我的虚拟机时,我无法创建互联网连接。我在做什么?
1)我将调制解调器连接到 USB 端口并启动系统盘
:~$ lsusb
Bus 001 Device 003: ID 19d2:2003 ZTE WCDMA Technologies MSM
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
:~$
2)开始消息 |尾巴
:~$ dmesg | tail
[ 2653.255382] option 1-1:1.3: device disconnected
[ 2653.559296] usb 1-1: reset high-speed USB device number 3 using ehci-pci
[ 2664.265542] option 1-1:1.0: GSM modem (1-port) converter detected
[ 2664.268304] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 2664.268509] option 1-1:1.1: GSM modem (1-port) converter detected
[ 2664.270277] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 2664.270469] option 1-1:1.2: GSM modem (1-port) converter detected
[ 2664.272902] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 2664.273051] option 1-1:1.3: GSM modem (1-port) converter detected
[ 2664.273208] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
:~$
我以为这是检测到的调制解调器设备,但是当我尝试 消息 |中兴通讯:
:~$ dmesg | grep ZTE
[ 1440.974586] usb 1-1: Product: ZTE WCDMA Technologies MSM
[ 1440.974588] usb 1-1: Manufacturer: ZTE,Incorporated
[ 1440.974589] usb 1-1: SerialNumber: MF1900ZTED010000
[ 1442.189100] scsi 3:0:0:0: CD-ROM ZTE USB SCSI CD-ROM 2.31 PQ: 0 ANSI: 2
[ 2616.073844] usb 1-1: Product: ZTE WCDMA Technologies MSM
[ 2616.073846] usb 1-1: Manufacturer: ZTE,Incorporated
[ 2616.073848] usb 1-1: SerialNumber: MF1900ZTED010000
[ 3633.625971] usb 1-1: Product: ZTE WCDMA Technologies MSM
[ 3633.625976] usb 1-1: Manufacturer: ZTE,Incorporated
[ 3633.625980] usb 1-1: SerialNumber: MF1900ZTED010000
[ 3634.642422] scsi 5:0:0:0: CD-ROM ZTE USB SCSI CD-ROM 2.31 PQ: 0 ANSI: 2
:~$
此处设备被检测为 CD-ROM
3)开始sudo usb_modeswitch -v 0x19d2 -p 0x2003 -K
:~$ sudo usb_modeswitch -v 0x19d2 -p 0x2003 -K
Look for default devices
product ID matched
Found devices in default mode (1)
Access device 004 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
Manufacturer: ZTE,Incorporated
Product: ZTE WCDMA Technologies MSM
Serial No.: MF1900ZTED010000
Sending standard EJECT sequence
Looking for active driver
No active driver found. Detached before or never attached
Set up interface 0
Use endpoint 0x01 for message sending
Trying to send message 1 to endpoint 0x01
OK, message successfully sent
Read the response to message 1 (CSW)
Response reading failed (error -7)
Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!
4)尝试系统盘但设备的 vip:pid 没有改变
:~$ lsusb
Bus 001 Device 004: ID 19d2:2003 ZTE WCDMA Technologies MSM
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
:~$
5)创建移动宽带连接,但没有成功
6)我尝试了调制解调器管理器 GUI
(http://saveimg.ru/pictures/26-05-16/cb26d0e126b83cdfc39bc2c4cfad9766.png)但出现错误
http://saveimg.ru/pictures/26-05-16/91609535d0583c4592bd723233ba82c9.png