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

    Move GPU Passthrough to new VM

    Scheduled Pinned Locked Moved Solved Hardware
    4 Posts 2 Posters 447 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.
    • B Offline
      bryantyson
      last edited by

      I have a GPU that is passthrough to a VM. I followed the steps here (https://xcp-ng.org/docs/compute.html#pci-passthrough) to do that, and it worked great.

      I now would like to move that GPU over to a new VM.

      How can I accomplish this? I tried the following command to move it to the new VM:

      xe vm-param-set other-config:pci=0/0000:02:00.0 uuid=<vm uuid>
      

      But now the GPU is assigned to both VMs and the first VM to start gets the GPU while the other VM fails to start.

      Thanks in advance for your help!

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

        You need to remove the param of the other-config:pci key for the other VM 🙂

        xe vm-param-remove param-name=other-config param-key=pci uuid=<VM TO REMOVE PCI PASSTROUGH>

        1 Reply Last reply Reply Quote 1
        • B Offline
          bryantyson
          last edited by

          Prefect! That was the command I was looking for.

          Thanks for your quick response!

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

            You are welcome 🙂

            1 Reply Last reply Reply Quote 0
            • olivierlambertO olivierlambert marked this topic as a question on
            • olivierlambertO olivierlambert has marked this topic as solved on
            • First post
              Last post