virsh list authentication
I am trying out some of the command line virsh and virt- commands on a RHEV host that contains KVM guests under RHEV 3.0 beta 4. I am finding some of the command like virt-list-filesystems to be very nice.
But, "virsh list" asks for authentication user and password. Does anyone know what user it is looking for?
Here is some output:
# virsh list
Please enter your authentication name: admin
Please enter your password:
error: Failed to reconnect to the hypervisor
error: no valid connection
error: authentication failed: authentication failed
# virsh list
Please enter your authentication name: root
Please enter your password:
error: Failed to reconnect to the hypervisor
error: no valid connection
error: authentication failed: authentication failed
Responses
When VDSM is managing a node libvirt is set to allow readonly mode (eg virsh --readonly list) any commands that require write access are locked down.
The virt-* commands you mentioned come from libguestfs, which isn't integrated with RHEV yet.
Hi,
I have gained access by creating a user on each RHEV server:
saslpasswd2 -a libvirt username
And then login with it.
Alisson.
Since RHEV hosts are managed by VDSM, that in turn uses some parts of the libvirt functionality, you should be using VDSM's command line tool - vdsClient.
To run a VM, you need to run vdsClient -a 0 create <params>
virsh will not be able to power a VM on anyway, because the hosts do not hold VM XML definitions. To really protect against RHEV-M outages you need to secure your RHEV-M - set it up in HA mode and/or keep a local DR backup
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
