[gentoo-user] Qemu tun/tap privledge problem: HOWTO is wrong?

2007-12-18 Thread Grant Edwards
I've followed the HOWTO at http://gentoo-wiki.com/HOWTO:_Qemu,
but the section on TUN/TAP networking appears to be wrong where
it says

  I would recommend that you create the tap device with
  ownership to the user running qemu as follows
  
tunctl -u user -t tap0 

  This prevents having to run qemu as root in =2.6.18 

Even though I created tap0 with the command shown, I still have
to run Qemu as root or I get the following error:

qemu -kernel-kqemu -localtime -hda w2kdisk.img -net nic 
 -net tap,ifname=tap0,script=/usr/local/etc/qemu-ifup

warning: could not open /dev/net/tun: no virtual network emulation
Could not initialize device 'tap'

If I run qemu as root, it works fine.

-- 
Grant Edwards   grante Yow! My mind is a potato
  at   field ...
   visi.com

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Qemu tun/tap privledge problem: HOWTO is wrong?

2007-12-18 Thread Etaoin Shrdlu
On Tuesday 18 December 2007, Grant Edwards wrote:

 Even though I created tap0 with the command shown, I still have
 to run Qemu as root or I get the following error:

 qemu -kernel-kqemu -localtime -hda w2kdisk.img -net nic
  -net tap,ifname=tap0,script=/usr/local/etc/qemu-ifup

 warning: could not open /dev/net/tun: no virtual network emulation
 Could not initialize device 'tap'

 If I run qemu as root, it works fine.

You also have to chmod go+rw /dev/net/tun (if you haven't already), and 
probably modify the related udev rule to make the change persistent.
-- 
[EMAIL PROTECTED] mailing list