Get VM from <ID>.vhd from Storage-Record
-
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.
-
Hi,
It's unclear. What do you want to achieve exactly? Functionally speaking.
-
@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...
-
But why? What's the purpose? What do you want to achieve in the end?
-
@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. -
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?
-
@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.