[Libvir] Any API available for renaming the guest OS

Hi, I couldn't direct API to rename Guest OS? -- Thanks&Regards Ajeesh

On Mon, Mar 03, 2008 at 12:14:33PM +0530, Ajishrao.r wrote:
I couldn't direct API to rename Guest OS?
We don't have an API to do this. I'm not even sure that virt technologies generally support this. It seems Xen doesn't. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top

xm has rename option, without reboot. Is theirs any specific reason why we don't have rename API? On Tue, Mar 4, 2008 at 3:29 AM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Mon, Mar 03, 2008 at 12:14:33PM +0530, Ajishrao.r wrote:
I couldn't direct API to rename Guest OS?
We don't have an API to do this. I'm not even sure that virt technologies generally support this. It seems Xen doesn't.
Rich.
-- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top <http://et.redhat.com/%7Erjonesvirt-top> is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top<http://et.redhat.com/%7Erjones/virt-top>
-- Thanks&Regards Ajeesh

On Tue, Mar 04, 2008 at 11:43:10AM +0530, Ajishrao.r wrote:
xm has rename option, without reboot.
Right, but not in the manpage.
Is theirs any specific reason why we don't have rename API?
Not particularly, just waiting for a patch. The QEMU driver looks like it could be easily modified to support changing the name, which is just stored within a memory structure qemud_vm_def. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top

In solaris in Man page of xm it show rename option rename oldname newname Renames the domain oldname to newname. On Tue, Mar 4, 2008 at 4:17 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Tue, Mar 04, 2008 at 11:43:10AM +0530, Ajishrao.r wrote:
xm has rename option, without reboot.
Right, but not in the manpage.
Is theirs any specific reason why we don't have rename API?
Not particularly, just waiting for a patch.
The QEMU driver looks like it could be easily modified to support changing the name, which is just stored within a memory structure qemud_vm_def.
Rich.
-- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top <http://et.redhat.com/%7Erjonesvirt-top> is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top<http://et.redhat.com/%7Erjones/virt-top>
-- Thanks&Regards Ajeesh
participants (2)
-
Ajishrao.r
-
Richard W.M. Jones