From: Elias Probst Subject: Major issues running OpenVPN inside of KVM Date: Wed, 25 Feb 2009 10:41:02 +0100 Message-ID: <200902251041.04906.mail@eliasprobst.eu> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1389256.LN5SbCAUpz"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from root-vm-01.eliasprobst.eu ([78.47.73.51]:43977 "EHLO root-vm-01.eliasprobst.eu" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752278AbZBYJtw (ORCPT ); Wed, 25 Feb 2009 04:49:52 -0500 Received: from localhost (root-vm-01.eliasprobst.eu [127.0.0.1]) by root-vm-01.eliasprobst.eu (Postfix) with ESMTP id C99FBEC9E9 for ; Wed, 25 Feb 2009 09:34:22 +0100 (CET) Received: from root-vm-01.eliasprobst.eu ([127.0.0.1]) by localhost (root-vm-01.eliasprobst.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M1yHmli95xzz for ; Wed, 25 Feb 2009 09:34:09 +0100 (CET) Received: from localhost (root-vm-01.eliasprobst.eu [127.0.0.1]) by root-vm-01.eliasprobst.eu (Postfix) with ESMTP id 881B6EC9EE for ; Wed, 25 Feb 2009 09:34:08 +0100 (CET) Received: from nx9420.localnet (unknown [10.23.0.6]) (Authenticated sender: mail@eliasprobst.eu) by root-vm-01.eliasprobst.eu (Postfix) with ESMTP id B9E69EC9E9 for ; Wed, 25 Feb 2009 09:34:06 +0100 (CET) Sender: kvm-owner@vger.kernel.org List-ID: --nextPart1389256.LN5SbCAUpz Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I'm a really happy KVM user - I've been running several hosts (mostly serve= rs)=20 using KVM and I'm quite satisfied with it. 2 days ago I wanted to add 2 hosts to our VPN but I ran into serious troub= le=20 which - after some analysis by the OpenVPN guys - seem to be caused by KVM. What happens? I can start the OpenVPN connection fine, but as soon as there are data=20 transferred it starts hanging - sometimes for 4-5 seconds - sometimes for 6= 0=20 seconds. The OpenVPN connection is completely dead during this time while a lot of=20 lines like these appear in the log: Wed Feb 25 10:26:27 2009 read UDPv4 [EHOSTUNREACH]: No route to host=20 (code=3D113) The strange thing about this is the fact, that while the OpenVPN connection= is=20 completely stuck and tells me it couldn't reach the host of the VPN server = =2D=20 everything else works quite fine. If I connect via SSH directly to the KVM = host=20 I can still work as usual - only connections tunneled through OpenVPN are=20 dead. =46irst I've suspected it's related to the virtio network driver, but repla= cing=20 'virtio' with 'e1000' didn't change anything at all. Another thought was using a more precise timer as I've thought this issues= =20 could be caused by an unprecise timer and the catch-ups of it cause the=20 trouble - but as clocksource=3Dtsc caused some trouble in the past I've cha= nged=20 to acpi_pm, which - according to some people in #kvm is the best solution a= t=20 the moment and the problem still exists. How could I debug this issue further? Neiher could I find any suspicious=20 messages in 'dmesg' nor in the logfile created by libvirtd. Some information about the system: Host machine: CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ KVM: 84 (82 was tested too) Kernel: 2.6.28 Distribution: Gentoo KVM Guest: Kernel: 2.6.28 OpenVPN: 2.1_rc15 (2.0.7 showed the same behaviour) The KVM process is started by libvirt as follows: /usr/bin/kvm -S -M pc -m 768 -smp 2 -name evsrv003.evaluba.com -uuid=20 a5a81c35-4c07-47eb-8efb-302c8ec61169 -monitor pty -pidfile=20 /var/run/libvirt/qemu//evsrv003.evaluba.com.pid -boot c -kernel=20 /var/lib/libvirt/kernel/evsrv003.evaluba.com/kernel-genkernel-x86_64-2.6.28- gentoo-r2 -initrd /var/lib/libvirt/kernel/evsrv003.evaluba.com/initramfs- genkernel-x86_64-2.6.28-gentoo-r2 -append root=3D/dev/ram0=20 real_root=3D/dev/storage/root dolvm clocksource=3Dacpi_pm -drive=20 file=3D/var/lib/libvirt/ISO/grml64- medium_sid_latest.iso,if=3Dide,media=3Dcdrom,index=3D0 -drive=20 file=3D/var/lib/libvirt/images/evsrv003.evaluba.com.img,if=3Dvirtio,index= =3D0,boot=3Don=20 =2Dnet nic,macaddr=3D00:95:2b:0e:aa:3c,vlan=3D0,model=3De1000 -net=20 tap,fd=3D17,script=3D,vlan=3D0,ifname=3Dvnet0 -serial none -parallel none -= usb -vnc=20 10.5.3.1 Has anyone any ideas where to look for further information how this happens? Best regards, Elias P. --nextPart1389256.LN5SbCAUpz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkmlEjAACgkQHzenisJbkx8q3ACeIttJDY1aDOmfYuWRo7wGLOqS MRYAoMjoCA5dNgCHbyyOtktYqzISthKw =+e8z -----END PGP SIGNATURE----- --nextPart1389256.LN5SbCAUpz--