How To: Update VM Title with virsh
Use virsh desc command to update VM title in KVM
I’m updating and migrating the last few of virtual machines on one of my servers, and realised that there’s a virsh list command option that I really like: it shows descriptive titles in addition to just listing virtual machines.
You know, how we usually run virsh list to see the VMs currently running on a server?
Well, these VM names aren’t terribly informative. So I like using the virsh list –title command to show the list of VMs with their proper titles:
And if any VMs are not showing descriptive titles yet, it’s very easy to add it (–live means “apply to the running instance of the VM” and –config means “update the VM information on the disk”). Here’s an example forth dbm1 VM:
…and if we check again, dbm1 VM is now sporting a brand new description:
Use virsh desc command to update VM title in KVM
I’m updating and migrating the last few of virtual machines on one of my servers, and realised that there’s a virsh list command option that I really like: it shows descriptive titles in addition to just listing virtual machines.
You know, how we usually run virsh list to see the VMs currently running on a server?
Well, these VM names aren’t terribly informative. So I like using the virsh list –title command to show the list of VMs with their proper titles:
And if any VMs are not showing descriptive titles yet, it’s very easy to add it (–live means “apply to the running instance of the VM” and –config means “update the VM information on the disk”). Here’s an example forth dbm1 VM:
…and if we check again, dbm1 VM is now sporting a brand new description: