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

    Remove VUSB as part of job

    Scheduled Pinned Locked Moved Xen Orchestra
    xenorchestravusbjobsxcp-ng
    4 Posts 4 Posters 1.1k Views 1 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.
    • w21frosterW Offline
      w21froster
      last edited by

      I am looking to automate backups for a VM on XCP-NG that has vUSBs attached. I was thinking of a job sequence that went something like this: shut down vm, remove vusb, backup, reattach vusb, start up vm. Is this possible with Xen Orchestra jobs? Is there any better way to do this?

      B 1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        First thing I have in mind is to use xo-cli, but I'm not sure you can play with vUSB in this CLI.

        A kind of workaround would be to have a cron in the host that will shutdown and unplug the USB device (just before the backup job), and then will do the opposite few minutes later.

        1 Reply Last reply Reply Quote 0
        • ForzaF Offline
          Forza
          last edited by Forza

          Might a different solution be to use a USB network bridge instead of direct attached USB? Something like this https://www.seh-technology.com/products/usb-deviceserver/utnserver-pro.html (There are different options available)... We use my-utn-50a with hardware USB keys and it has shown to be very reliable over the years.

          1 Reply Last reply Reply Quote 2
          • B Offline
            bpage @w21froster
            last edited by

            @w21froster Did you ever come up with a solution here?

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