Bug 432174 - virt-viewer should honor VIRSH_DEFAULT_CONNECT_URI
Summary: virt-viewer should honor VIRSH_DEFAULT_CONNECT_URI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-viewer
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-09 11:47 UTC by Tim Niemueller
Modified: 2008-04-02 19:55 UTC (History)
1 user (show)

Fixed In Version: x
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-02 19:55:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim Niemueller 2008-02-09 11:47:35 UTC
Description of problem:
Currently it is convenient to set VIRSH_DEFAULT_CONNECT_URI if you are using
qemu/kvm instead of Xen to save some typing while using virsh. For virt-viewer
you still have to type the connect uri for every single action on the command
line making it rather inconvenient to use.

I'd propose to honor the environment variable as it is set for virsh already.

Version-Release number of selected component (if applicable):
virt-viewer-0.0.2-2.fc8

Steps to Reproduce:
1. export VIRSH_DEFAULT_CONNECT_URI="qemu:///system"
2. virsh list # (lists all domains)
3. virt-viewer DOMAIN # (fails as it tries to connect to Xen)
  
Actual results:
Fails to contact Qemu.

Expected results:
Should use environment variable and connect to Qemu.

Comment 1 Daniel Berrangé 2008-04-02 19:55:25 UTC
The latest version of libvirt has the generic LIBVIRT_DEFAULT_URI environment
variable. If the env var is not set it will also automaticaly probe for a
connection instead of assuming Xen.


Note You need to log in before you can comment on or make changes to this bug.