Univention Bugzilla – Bug 26692
Rename virtual machine name
Last modified: 2023-06-28 10:51:42 CEST
Es wäre wünschenswert, wenn der Name einer VM nachträglich editierbar wäre. Bei den administrativen Aufgaben in einem Unternehmen werden die VMs häufiger mal umbenannt und an die aktuell geltenden Konventionen angepasst. Da alle vergleichbaren Lösungen diese Funktionalität ebenfalls bieten, wäre es schön, wenn UVMM diese ebenfalls bereitstellen würde. +++ This bug was initially created as a clone of Bug #24711 +++ Mit der aktuellen Version von UVMM auf laiva kann man in den Eigenschaften einer virtuellen Maschine im Reiter "Allgemein" den Namen der virtuellen Maschine editieren. Das wird bei KVM zu Problemen führen, da min. Snapshots nicht mehr gefunden werden werden.
Die Funktionalität wird von libvirt noch nicht direkt unterstützt: 2009 gab es mal einen ersten Patch, leider dann ohne Follow-Up: <http://www.redhat.com/archives/libvir-list/2009-June/msg00117.html> Die Funktionalität steht aber 2011 immer noch auf der Wunschliste: <http://www.redhat.com/archives/libvir-list/2011-September/msg00366.html>
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4. If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
As renaming VMs in libvirt is not possible (for qemu it would required renaming lots of files, as VMs are indexed by $NAME and not by $UUID). As a compromise libvirt has the /domain/title element <https://libvirt.org/formatdomain.html#elementsMetadata> to configure a title for displaying - at least virt-manager implements this. The VM keeps it physical name on Disk, but the displayed name can be edited.
`virsh domrename` can nowadays renames virtual machine, but it has certain restrictions/limitations: - no snapshot must exist - storage volumes are not renamed - ...
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.