kvm-ifup fails to initialize tap networking
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kvm (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
When attempting to use bridged networking on Feisty/AMD64 (kernel 2.6.20-16-generic, kvm 1:16-1ubuntu2), it fails to bring up the tap interface for bridging with the following error:
$ sudo kvm -hda centos3.qcow -m 256 -net tap
can't add tap0 to bridge eth1: Operation not supported
/etc/kvm/kvm-ifup: could not launch network script
Could not initialize device 'tap'
The tun module is loaded. When I check /etc/kvm/kvm-ifup, it looks like it's attempting to do "ifconfig tap0 0.0.0.0 up". When I attempt to run that command manually as root, I get:
# ifconfig tap0 0.0.0.0 up
SIOCSIFADDR: No such device
tap0: ERROR while getting interface flags: No such device
tap0: ERROR while getting interface flags: No such device
/dev/net only contains the tun device, not any tap devices.
Your script is not correct. eth1 is a physical device, not a bridge.