Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106097 - net-misc/vde - patch to fix the -tun-fd option for vdeq
Summary: net-misc/vde - patch to fix the -tun-fd option for vdeq
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Ryan Phillips (RETIRED)
URL: http://lists.gnu.org/archive/html/qem...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-09-15 13:02 UTC by Bryan Hundven
Modified: 2005-12-30 03:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Hundven 2005-09-15 13:02:46 UTC
when you run vdeq with multipule sockets; for example
  vdeq qemu -sock /tmp/sock1.ctl,/tmp/sock2.ctl -hda myimage.img -nics 2 -m 64
it will execute qemu like this:
  qemu -tun-fd 3,5 -hda myimage.img -nics 2 -mem 64

As the URL explains, qemu changed their interface for -tun-fd to only allow 1
file descriptor, thus the need to supply two -tun-fd arguments to make the above
work. The patch is supplied in the URL above to fix this to execute like so:
  qemu -tun-fd 3 -tun-fd 5 -hda myimage.img -nics 2 -mem 64

I believe this change (on qemu's part) happened in either 7.0 or 7.1.

Reproducible: Always
Steps to Reproduce:
1. Start 2 instances of vde_switch: vde_switch -sock /tmp/sock1.ctl -tap tap0
-daemon; vde_switch -sock /tmp/sock2.ctl -tap tap1 -daemon
2. run vdeq: vdeq qemu -sock /tmp/sock1.ctl,/tmp/sock2.ctl -hda myimage.img
-nics 2 -m 64
3. Recieve error that says: qemu: invalid fd for network interface 0
4. run vdeq with echo to see wtf is going on: vdeq echo -sock
/tmp/sock1.ctl,/tmp/sock2.ctl -hda myimage.img -nics 2 -m 64

Actual Results:  
qemu: invalid fd for network interface 0
qemu exited: vdeq quits

Expected Results:  
run qemu with 2 nics using vdeq from the net-misc/vde package using >=qemu-7.1
Comment 1 Bryan Hundven 2005-12-30 03:41:32 UTC
This bug is no longer an issue.