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

    Get VM from <ID>.vhd from Storage-Record

    Scheduled Pinned Locked Moved Xen Orchestra
    7 Posts 3 Posters 1.8k 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.
    • F Offline
      fluffy-bunny
      last edited by

      Hi there!

      Our customer creates the Disc-Images of its VMs on the Local Storage Record under /run/sr-mount/<ID>/<ID_of_Disk_Image>.vhd. ...

      This path is also mounted in XOA... Now I wanna get the specified VM for the matchig disk-Image. How can I get this with xe-commands?

      I can't find the concerned VM to a spcial Disk-Image.

      Thanks for your help.

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

        Hi,

        It's unclear. What do you want to achieve exactly? Functionally speaking.

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          fluffy-bunny @olivierlambert
          last edited by

          @olivierlambert said in Get VM from <ID>.vhd from Storage-Record:

          Hi,

          It's unclear. What do you want to achieve exactly? Functionally speaking.

          Hi!

          I want to get the respective VM to an VHD (Disk) File. Hops that's clearer...

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

            But why? What's the purpose? What do you want to achieve in the end?

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              fluffy-bunny @olivierlambert
              last edited by

              @olivierlambert said in Get VM from <ID>.vhd from Storage-Record:

              But why? What's the purpose? What do you want to achieve in the end?

              I wanna know which Disk from which VM needs more space because we've an Disk-Alert on the SR in our Monitoring and I wanna know the exact VM.
              But when I hover ofer the Disks from the VMs in XOA I can't find the respective VM.

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

                Just go in the SR view the, you'll see all disks. It's easy to spot the biggest disk. So I'm not sure to understand the issue?

                1 Reply Last reply Reply Quote 0
                • T Offline
                  tony
                  last edited by

                  @fluffy-bunny Use this to get your VBDs from each VM

                  xe vm-param-get param-name=VBDs uuid=<vm-uuid>
                  

                  Then to get the name of each VDI file use this

                  xe vbd-param-get param-name=vdi-uuid uuid=<vbd-uuid>
                  

                  But as olivier said, it is much easier to just use XO's disk view of the VM you want, then use the "copy" button to copy its VDI name.

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