[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

qemu does not start

When I start qemu on newly installed etch this is what I get:
$ qemu -net nic,macaddr=52:54:00:12:34:10 -net tap -hda root.img
warning: could not configure /dev/net/tun: no virtual network emulation
Could not initialize device 'tap'

$ ls -l /dev/net/tun
crw-rw-rw- 1 root root 10, 200 2007-05-01 18:37 /dev/net/tun

If I start same command with sudo everything run fine.
My /etc/qemu-ifup is as follows (it was functional with sarge)

$ cat /etc/qemu-ifup
sudo /sbin/ifconfig $1
sudo brctl addif br0 $1
sudo brctl stp br0 on

$ ll /etc/qemu-ifup
-rwxr-xr-x 1 root root 147 2007-05-01 16:46 /etc/qemu-ifup

Since it run fine by root I guess there are some permission problem,
but can not find where.
My question is why normal user can not create tap0 device and
how to fix this.

I wonder if there is some MAC addresses for network cards reserved for
private use (as IP addresses 192.168.x.x is reserved)?


Reply to: