On Thu, Mar 08, 2012 at 01:00:03PM +0100, RaSca wrote:
Hi all,
I'm using libvirt with qemu-kvm and virtualbox on the same system.
Everything is working, but I want to change the default uri fo virsh.
At the moment, if i run:
# virsh uri
vbox:///system
and because of this, if I try to list my vm(s) in this way:
# virsh list --all
Id Name State
----------------------------------
the output is empty. I need always to pass the uri:
# virsh -c qemu:///system list --all
Id Name State
----------------------------------
- ubuntu-vm shut off
So, is there a way to set the default uri to be qemu:///system? I looked
into /etc/default/libvirt-guests and /etc/default/libvirt-bin but I was
not able to find an options (setting URIS= does not work).
Set the following env
export LIBVIRT_DEFAULT_URI=qemu:///system
We support a config home $HOME/.libvirt/libvirt.conf for setting up
URI aliases, but we don't currently support setting the defautl URI
via the config file. If you file a BZ, we can easily fix that
omission
Regards,
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|