KVM Plugin - Remove USB Device from VM Drop Down empty

  • While using the latest release of omv7 and the plugins the removal box of trying to remove a usb device online or offline (vm running or not) is empty. Last year I had a problem with the kvm plugin that usb devices are shown but the removal was not possible.


    Actually the removal option shows "no usb" device. Adding usb devices is possible, the remaining usb devices not connected to the vm are shown.


    Is there still a bug in the actually version of the usb removal option?

    • Offizieller Beitrag

    Did you report the problem last year and I said I fixed it? I will have to check into it.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Huh. Well, I fixed it again and 7.0.10 is in the repo now.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Testing "USB removal" with VM offline -> everything ok - all information is shown and removal is possible:


    Testing with running VM -> hm ok it shows "Bus Number and Device ID" and not the full description. Removal throws error:


    Failed to remove USB device.

    error: Failed to detach device from /tmp/virsh_usbXE4KCM

    error: device not found: device not present in domain configuration

    virsh detach-device --domain Windows-Server-2022 --file '/tmp/virsh_usbXE4KCM' --persistent --config --live


    OMV\Exception: Failed to remove USB device.

    error: Failed to detach device from /tmp/virsh_usbXE4KCM

    error: device not found: device not present in domain configuration

    virsh detach-device --domain Windows-Server-2022 --file '/tmp/virsh_usbXE4KCM' --persistent --config --live in /usr/share/openmediavault/engined/rpc/kvm.inc:3298

    Stack trace:

    #0 /usr/share/openmediavault/engined/rpc/kvm.inc(2229): OMVRpcServiceKvm->virshCommand()

    #1 [internal function]: OMVRpcServiceKvm->removeUsb()

    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()

    #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()

    #4 /usr/sbin/omv-engined(535): OMV\Rpc\Rpc::call()

    #5 {main}

    • Offizieller Beitrag

    Fixed in 7.0.11 in the repo now.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    ong description now visible.

    Long description is only show when the usb drive is passed through using vendor and product id.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!