reassign 494871 kvm
tags 494871 + patch
thanks

Hello,

I've been using kvm to run "Olive"s for a while.  This is a PC-based
instance of Juniper's JUNOS operating system for routers, which again is
based on FreeBSD.  This means that any bugs most likely will apply to
FreeBSD installations as well, but I can't provide a sample guest since
the JUNOS software is commercially licensed.  Older JUNOS releases are
based on FreeBSD 4.10, while newer (JUNOS 8.5+) are based on FreeBSD 6.1.

Since kvm-70 there has been problems with kvm and the newer FreeBSD 6.1
based releases.  They have been running OK for a few hours but then
just stopped responding both on the console and the qemu monitor.
strace'ing has revealed an infinite loop of failed /dev/kvm accesses.
All this while other guests on the same host have continued to work as
expected. 

Now, I've been happily running kvm-69 while planning to debug this
properly and report upstream as soon as I got enough time... But never
actually got around to doing it.  Therefore this complete lack of logs
etc.  Sorry about that.

The point of this followup is that I tried enabling the native VDE
support in kvm-72 and the problem went away!  This means that this
request is not just a feature wish, but actually fixes a bug.  A bug
which for me was serious enough that I couldn't use the lenny kvm
package.  I really hope there is some possibility of letting it slip
through a hole in the ice :-)

I'm attaching the rather obvious patch to simplify adding the
feature. The patch is tested with kvm 72+dfsg-1.

FYI, my kvm startup script used to do (I've of course removed "vdeq"
now):

nohup setsid vdeq kvm -m 128 -hda olive.img \
  -net nic,vlan=0,macaddr=00:aa:00:00:00:01,model=i82559er \
  -net nic,vlan=1,macaddr=00:aa:00:00:01:01,model=i82559er \
  -net nic,vlan=2,macaddr=00:aa:00:00:02:01,model=i82559er \
  -net nic,vlan=3,macaddr=00:aa:00:e1:03:01,model=e1000 \
  -net nic,vlan=4,macaddr=00:aa:00:e1:04:01,model=e1000 \
  -net vde,vlan=0,sock=/var/run/vde2/tap0.ctl,port=10 \
  -net vde,vlan=1,sock=/var/run/vde2/tap0.ctl,port=11 \
  -net vde,vlan=2,sock=/var/run/vde2/tap0.ctl,port=12 \
  -net vde,vlan=3,sock=/var/run/vde2/tap0.ctl,port=13 \
  -net vde,vlan=4,sock=/var/run/vde2/tap0.ctl,port=14 \
  -nographic -serial mon:telnet:192.168.3.1:2001,server,nowait \
  -monitor null -pidfile olive.pid >> olive.log 2>&1 &




BTW: I believe this is a kvm request and has nothing to do with
kvm-source, so I'm reassigning it to kvm.  Hope that's OK.


Bjørn

diff -urN ../kvm-72+dfsg.orig/debian/control kvm-72+dfsg/debian/control
--- ../kvm-72+dfsg.orig/debian/control	2008-08-19 12:21:02.000000000 +0200
+++ kvm-72+dfsg/debian/control	2008-08-19 12:45:36.000000000 +0200
@@ -5,7 +5,7 @@
 Build-Depends: debhelper (>= 5), pkg-config, quilt (>= 0.40), autotools-dev,
  bzip2, uuid-dev, zlib1g-dev, libsdl1.2-dev, libasound2-dev, libgnutls-dev,
  libncurses5-dev, nasm, texi2html, bcc, iasl, device-tree-compiler [powerpc],
- etherboot [i386 amd64]
+ etherboot [i386 amd64], libvdeplug2-dev
 Standards-Version: 3.8.0.0
 Homepage: http://kvm.qumranet.com/
 Vcs-Browser: http://git.debian.org/?p=collab-maint/kvm.git;a=summary
diff -urN ../kvm-72+dfsg.orig/debian/rules kvm-72+dfsg/debian/rules
--- ../kvm-72+dfsg.orig/debian/rules	2008-08-19 12:21:02.000000000 +0200
+++ kvm-72+dfsg/debian/rules	2008-08-19 12:45:36.000000000 +0200
@@ -133,7 +133,7 @@
 config.status: configure
 	dh_testdir
 	# Add here commands to configure the package.
-	./configure --prefix=/usr
+	./configure --prefix=/usr --enable-vde
 
 
 build-arch: patch config.status build-arch-stamp

Reply via email to