[libvirt-users] How could the admin do to grant me with permission to run virsh as unprivileged user?
by Allen Qiu
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(a)redhat.com
发送时间:2014-10-28 00:00
主题:libvirt-users Digest, Vol 58, Issue 33
收件人:"libvirt-users"<libvirt-users(a)redhat.com>
抄送:
Send libvirt-users mailing list submissions to
libvirt-users(a)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(a)redhat.com
You can reach the person managing the list at
libvirt-users-owner(a)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(a)163.com>
To: "libvirt-users(a)redhat.com"<libvirt-users(a)redhat.com>
Cc: ??? <chengwu.wang(a)net263.com>, 'Bin Liu' <binliu_gh(a)yahoo.com>
Subject: [libvirt-users] Error starting Virtual Machine Manager:
Failed to contact configuration server...
Message-ID: <5a1daafa.4851.14950ab9ff5.Coremail.my1stbox(a)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/2e37a1...>
------------------------------
Message: 2
Date: Mon, 27 Oct 2014 16:31:17 +0800
From: "Allen Qiu"<my1stbox(a)163.com>
To: "libvirt-users(a)redhat.com"<libvirt-users(a)redhat.com>
Cc: ??? <chengwu.wang(a)net263.com>, "zoubinbin100(a)163.com"
<zoubinbin100(a)163.com>, 'Bin Liu' <binliu_gh(a)yahoo.com>
Subject: [libvirt-users] What is the difference between running
"virt-manager" and "sudo virt-manager"?
Message-ID: <6b47a489.4b48.14950bb1af4.Coremail.my1stbox(a)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/6d6c62...>
------------------------------
Message: 3
Date: Mon, 27 Oct 2014 10:05:47 +0100
From: Sven Schwedas <sven.schwedas(a)tao.at>
To: libvirt-users(a)redhat.com
Subject: Re: [libvirt-users] What is the difference between running
"virt-manager" and "sudo virt-manager"?
Message-ID: <544E0AEB.4080005(a)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(a)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(a)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/28f925...>
------------------------------
_______________________________________________
libvirt-users mailing list
libvirt-users(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users
End of libvirt-users Digest, Vol 58, Issue 33
*********************************************
10 years, 2 months
[libvirt-users] Error starting Virtual Machine Manager: Failed to contact configuration server...
by Allen Qiu
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
10 years, 2 months
[libvirt-users] Using virsh on OSX to control a VMs on a linux machine
by Johannes Kastl
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi everyone,
maybe this is a stupid thing, but Google found no answer. So, for the
next one trying this:
I have a linux server, that runs a couple of VMs, and on which libvirt
and virsh work like a charm. From time to time I'm on a Mac OSX
machine, where I can install libvirt from macports very comfortably.
But this far I have not gotten it to work with anything apart from the
virtualbox that is installed on osx.
I always get a hangup error, that is not listed on
http://wiki.libvirt.org/page/Failed_to_connect_to_the_hypervisor:
> error: failed to connect to the hypervisor error: internal error:
> received hangup / error event on socket
So I had to enter the path to the socket (on the linux machine), as
the OSX libvirt thinks it is in /opt/local/..., where the whole
macports stuff is. On linux it's in /var/run/libvirt/.
So, the following works:
> virsh -c
> qemu+ssh://example.org/system?socket=/var/run/libvirt/libvirt-sock
> list --all
Regards,
Johannes
- --
`Even if I could, I wouldn't. Scars can come in useful. I have one
myself above my left knee which is a perfect map of the London
Underground.´
(Albus Dumbledore, Harry Potter I)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
iEYEARECAAYFAlRLpysACgkQzi3gQ/xETbLb8QCeMXgA3A0erpPvc3fHpOWSnBYG
6AAAoI6e3+Kzk4Q30GBbixCgea6TBEGy
=RMS/
-----END PGP SIGNATURE-----
10 years, 2 months
[libvirt-users] libvirt guests graceful shutdown upon hosts powerdown/reboot
by lejeczek
hi everybody
by an assumption I expected VM guests to be shut down/off
gracefully when the host is being powered down or rebooted,
but this does not seem to be the case so I wonder..
Am I missing some libvirt components/packages ?
Or my assumption is incorrect and guests have to be shutdown
manually?
it's all SL 7 and guest are M$
regards
P.
10 years, 2 months
[libvirt-users] Specify hard disk type (immutable) in the domain.xml file
by fdytr ytruy
P { margin-bottom: 0.21cm; }Hi!
I'm using libvirt withVirtual Box. I have installed libvirt 0.10.2 and Virtual Box 4.1.
I want to use "virsh define"to define my Virtual Box virtual machine. My question is:
In my domain.xml, how can Ispecify that my hard disk is of type immutable/ multi attach etc. Can I use som kind oftag or attribute, something like this:
<disk type='file'device='disk'> <sourcefile='/path/to/my/file.vdi'/> <target dev='hda'bus='ide'/> <type>immutable</type> </disk>
In the domain.xml is it possible to specifythe path to my folder where I have my snapshot.vdi file?
Thanks!
LL
10 years, 2 months
[libvirt-users] LXC container OS upgrade How?
by mallu mallu
Can someone tell me how I can upgrade OS on a lxc container? I want to upgrade my containers from centos 6.4 to centos 6.5. I have upgraded the host on which these containers are running on to centos. But want to know how to upgrade the containers.
Thank you
10 years, 2 months
[libvirt-users] Public IP addresses are not logged in VMs
by Roland Giesler
Anyone that can help me solve this one?
I have around 4 VM's on a server and the network is bridged and a /28
public IP range assigned to it . When a client connects to one of the VM's,
they all always log the address of the host server, never the client ip
address.
How can I fix this?
Things I have investigated:
1. Switch to routed network. That would not help, since I would firstly
need another public IP subnet to route to (the virtual machines).
2. Could have something to do with the libvirt firewall rules, but they are
default, I didn't touch them
I have read many posts in forums and websites, but none make any mention of
this behaviour.
Help would really be great!
10 years, 2 months
[libvirt-users] Libvirt with containers
by Anjali Kulkarni
Hi,
I am trying to define a container using libvirt, and I need to allow access of the device /dev/uio0 on the host on the container as well. That is, I have the following line in the container config file:
lxc.mount.entry = /dev/uio0 dev/uio0 none bind,create=file
lxc.cgroup.devices.allow = c 249:1 rwm
And I want to add it in the libvirt XML file for the container.
I tried something like:
<filesystem accessmode="passthrough" type="mount">
<source file="/dev/uio0" />
<target dir="/dev/uio0" />
</filesystem>
But it gave me error:
root# virsh -c lxc:/// define lxc_v.xml
error: Failed to define domain from lxc_v.xml
error: missing source information for device /dev/uio0
Can someone pls help, how I can add the /dev/uio0 to the xml file?
Thanks
Anjali
10 years, 2 months