Quick Support

Für den Fernsupport von nicht verwalteten Geräten verwenden wir die sichere und schnelle Support-Software von AnyDesk.

Sie können unseren angepassten Client für Windows, MacOS und Linux unten herunterladen.

Windows Quicksupport
MacOS Quicksupport
Linux 64-Bit Quicksupport
Skip to content

XenServer bulk rename of VDIs

Ever had the issue that the VDI naming is incorrect?

However here is a script executable on the xenserver which takes the inventoryname of a virual machine and sets all attached VDI’s with a given name

#separator the for-loop is comma
IFS=','

#Collect and prepare VM uuids for export
for VMUUID in $(xe vm-list is-control-domain=false params=uuid --minimal);do
 VMNAMELABEL=$(xe vm-list uuid=$VMUUID params=name-label --minimal)
 echo "INFO: Naming $VMNAMELABEL"

 for VDIUUID in $(xe vbd-list vm-uuid=$VMUUID params=vdi-uuid --minimal);do
  #here gets the name set with postfix "-system"
  xe vdi-param-set uuid=$VDIUUID name-label=$VMNAMELABEL-system
 done

done

Cheers,
Mauricio

Dieser Beitrag hat einen Kommentar

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

ERROR: si-captcha.php plugin: securimage.php not found.

An den Anfang scrollen