[Pkg-libvirt-maintainers] Bug#510235: Bug#510235: libvirt-bin: virt-manager unable to connect to libvirtd as r/w (full VM management) on a local connection
Guido Günther
agx at sigxcpu.org
Tue Dec 30 18:50:29 UTC 2008
I'm using the same setup and it works fine here.
On Tue, Dec 30, 2008 at 12:22:04PM -0600, Miguel Enrique Cobá Martínez wrote:
> unix_sock_group = "libvirt"
> unix_sock_rw_perms = "0770"
> auth_unix_ro = "none"
> auth_unix_rw = "none"
It seems you can't access the rw socket.
You can also try:
cat /var/run/libvirt/libvirt-sock
It should give "cat: /var/run/libvirt/libvirt-sock-ro: No such device or
address" not "permission denied".
[..snip..]
> Verify that the libvirtd daemon is running with the default config:
>
> # ps ax| grep libvirtd
No output here? This is wrong.
[..snip..]
> You can only see the VMs (R/O mode: monitoring VM status only). That is,
> you cannot start/stop/pause the VM (R/W mode: full VM management). In
> the previous version you could.
>
> Now, as root, and using virsh you can start and stop the VM:
>
> laptop:~# virsh start WindowsXP
> Domain WindowsXP started
>
> laptop:~# virsh shutdown WindowsXP
> Domain WindowsXP is being shutdown
>
> The VM start and stop correctly and I can view it and use it with
> virt-manager (in R/O mode)
>
> But as normal user you can't start it:
>
> miguel at laptop:~$ virsh start WindowsXP
> Cannot set group when not running as root
> libvir: QEMU error : Domain not found
> libvir: QEMU error : Domain not found
> error: failed to get domain 'WindowsXP'
Try "virsh -c qemu:///system".
> Another thing I noticed, the previous version used to start the dnsmasq
> automatically (I had ENABLED=0 in /etc/default/dnsmasq). This versión
> doesn't start dnsmasq and therefore denies network capabilities to the VMs.
This again is an indication that you're mixing access to qemu:///system
and qemu:///session.
Please make sure you use either --connect=qemu:///system (connect to
daemon started via /etc/init.d/libvirt-bin) or --connect=qemu:///session
(started as user) and retest with virsh and virt-manager.
Which version of virt-manager is this? I'm using 0.6.0-6.
Cheers,
-- Guido
More information about the Pkg-libvirt-maintainers
mailing list