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

    Backup with USB passthru workaround?

    Scheduled Pinned Locked Moved Xen Orchestra
    featurein backlog
    8 Posts 3 Posters 1.7k Views 2 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.
    • J Offline
      jensolsson.se
      last edited by marcungeschikts

      Hi

      I have a development machine on xcp-ng, and I had to use Bluetooth for a project so I enabled USB passthru in order to access the Bluetooth device on the machine.

      I also in another project have a couple of modems connected to a VM on VMWare ESXi.

      None of these would require constant access to the hardware. It would be perfectly OK to disable USB passthru while doing backups and I am sure there are other users who have a similar need.

      Would it be possible to add a setting in Backup. "Disable USB passthru if required" I am thinkink then that USB passthru could be disabled during backup and then enabled again.

      Kind regards
      Jens

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

        I think there's already an issue around, to understand why a VM with passthrough can't be snapshot.

        marcungeschiktsM 1 Reply Last reply Reply Quote 0
        • marcungeschiktsM Offline
          marcungeschikts Vates 🪐 Project mgmt @olivierlambert
          last edited by

          Indeed it is in our backlog : USB passthrough with snapshots
          and we will need to groom it (study it) before starting development.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jensolsson.se
            last edited by

            @olivierlambert @marcungeschikts I saw in the recent release notes that it should be possible but that it will shut down and start the vm again? Did I dream this or did I understand it right?
            My VM with USB is still not backing up, maybe there is a setting somewhere I need to enable?

            Kind regards
            Jens

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

              You need to be on latest XOA release channel.

              The only condition is to have an "offline snapshot" enabled for this backup job (shutdown the VM, unplug the vUSB device, snapshot, re-attach the device, start the VM).

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                jensolsson.se @olivierlambert
                last edited by

                @olivierlambert Thanks @olivierlambert it did indeed work well!
                I did not know I had to create a separate backup job, thought I could set it on one VM in the existing backup job, but I now understand the setup

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

                  Yeah, "offline" backup is for the whole job, so if you don't want to have your other VMs stopped for the snapshot, you can have a dedicated "offline" job while keeping "normal" for the rest 🙂

                  But at least now you can do those backup for vUSB enabled VMs!

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    jensolsson.se @olivierlambert
                    last edited by

                    @olivierlambert Yes this is really great. I have a windows box where I experiment with bluetooth a bit and having backup on this machine at least once a week or so feels very good I think 🙂
                    I think it also makes sense that a machine that needs to be taken down in order to make backup also probably will need another backup schedule.

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