[Pkg-libvirt-maintainers] Bug#598149: Bug#598149: libvirt-bin: autostart fails on reboot

Guido Günther agx at sigxcpu.org
Mon Sep 27 13:45:13 UTC 2010


Hi Jean,
On Mon, Sep 27, 2010 at 03:14:46PM +0200, Jean-Louis Dupond wrote:
> Then the guests are started without any issue. Still I didn't change
> anything in the config/permissions between the boot & the restart of
> libvirt.
Maybe you didn't but one of the startup scripts might have done so.

[..snip..] 
> Can you create a guest device that uses tap0 for example.
> Then create tap0 with the owner of libvirt. And then try to start the
> guest.
> 
> This is my current setup. /etc/network/interfaces creates the tap devices
> with the libvirt owner, so that libvirt shouldn't have access to
> /dev/net/tun.
That's exactly what I have done. Note that the "permission denied" isn't
an error message from libvirt but from kvm/qemu itself trying to access
/dev/net/tun. That's why it shows up in /var/log/libvirt/<vm>.log.

Libvirt won't mess with /dev/net/tun if the interface type is ethernet.
I wonder if kvm should access /dev/net/tun at all though since tap0 is
already there?

I assume libvirt-kvm is a regular user from /etc/passwd? No LDAP or
similar involved? I'm really running out of ideas here.
Cheers,
 -- Guido





More information about the Pkg-libvirt-maintainers mailing list