XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    VUSB keeps disappearing

    Scheduled Pinned Locked Moved Management
    7 Posts 3 Posters 172 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nuentes
      last edited by

      I have a VM that only has NUT installed. I have a VUSB for my CyberPower UPS that passes through to it. I've noticed that the VUSB keeps disappearing. A couple of days ago, I noticed that PeaNUT was reporting that NUT was offline. I checked this VM, and saw that the VUSB had not just disconnected, but it was completely unplugged as well. I thought nothing of it, shut down the VM, added the VUSB, and booted again.

      Today I just noticed the same thing. The VUSB does not even show in the list of VUSBs in XOA. Now, I'm certain you'll tell me that the physical USB disconnected or something. I'm sure that this is the expected behavior in that scenario. But that definitely didn't happen. I just want to know what I should look at to troubleshoot this? How can I see when a VUSB disconnected, and maybe figure out what steps led to that?

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        seanmcg182 @nuentes
        last edited by

        @nuentes Same issue here. I have 6 Cyberpower UPSs all attached to different VMs for monitoring. Theyre all disconnecting randomly. This did not happen before I updated XCP in the last couple months.

        And I know all 6 of them are not being physucally unplugged haha.

        While I have no solutions for you, I hope this gains some traction as its severely messing with my Energy monitoring.

        If you still want a way to know when it “disconnects”, I would recommend installing Powerpanel on the VM you’re using with the UPS, as it will log when communications are lost… However knowing when it happened won’t help you solve it unfortunately…

        BUT if you have a mail server, you could set it up to send you an email when comms are lost

        1 Reply Last reply Reply Quote 0
        • S seanmcg182 referenced this topic on
        • S Offline
          seanmcg182 @nuentes
          last edited by

          @nuentes I made a script about a year ago that I modified yesterday and today in response to this issue we're having.
          The updated script will reattach and restart VMs after a disconnection is detected.
          I have mine set on a cronjob every minute

          You will need to modify it a bit to match your VM name, and your single VM vs my 6 VMs, but hopefully this helps to some degree.

          Obviously, its not necessarily a "fix" to prevent the disconnections from happening in the first place, but it does at least minimize the downtime.

          https://xcp-ng.org/forum/topic/9050/script-to-auto-mount-usbs-on-boot-reboot-monitoring-multiple-ups

          good luck

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            ph7 @seanmcg182
            last edited by

            @seanmcg182 @nuentes
            I have read about VUSB "instability" and opted for PCI pass trough instead.
            Have been working solid since oct 24 with a zibee "router" in Home Assistant

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              seanmcg182 @ph7
              last edited by

              @ph7 unsure about @nuentes ’s hardware setup, but at least in my case I can’t pass through USB PCIe cards for some reason.

              I can’t remember the exact reason for this, as I discovered this years ago. Mightve been something about how older motherboard’s handle Serial HBAs? Something dealing with IOMMU and/or RMRR?

              Also in my case, itd be impractical to get 6 USB cards and pass then thru to 6 different VMs 😛

              N 1 Reply Last reply Reply Quote 0
              • N Offline
                nuentes @seanmcg182
                last edited by

                @seanmcg182

                Thanks for the help. The script is a great idea that I'll look at implementing. I have absolutely no idea how I'd take a USB drive and use PCI passthrough, so I'm just going to focus on on the script.

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  seanmcg182 @nuentes
                  last edited by

                  @nuentes For reference, the “PCI Passthrough” that was referenced involves buying a USB PCI card, and passing the card through.

                  If you need any help getting the script up, just respond here and I’ll do what I can to help. My comments in the script arent immaculate

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post