Bug 996986
Summary: | virsh does not honor uri_default setting in /etc/libvirt/libvirt.conf | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | James Slagle <jslagle> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | berrange, clalancette, itamar, jforbes, jyang, laine, libvirt-maint, veillard, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-08-14 13:02:02 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
James Slagle
2013-08-14 12:16:12 UTC
The test steps you list work fine for me. $ virsh uri qemu:///session $ echo uri_default = \"qemu:///system\" >> ~/.config/libvirt/libvirt.conf $ virsh uri qemu:///system Do you have either LIBVIRT_DEFAULT_URI or VIRSH_DEFAULT_CONNECT_URI env variables set ? Those will override what's in the config file. (In reply to Daniel Berrange from comment #1) > The test steps you list work fine for me. > > $ virsh uri > qemu:///session > $ echo uri_default = \"qemu:///system\" >> ~/.config/libvirt/libvirt.conf > $ virsh uri > qemu:///system Yes, setting the value in ~/.config/libvirt/libvirt.conf does work for me as I noted. Setting it in /etc/libvirt/libvirt.conf is what does not work. > Do you have either LIBVIRT_DEFAULT_URI or VIRSH_DEFAULT_CONNECT_URI env > variables set ? Those will override what's in the config file. No. (In reply to James Slagle from comment #2) > (In reply to Daniel Berrange from comment #1) > > The test steps you list work fine for me. > > > > $ virsh uri > > qemu:///session > > $ echo uri_default = \"qemu:///system\" >> ~/.config/libvirt/libvirt.conf > > $ virsh uri > > qemu:///system > > Yes, setting the value in ~/.config/libvirt/libvirt.conf does work for me as > I noted. > > Setting it in /etc/libvirt/libvirt.conf is what does not work. That works if you are running virsh as root. The /etc/libvirt directory is intentionally not readable by non-root users, since some of the files there may contain passwords. |