[fedora-virt] selinux /dev/net/tun

Mark McLoughlin markmc at redhat.com
Thu Jan 29 08:52:29 UTC 2009


Hi James,

On Wed, 2009-01-28 at 21:34 -0500, James Hubbard wrote:
> I have a windows xp guest working using qemu-kvm with "-net nic -net
> user".  I'm attempting to use bridging. I've created the br0 interface
> and modified my eth0 file.  Bridging seems to be working. I'm able to
> access the machine from other places.

You follow the instructions here?

  http://wiki.libvirt.org/page/Networking

>   When I try to start  qemu-kvm
> with these options "-net nic,macaddr=11:22:33:44:55:66 -net tap" I get
> this error:
> warning: could not configure /dev/net/tun: no virtual network emulation
> Could not initialize device 'tap'
> 
> These errors are in /var/log/messages.
> setroubleshoot: SELinux is preventing qemu-kvm (qemu_t) "read write"
> to tun (virt_image_t). For complete SELinux messages. run sealert -l
> 2ca593ab-ec5f-407b-a6d5-291abc0b2e29

Strange. Do what it says and run 'sealert -l ...' to help figure out
what's wrong.

Does e.g. 'restorecon /dev/net/tun' help?

Cheers,
Mark.




More information about the Fedora-virt mailing list