Configuration:
- Intel NUC i5
- Host OS Oracle Linux 9
- Virtualization KVM - QEMU emulator version 7.2.0 (qemu-kvm-7.2.0-14.el9_2)
- Guest HAOS haos_ova-10.1.qcow2
- Conbee II stick connected to USB2.0
First step - add guest virtual machine:
virt-install --name haos --description “Home Assistant OS” --os-variant=generic --ram=16384 --vcpus=2 --disk /var/lib/libvirt/images/haos_ova-10.1.qcow2,bus=sata --graphics none --boot uefi
Try to pass Conbee II to guest from KVM-cockpit / xml:
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x1cf1'/>
<product id='0x0030'/>
</source>
<address type='usb' bus='0' port='1'/>
</hostdev>
Cannot start zigbee2mqtt, error in log:
Error while starting zigbee-herdsman
Using zigbee-herdsman with settings: ‘{“adapter”:{“concurrent”:null,“delay”:null,“disableLED”:false},“backupPath”:“/config/zigbee2mqtt/coordinator_backup.json”,“databaseBackupPath”:“/config/zigbee2mqtt/database.db.backup”,“databasePath”:“/config/zigbee2mqtt/database.db”,“network”:{“channelList”:[11],“extendedPanID”:[221,221,221,221,221,221,221,221],“networkKey”:“HIDDEN”,“panID”:6754},“serialPort”:{“adapter”:“deconz”,“path”:“/dev/ttyACM0”}}’
Error: EIO: i/o error, write
Follow this topic
I’ve add to xml guest config:
<serial type="dev">
<source path="/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DEXXXXXXX-if00"/>
<target type="usb-serial" port="1">
<model name="usb-serial"/>
</target>
<address type="usb" bus="0" port="4"/>
</serial>
Guest fails starting:
usb-serial is not supported in this QEMU binary
I’m running out of ideas where the problem could be