Re: virsh + ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric sorry for private mail, I tought libvirt-list was the "To".

Le 04/01/2011 18:13, Daniel Huhardeaux a écrit :
Hi all

Le 03/01/2011 22:32, Eric Blake a écrit :
On 01/01/2011 03:38 AM, Daniel Huhardeaux wrote:
Hi,

connecting to a remote server using qemu+ssh is always done with root
user. The problem we face is that we don't allow root connection for ssh.

I haven't tried, but it seems to me like you should be able to do
qemu+ssh://user@remote/system in order to connect as user instead of root.

Following Justins link -which says the same that you- it works.

My problem was that I wanted to do it with virt-manager which only connect using URI qemu+ssh://root@remote/system :-(

I face a strange behavior: I added my user in libvirt group and modify libvirtd.conf to start with group libvirt. I restart libvirt-bin and:

virsh -c qemu+ssh:///system
dh@localhost's password:
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # list
 Id Name                 State
----------------------------------
  1 XPHome               running

virsh #

Now without connecting through ssh:

virsh
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # list
 Id Name                 State
----------------------------------

virsh #

So using virsh I don't see VM's! If I do 'sudo virsh' it's OK. What is wrong in my setup?

Thanks for your help

I got it: when you connect as an user with virsh it does't automatically connect to local system as it does as root user: virsh -c qemu:///system is the right command.

Thanks for your time.

PS: if someone knows how to connect virt-manager with ssh as a normal user, would appreciate to share :-)
--
Daniel

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]