In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1, the requirements are as follows: the traditional serial port used by the SMS, wants to connect to the service, and can send text messages according to the service settings. The business service is a virtual machine running on kvm, but there is no interface to add usb1.0 on kvm, so you can only mount the usb serial port by writing your own xml.
2. Log in to the server to view the model and type of usb using the following command:
[server1] # lsusbBus 002 Device 002: ID 8087 Device 8002 Intel Corp.Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 001 Device 002: ID 8087 Device 800a Intel Corp.Bus 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 003 Device 002: ID 3689 purge 8762 Bus 003 Device 005: ID 096e:0006 Feitian Technologies, Inc.Bus 003 Device 009: ID 0403 Device 6001 Future Technology Devices International, Ltd FT232 Serial (UART) ICBus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
According to ID 0403 Vendor 6001 Future Technology Devices International, Ltd looks for Vendor and product corresponding to x.
[server1] # lsusb-v | grep 0403idVendor 0x0403 Future Technology Devices International, Ltd [server1] # lsusb-v | grep 6001Bus 003 Device 009: ID 0403 grep 0403idVendor 0x0403 Future Technology Devices International 6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC idProduct 0x6001 FT232 Serial (UART) IC
Examples of writing xm files are as follows
[server1] # vim usb.xml
Use virsh list to view the uuid of a virtual machine
[root@ceph-4 ~] # virsh list Id Name State--- 1 327066ab27f4463daaceb29d062ea486 running 2 358b22f708f64253ba845f7c81faa703 running 3 6e89ca538b19453e8a2858c5b429a8b9 running 4 fcf3f0c092524488a58a4086b4f82a10 running
Mount the usb device to the virtual machine
Mount usb device: virsh attach-device fcf3f0c092524488a58a4086b4f82a10 usb.10.xml uninstall usb device: virsh detach-device fcf3f0c092524488a58a4086b4f82a10 usb.10.xml
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.