[libvirt-users] renaming a domain

Eric Blake eblake at redhat.com
Mon Oct 24 18:03:48 UTC 2011


On 10/24/2011 11:31 AM, Roberto Attias (rattias) wrote:
> Hello,
>
> In my system a VM  with a given domain name is defined and started. At a
> certain point I will define and start a new VM, with a different name. I
> then want to dispose of the old VM and rename the new one to the old
> one. Unfortunately I didn't find any API to do the last  step. Is it
> possible to change the domain name of a running VM?

Not currently, short of migrating the VM twice and using the 
rename-on-migration feature (which ends up creating a new qemu process, 
rather than reusing the existing one).  But the request has been made in 
the past, and if someone were willing to write patches, they would 
likely be accepted.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvirt-users mailing list