[libvirt] How to rename a domain?

12 Oct
2010
12 Oct
'10
12:58 p.m.
Hi, I am using libvirt Java bindings. How can I rename a domain? Is there an API to do this? Thanks, -Ganesh

14 Oct
14 Oct
11:12 a.m.
On 10/12/2010 12:58 PM, Ganesh Pagade wrote:
Hi,
I am using libvirt Java bindings. How can I rename a domain? Is there an API to do this?
There is no API for it. The only way to do it is basically: virsh dumpxml myvm > foo.xml <edit foo.xml, change the name> virsh undefine myvm virsh define foo.xml - Cole
5445
Age (days ago)
5447
Last active (days ago)
1 comments
2 participants
participants (2)
-
Cole Robinson
-
Ganesh Pagade