qemu-kvm should Build-Depends on libvdeplug2-dev (KVM vde2 support not working)

Bug #253230 reported by TJ
64
This bug affects 11 people
Affects Status Importance Assigned to Milestone
kvm (Debian)
Fix Released
Unknown
qemu-kvm (Ubuntu)
Won't Fix
Wishlist
Unassigned
Lucid
Won't Fix
High
Unassigned
vde2 (Ubuntu)
Triaged
Wishlist
Unassigned
Lucid
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: kvm

qemu, through kvm, has support for VDE2 (Virtual Distributed Ethernet). The debian package includes vde2 in its list of Suggests but the current package has no Build-Depends libvdeplug2-dev.

The package is also not built with the configure option --enable-vde (obviously it would currently FTBS if it had this!)

As a result the binary package does not have support for VDE and therefore the 'Suggests' vde2 is misleading.

Related branches

TJ (tj)
description: updated
Revision history for this message
Gioele Barabucci (gioele) wrote :

It has been closed in Debian. (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494871)

The fixed package is already in Jaunty.

Revision history for this message
TJ (tj) wrote :

Confirmed: I've also back-ported Jaunty's kvm-83 for Intrepid, Hardy, and Gutsy. They are available from my PPA. The only one I've not tested is Gutsy since I'm in the midst of debugging various Jaunty installation bugs.

Changed in kvm:
status: New → Fix Released
Revision history for this message
jiribb (jiribb) wrote :

I don't think this is solved because kvm-83 doesn't have vde support, it doesn't mention vde in Build-Depends. It was working with kvm-72.

Revision history for this message
TJ (tj) wrote :

jiribb is correct - not sure what I was doing saying Confirmed!

Although the debian kvm-79 package appears to have VDE enabled, kvm-83 has reverted to the kvm-72 status. I'll upload VDE-enabled versions into my PPA.

Changed in kvm:
status: Fix Released → Confirmed
Revision history for this message
TJ (tj) wrote :

If you'd like to try it out the package is now in my PPA for Hardy, Intrepid and Jaunty.

kvm (1:83+dfsg-0ubuntu2~tj~ppa2j) jaunty; urgency=low

  * Add build-depends on libvdeplug2-dev which will cause qemu's configure
    script to enable vde support (LP: #253230).

 -- TJ <email address hidden> Thu, 12 Feb 2009 15:15:00 +0000

Revision history for this message
TJ (tj) wrote :
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Good fix, thanks TJ.

I'll upload this as soon as the Alpha freeze is over.

:-Dustin

Changed in kvm:
assignee: nobody → kirkland
importance: Undecided → High
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kvm - 1:84+dfsg-0ubuntu4

---------------
kvm (1:84+dfsg-0ubuntu4) jaunty; urgency=low

  [ TJ <email address hidden> ]
  * debian/control: add build-depends on libvdeplug2-dev which will cause
    qemu's configure script to enable vde support, LP: #253230

  [ Dustin Kirkland ]
  * debian/kvm-source.postinst: remove dkms module before installing new
    one, LP: #334177

 -- Dustin Kirkland <email address hidden> Thu, 26 Feb 2009 16:07:57 -0600

Changed in kvm:
status: In Progress → Fix Released
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Actually, I had to revert this change. libvdeplug2-dev (vde2) is in Universe. We'll need to get an MIR filed/approved before we can have kvm build-dep on it.

Sorry.

:-Dustin

Changed in kvm:
status: Fix Released → Triaged
Revision history for this message
TJ (tj) wrote :

Ooops :)

Maybe we could add documentation to the package to make creating routed connections easier for end-users to avoid the need for vde?

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hi TJ-

I've spoken with KVM/QEMU upstream developers. They're saying that tap is really the 'official', 'supported' networking mechanism for kvm and qemu, and really what they strongly recommend. vde lacks the testing or support base, so I don't think we'd really want to compile against this in Ubuntu until it does.

Sorry about that.... I'm going to make this 'won't fix' for now.

:-Dustin

Changed in kvm:
status: Triaged → Won't Fix
Changed in kvm (Debian):
status: Unknown → Fix Released
Revision history for this message
Laurent Bigonville (bigon) wrote :

hi,

I've reopened this bug as it seems that it was fixed into debian

Changed in kvm (Ubuntu):
status: Won't Fix → New
Changed in kvm (Ubuntu):
assignee: Dustin Kirkland (kirkland) → nobody
status: New → Won't Fix
summary: - Should it Build-Depends on libvdeplug2-dev?
+ qemu-kvm should Build-Depends on libvdeplug2-dev (KVM vde2 support not
+ working)
affects: kvm (Ubuntu) → qemu-kvm (Ubuntu)
Changed in qemu-kvm (Ubuntu):
status: Won't Fix → Triaged
Changed in vde2 (Ubuntu Lucid):
status: New → Triaged
importance: Undecided → Medium
status: Triaged → Won't Fix
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Marking wont-fix against Lucid, as we can't very well go about MIR'ing and enabling VDE in qemu-kvm for Lucid.

However, we should perhaps consider this for Lucid+1, so I've open a task against both qemu-kvm and vde2 for Lucid+1, and triaged it.

Someone will need to write an MIR for this. I suggest that someone who actually has both a vested interest in VDE, as well as experience using it (neither of which I have), write the MIR, per:
 * https://wiki.ubuntu.com/MainInclusionProcess

Thanks,
:-Dustin

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

FYI... Minimally supported qemu-kvm packages with VDE support are in:
 * https://edge.launchpad.net/~ubuntu-virt/+archive/vde

Revision history for this message
jara_76 (jb-weitan) wrote :

Thanks Dustin!
Works like a charm for me. kvm even seems to be faster than before.

FYI
I am using vde2 for four production server since intrepid ibex. For my network knowledge (I never managed to understand
tap/tun) it's easy to understand (everyone knows what a switch is) and works stable and flawless.

Just to clarify this, kvm vde2 is not officially supported in karmic?
But I can just use another repo to add this?
Or did I actually do a system upgrade to the next version (probably lucid)?

Thierry Carrez (ttx)
Changed in vde2 (Ubuntu):
importance: Medium → Wishlist
Changed in qemu-kvm (Ubuntu):
importance: High → Wishlist
Revision history for this message
Étienne BERSAC (bersace) wrote :

Hi,

Dustin, could you upload a maverick build with updated version ?

Regards,
Étienne

Revision history for this message
Étienne BERSAC (bersace) wrote :

Hi,

Actually, would it be possible to ship a qemu-kvm-vde package in universe ?

Regards,
Étienne

Revision history for this message
Mosudi (mioemi2000) wrote :

Ubuntu 10.04

When starting kvm or qemu under vdeq

vdeq qemu -sda1 qemu-image -m 128
NOTE: vdeq is now DEPRECATED -- both QEMU and KVM have native support for
      VDE. This binary will be removed soon from the distribution, consider
      stopping using it.

Changed in qemu-kvm (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
Daniele Lacamera (o-root-danielinux-net) wrote :

***Be aware: I don't speak on behalf of VDE team, this is only my personal opinions as kvm user.***

A lot of users need this feature. My projects (see virtualbricks here on lp) are affected by this bug and the only thing I can do is suggest users to install another distribution.

I still see nothing moving on Ubuntu side for this bug. AFAIK "Natty" is still affected.

The known workarounds by now are:

- Compile kvm yourself and enable libvdeplug support
- Switch to a (less blind) distribution. Debian for instance.

Sorry, the average user doesn't care about your universe vs. main repository issues and you are not yet able to provide a solution that makes sense.

If you can't just promote libvdeplug to main, then place qemu-kvm in universe as well. I don't care, but this is becoming ridiculous.

Revision history for this message
Christian Roessner (christian-roessner-net) wrote : Re: [Bug 253230] Re: qemu-kvm should Build-Depends on libvdeplug2-dev (KVM vde2 support not working)

Hi,

> - Compile kvm yourself and enable libvdeplug support
> - Switch to a (less blind) distribution. Debian for instance.
>
> Sorry, the average user doesn't care about your universe vs. main
> repository issues and you are not yet able to provide a solution that
> makes sense.

Don't use vde, use openvswitch.

Christian

Revision history for this message
Daniele Lacamera (o-root-danielinux-net) wrote :

Sorry, but I don't get the point.
The openvswitch does not even have half of the features vde provides, it is just a switch!

Also, it is not for me, it's for my users I am complaining. My Debian has full kvm+vde support since this has been closed a while ago.

I know there are different solutions for the average Joe, but Ubuntu cannot simply ignore the request of thousands of users.The role of a *complete* distribution should be to provide different tools for similar purposes.

Qemu and KVM have been supporting libvde2 for years now, and most distro out there come with a fully featured kvm/qemu package.

Revision history for this message
Christian Roessner (christian-roessner-net) wrote :

Am 14.07.2011 15:25, schrieb Danielinux:
> Sorry, but I don't get the point.
> The openvswitch does not even have half of the features vde provides, it is just a switch!

First of all, I am not belonging to Ubuntu. So what they do or not is
out of my scope ;-) My suggestion is to use openvswitch. Vde is running
in userspace, while openvswitch uses kernel modules and has much better
performance. And I guess, you do not really know about the fetures that
ovs has (sorry, don't feel attacked, Just my guess).

The good thing with ovs is that it has a bridge-replacement module. So
for kvm, nothing changes.

I have to stop now, because this is a bug tracker and people are getting
angry, if it is used as forum or discussion platform. Feel free to
contact me personally.

Christian

Revision history for this message
Daniele Lacamera (o-root-danielinux-net) wrote :

I am replying here because I think this discussion is still adherent to the topic, and also because I don't mind spamming this bug report. It's been open for years and lead to nothing.

I am not here to say what is better between ovs, vde or any other similar tool. The super-partes role of a distribution must be to include every (popular) solution and this is the real advantage of free/OS. Ubuntu is just living on a different planet here.

For the sack of completeness, I must say vde has a kernelspace version as well, but it is less popular since vde is designed to run on other OSes too. I would be interested to benchmark the two tools anyway.

As a matter of fact, I don't see any counterpart for most of the vde tools in ovs, in particular most of the time I have to recreate complex network topologies, integrate emulated channels, use encrypted tunnels, connect local/remote real/virtual machines with maximum flexibility.

OVS is a VDE competitor as well as OpenVPN is, from my point of view. VDE is just a "broader" tool, and for me (and several other people) it is just nice to use the native integration with qemu and kvm, even if workarounds like bridging a kvm tap or even "capturing" it with vde_pcap are still possible nowadays with the lame official Ubuntu package.

My point is that OVS for sure does a great job, most likely from what you say it is even better than VDE for the features they have in common, but VDE is a set made of a larger number of tools for different purposes, that's why I am insisting that much here. Sorry if I was too direct in my previous reply: I am trying to explain why "use X instead of Y if Y is not supported in the distro" was not an acceptable answer.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

I don't have any objection to enabling vde support. However, vde2 is in universe, and qemu-kvm is in main. That means someone needs to do a main inclusion request (MIR) for vde2 before we can depend on it in qemu-kvm.

Anyone who would like to see this support enabled can pursue the MIR. Please see https://wiki.ubuntu.com/MainInclusionProcess for details.

Revision history for this message
Joseph Coffland (jcoffland) wrote :

I RTFMed and created a MIR some time ago and nothing has happened yet. I'm still pushing for this.

See bug 776818.

The latest suggestion in the MIR report was that we file a bug against kvm. Oh my!

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

I got qemu with vde working as follows. I built the qemu-kvm from quantal
with the attached qemu-vde.debdiff applied. Then set up the qemu vde nic
and started qemu as follows:

cat >> /etc/network/interfaces << EOF
auto qemutap
  iface qemutap inet static
  address 10.0.5.1
  netmask 255.255.255.0
  vde2-switch -
EOF

ifup qemutap

dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/qemutap.dnsmasq.pid --conf-file= --listen-address 10.0.5.1 --dhcp-range 10.0.5.2,10.0.5.254 --dhcp-lease-max=253 --dhcp-no-override --except-interface=lo --interface=qemutap

iptables -A POSTROUTING -s 10.0.5.0/24 -t nat -j MASQUERADE

cat >> /etc/dnsmasq.d/qemu << EOF
bind-interfaces
except-interface=qemutap
EOF
restart dnsmasq

kvm -net nic -net vde,sock=/var/run/vde2/qemutap.ctl -m 1024 -hda x.img -cdrom ubuntu-12.04-alternate-amd64.iso -vnc :1

So perhaps a qemu-vde package should set up a qemuvdetap network as above.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.