How to add VDI to VM(CLI)



  1. Get the uuid of SR.
  2. Similar to step 1 get the uuid of VM.
  3. Get the next available position for adding drive. In our case it is 3.
     
  4. Run the below command to add vdi to VM.
    xe vbd-create vm-uuid=<VM uuid> device=<position> vdi-uuid=<VDI UUID>

No comments:

Post a Comment