Bug 827346
| Summary: | How to rename a vm domain. | ||
|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | xuanmao <xuanmao_001> |
| Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | dyasny, eblake |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-05 12:32:07 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
xuanmao
2012-06-01 08:05:09 UTC
Your way is the current workaround. This is a very old feature request that no one has bothered to code up. *** This bug has been marked as a duplicate of bug 558160 *** Is there a old libvirt version including it? I want this function to develop. (In reply to comment #2) > Is there a old libvirt version including it? I want this function to develop. Bug 558160 is still open as a reminder that there is no version of libvirt that yet provides this feature. If you'd like to help develop this funciton, patches are welcome, in the context of that older bug. *** This bug has been marked as a duplicate of bug 558160 *** I am trying to use libvirt API implement. The same like virsh tools. virsh dumpxml myvm > foo.xml I used virDomainGetXMLDesc API to get xml description of domain, then convert to virDomainDef, and I changed def->name, the last I convert def back to xml. virsh undefine myvm I used virDomainUndefine. virsh define foo.xml I used virDomainDefineXML. These APIs all called successed. the domain name show on virt-manager was not changed yet,but the name show on open window was changed and details changed too. the vir-manager must reconnect, then the name is correct. use virsh tools is ok. Did I forget something? (In reply to comment #4) > I am trying to use libvirt API implement. The same like virsh tools. > Please - rather than re-opening this bug, how about we move the conversation to the open bug 558160. There is no point sticking the information in the duplicate bug, when it is the original bug that should be tracking this. *** This bug has been marked as a duplicate of bug 558160 *** |