Tag Archive for hassio

Gentoo USB serial passthrough KVM

I have a Conbee II Zigbee receiver. After a restart the USB passthrought stopped working (on the guest VM I always get errors like:

usb 2-2: new low-speed USB device number 25 using uhci_hcd
usb 2-2: Invalid ep0 maxpacket: 64 usb
usb2-port2: unable to enumerate USB device

So I decided, passthrough the USB serial. It’s a little tricky 🙂

    <serial type='dev'>
      <source path='/dev/ttyACM0'/>
      <target type='isa-serial' port='1'>
        <model name='isa-serial'/>
      </target>
    </serial>

The trick is the serial type because it is dev.

src: http://baitisj.blogspot.com/2021/02/serial-device-passthrough-from-linux.html

Hassio with supervisor on Gentoo by docker

Supervisor, first start

Docker pull:

docker pull homeassistant/qemux86-64-homeassistant:landingpage

Than, start it:

docker run -d --name hassio_supervisor \
--privileged \
--security-opt apparmor:unconfined \
--security-opt seccomp=unconfined \
-v /run/docker.sock:/run/docker.sock \
-v /run/dbus:/run/dbus \
-v "/opt/hassio/data":/data \
-e SUPERVISOR_SHARE="/opt/hassio/data" \
-e SUPERVISOR_NAME=hassio_supervisor \
-e HOMEASSISTANT_REPOSITORY="homeassistant/qemux86-64-homeassistant" \
homeassistant/amd64-hassio-supervisor:224