After reboot OMV KVM doesn't see USB-device

  • Actually, an error occurs which I don't know how to interpret or to solve. Does anybody know what I can do?

    Restart was done after installing 702-2.


    7.0.2-2 (Sandworm)

    Processor
    Intel(R) N100

    Kernel
    Linux 6.1.0-18-amd64


    It concerns a Zigbee stick which can be 'seen' in KVM add USB device, see att. It used to work. Now the KVM cannot start because of the error.


  • Thx, for the reply. It is not possible to start the VM because of the error. Also the 'remove USB' option is greyed out, nothing to delete. Deleting /tmp/virsh_usbJjW3uV doesn't do anything also. After trying to start the VM it pops up with a different name but no success in starting.


    Tried also to unplug the device, restart: no result.

    Restored the OS: to previous version OMV: same error.

    Restored snapshot VM: same error.


    Any other ideas, someone? What does the error means and how to solve this? Thx in advance :thumbup:

    Asus P42 Intel N100 | OMV 7 latest

    • Official Post

    the 'remove USB' option is greyed out

    If you have a Snapshot of a vm, the plugin does not allow, for example, disconnecting a hard drive. It probably won't let you disconnect a USB device connected to the vm either. You can try deleting the snapshots (or cloning the vm) and see if the button is then active.

  • Correct, deleting the snapshots activated the 'remove USB' button - but it is empty, no device to remove. Adding the USB device gives


    Code
    500 - Internal Server Error
    Failed to add USB device. error: Failed to attach device from /tmp/virsh_usb9zqXgE error: Requested operation is not valid: device is already in the domain configuration virsh attach-device --domain homeassistant --file '/tmp/virsh_usb9zqXgE' --persistent --config

    Still not able to start KVM, same error as in post #1


    Any other suggestions welcome or else I will have to setup the complete Homeassistant again, good exercise ;(

    (hope that that is a solution also - but a lot of work).

    Asus P42 Intel N100 | OMV 7 latest

  • Aha! Because of the snapshots I was not able to see the XML, now I do. I have deleted the hostdev part and now HA is up and running again, including the Zigbee stick (added again). Saves me a lot of work and only missing 1 day of data.


    Thx to both of you!


    BTW: besides a snapshot I also had a recent backup which I restored.

  • ruudm

    Added the Label resolved
  • ruudm

    Added the Label OMV 7.x
    • Official Post

    I know not many people read these details, but I added a new section to the KVM wiki document that explains how to avoid what happened in this thread.

    omv7:omv7_plugins:kvm [omv-extras.org]


    I will try to add in that section the most relevant parts of the plugin's GUI. I would appreciate contributions.

    • Official Post

    The alternative to editing the VM's xml directly is to access the VM from virt-manager which could be running as a docker on OMV itself, or on another Linux host

    Yes, that is a little later in the same document. https://wiki.omv-extras.org/do…_with_virt-manager_to_kvm

    The truth is that this document does not follow the same structure as other documents on the wiki. It was a bit complicated to describe everything and also explain how to create a vm, etc. That's why some explanations of specific GUI functions may be missing. Also ryecoaaron often adds features in this plugin, which is nice, but makes it difficult to follow all the details to document them :)

  • Main lesson learned was indeed the information about the snapshot. Wiki: so far so good.


    XML-editing (understanding) for me was quite difficult, learned also a lot from this thread about passtrough. You can do so much with KVM XML, how far to go with explaining on a Wiki for OMV? Explaining basic use seems fine to me. Know the options of the plugin and the rest is this forum or Google.

    Asus P42 Intel N100 | OMV 7 latest

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!