Bug 488024
Summary: | [RFE] check "name" in Xen configuration before starting a VM | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Carsten Clasohm <clasohm> |
Component: | rgmanager | Assignee: | Lon Hohberger <lhh> |
Status: | CLOSED DUPLICATE | QA Contact: | Cluster QE <mspqa-list> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 5.3 | CC: | cluster-maint, edamato |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-05-14 16:11:23 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Carsten Clasohm
2009-03-02 08:55:05 UTC
Right, so either we need to: 1. enforce that the config file name is the same as the guest name 2. ignore the config file name and use the name parameter as provided by either the xm configuration file or the libvirt xml file I think #2 is the right solution here. So vm.sh should parse the xm or libvirt config file to extract the vm name instead of assuming vm name is the same as filename. Virsh does #2. Therefore, there is no work to be done on this bugzilla. [root@marge xen]# mv r5filebacked1 r5furious_awesomeness_config_file_name [root@marge xen]# virsh list Id Name State ---------------------------------- 0 Domain-0 running 16 r5filebacked0 idle [root@marge xen]# virsh list --all Id Name State ---------------------------------- 0 Domain-0 running 16 r5filebacked0 idle - r51pv2 shut off - r5filebacked1 shut off - r5filebacked2 shut off - r5filebacked3 shut off - r5filebacked4 shut off - rendertest shut off - rhel4domU0 shut off [root@marge xen]# virsh start r5filebacked1 Domain r5filebacked1 started [root@marge xen]# virsh destroy r5filebacked1 Domain r5filebacked1 destroyed [root@marge xen]# xm create r5filebacked1 Error: Unable to open config file: r5filebacked1 *** This bug has been marked as a duplicate of bug 412911 *** Making vm.sh parse all domain names in the path spec is going to be inefficient and error-prone; therefore, users wishing to use filenames which differ from their domain name must use virsh. |