[libvirt-users] How could the admin do to grant me with permission to run virsh as unprivileged user?

Allen Qiu my1stbox at 163.com
Mon Oct 27 17:16:07 UTC 2014


Thank you! How could the admin do to grant me with permission to run virsh as unprivileged user? Also by configurating libvirtd.conf, unix_sock_group? 

2014-10-28



Allen Qiu



发件人:libvirt-users-request at redhat.com
发送时间:2014-10-28 00:00
主题:libvirt-users Digest, Vol 58, Issue 33
收件人:"libvirt-users"<libvirt-users at redhat.com>
抄送:

Send libvirt-users mailing list submissions to 
    libvirt-users at redhat.com 

To subscribe or unsubscribe via the World Wide Web, visit 
    https://www.redhat.com/mailman/listinfo/libvirt-users 
or, via email, send a message with subject or body 'help' to 
    libvirt-users-request at redhat.com 

You can reach the person managing the list at 
    libvirt-users-owner at redhat.com 

When replying, please edit your Subject line so it is more specific 
than "Re: Contents of libvirt-users digest..." 


Today's Topics: 

   1. Error starting Virtual Machine Manager: Failed to    contact 
      configuration server... (Allen Qiu) 
   2. What is the difference between running    "virt-manager" and 
      "sudo virt-manager"? (Allen Qiu) 
   3. Re: What is the difference between running "virt-manager" and 
      "sudo virt-manager"? (Sven Schwedas) 


---------------------------------------------------------------------- 

Message: 1 
Date: Mon, 27 Oct 2014 16:14:22 +0800 
From: "Allen Qiu"<my1stbox at 163.com> 
To: "libvirt-users at redhat.com"<libvirt-users at redhat.com> 
Cc: ??? <chengwu.wang at net263.com>,    'Bin Liu' <binliu_gh at yahoo.com> 
Subject: [libvirt-users] Error starting Virtual Machine Manager: 
    Failed to    contact configuration server... 
Message-ID: <5a1daafa.4851.14950ab9ff5.Coremail.my1stbox at 163.com> 
Content-Type: text/plain; charset="utf-8" 

Hi all! 
Do you have any idea about the following error message from virt-manager. I was trying to start it with "sudo virt-manager". Do you think I can fix this by simply restarting libvirtd? 
Regards, 
Allen 

Error starting Virtual Machine Manager: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Could not send message to GConf daemon: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.) 

Traceback (most recent call last): 
  File "/usr/share/virt-manager/virt-manager.py", line 383, in <module> 
    main() 
  File "/usr/share/virt-manager/virt-manager.py", line 315, in main 
    config = virtManager.config.vmmConfig(appname, appversion, glade_dir) 
  File "/usr/share/virt-manager/virtManager/config.py", line 98, in __init__ 
    self.conf.add_dir(self.conf_dir, gconf.CLIENT_PRELOAD_NONE) 
GError: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: Could not send message to GConf daemon: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.) 

2014-10-27 



Allen Qiu 
-------------- next part -------------- 
An HTML attachment was scrubbed... 
URL: <https://www.redhat.com/archives/libvirt-users/attachments/20141027/2e37a157/attachment.html> 

------------------------------ 

Message: 2 
Date: Mon, 27 Oct 2014 16:31:17 +0800 
From: "Allen Qiu"<my1stbox at 163.com> 
To: "libvirt-users at redhat.com"<libvirt-users at redhat.com> 
Cc: ??? <chengwu.wang at net263.com>,    "zoubinbin100 at 163.com" 
    <zoubinbin100 at 163.com>,    'Bin Liu' <binliu_gh at yahoo.com> 
Subject: [libvirt-users] What is the difference between running 
    "virt-manager" and "sudo virt-manager"? 
Message-ID: <6b47a489.4b48.14950bb1af4.Coremail.my1stbox at 163.com> 
Content-Type: text/plain; charset="utf-8" 

Hi all, 

What is the difference between starting virt-manager by "virt-manager" and by "sudo virt-manager"? It seems that there are two copy of virt-manager running in the background.  

When I run "virt-manager", I got a error of "Unable to open a connection to the libvirt management daemon. Libvirt URI is: qemu:///system Verify that: - The 'libvirtd' daemon has been started".  

Whereas when I run "sudo virt-manager", I got a error of "Error starting Virtual Machine Manager: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information." 

How should I deal with the two issues respectively? Is there any drawback by simply running "virt-manager"? 

Regards, 

Allen 

2014-10-27 



Allen Qiu 
-------------- next part -------------- 
An HTML attachment was scrubbed... 
URL: <https://www.redhat.com/archives/libvirt-users/attachments/20141027/6d6c6296/attachment.html> 

------------------------------ 

Message: 3 
Date: Mon, 27 Oct 2014 10:05:47 +0100 
From: Sven Schwedas <sven.schwedas at tao.at> 
To: libvirt-users at redhat.com 
Subject: Re: [libvirt-users] What is the difference between running 
    "virt-manager" and "sudo virt-manager"? 
Message-ID: <544E0AEB.4080005 at tao.at> 
Content-Type: text/plain; charset="iso-8859-1" 

On 2014-10-27 09:31, Allen Qiu wrote: 
> Hi all, 
>   
> What is the difference between starting virt-manager by "virt-manager" 
> and by "sudo virt-manager"? It seems that there are two copy of 
> virt-manager running in the background. 
>   
> When I run *"virt-manager",* I got a error of "*Unable to open a 
> connection to the libvirt management daemon. **Libvirt URI is: 
> qemu:///system **Verify that: - The 'libvirtd' daemon has been started*". 
>   
> Whereas when I run *"sudo virt-manager",* I got a error of *"Error 
> starting Virtual Machine Manager: Failed to contact configuration 
> server; some possible causes are that you need to enable TCP/IP 
> networking for ORBit, or you have stale NFS locks due to a system crash. 
> See **http://projects.gnome.org/gconf/**for information."* 
> **  
> How should I deal with the two issues respectively? Is there any 
> drawback by simply running "virt-manager"? 

You should set up correct permissions for libvirtd (cf. libvirtd.conf, 
unix_sock_group) and use virt-manager/virsh as unprivileged user. 

>   
> Regards, 
>   
> Allen 
>   
> 2014-10-27 
> ------------------------------------------------------------------------ 
> Allen Qiu 
>  
>  
> _______________________________________________ 
> libvirt-users mailing list 
> libvirt-users at redhat.com 
> https://www.redhat.com/mailman/listinfo/libvirt-users 
>  

--  
Mit freundlichen Gr??en, / Best Regards, 
Sven Schwedas 
Systemadministrator 
TAO Beratungs- und Management GmbH | Lendplatz 45 | A - 8020 Graz 
Mail/XMPP: sven.schwedas at tao.at | +43 (0)680 301 7167 
http://software.tao.at 

-------------- next part -------------- 
A non-text attachment was scrubbed... 
Name: signature.asc 
Type: application/pgp-signature 
Size: 648 bytes 
Desc: OpenPGP digital signature 
URL: <https://www.redhat.com/archives/libvirt-users/attachments/20141027/28f925c0/attachment.bin> 

------------------------------ 

_______________________________________________ 
libvirt-users mailing list 
libvirt-users at redhat.com 
https://www.redhat.com/mailman/listinfo/libvirt-users 

End of libvirt-users Digest, Vol 58, Issue 33 
********************************************* 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20141028/b9848f03/attachment.htm>


More information about the libvirt-users mailing list