
On 09/25/2014 10:08 AM, Laszlo Ersek wrote:
On 09/25/14 14:59, Michal Privoznik wrote:
(3) I just realized that a domain's name can change during its lifetime.
Well, the only moment that we support that is migration. Otherwise the name can't be changed (it's not only varstore path that's derived from domain's name, consider snapshots, socket names, ...).
Ah! I didn't know this. It's very interesting because virt-manager in fact offers you to rename the VM -- the Details | Overview | Name field is editable, not just a label. (The UUID *is* a label.)
Yeah and virt-manager's support is basically a hack, since rename won't happen if there's nvram, or managed save, or snapshots for example. But the virt-manager support predates those bits, when rename wasn't too problematic. We really just need a proper 'rename' API that handles migrating all the hidden stuff that is dependent on VM name. - Cole