abiosoft / abiosoft/colima

serial usb device is not avaialble inside colima instance

Đang mở
#769 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
30.8k
Fork
613
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Description

Could not find zigbee stick "Sonoff Zigbee 3.0 USB Dongle Plus" in the list of devices.

### Version

Colima Version:
colima version 0.5.5
git commit: 6251dc2c2c5d8197c356f0e402ad028945f0e830
runtime: docker
arch: aarch64
client: v24.0.2
server: v23.0.6

Qemu Version:
limactl version 0.17.0

Lima Version:
qemu-img version 8.0.3
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers

### Operating System

- [ ] macOS Intel <= 12 (Monterrey)
- [ ] macOS Intel >= 13 (Ventura)
- [ ] macOS M1 <= 12 (Monterrey)
- [X] macOS M1 >= 13 (Ventura)
- [ ] Linux

### Output of `colima status`

INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/ivanf/.colima/default/docker.sock

### Reproduction Steps

1. plug usb device, ensure it is visible and accessible directly on host machine (using lsusb, stat, screen, starting zigbee2mqtt - all sucessfully)
```bash
lsusb | grep Zigbee
Bus 001 Device 001: ID 10c4:ea60 Silicon Laboratories, Inc. Sonoff Zigbee 3.0 USB Dongle Plus Serial: d42530dd743bec119dd19c957a0af07f
```
```bash
stat /dev/tty.usbserial-110
998129413 845 crw-rw-rw- 1 root wheel 150994948 0 "Aug 12 14:17:26 2023" "Aug 12 14:17:26 2023" "Aug 12 14:17:26 2023" "Jan 1 03:00:00 1970" 65536 0 0 /dev/tty.usbserial-110
```
3. create default colima instance with `colima start` (also tried with **--vm-type=vz** instead of qemu, and with **--vz-rosetta** - still no luck)
4. enter colima instance shell with `colima ssh`
5. list items in /dev - nothing suitable found
also noticed that list of items in output of **lsusb** is always the same, no matter if i plug dongle to the host or not.
also device **/dev/ttyAMA0** is always present, no matter if i plug dongle to the host or not.
6. try to start zigbee2mqtt in docker using device maping **/dev/ttyAMA0:/dev/ttyACM0**, get an error **Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)**

### Expected behaviour

_No response_

### Additional context

_No response_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.