From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bareiro Subject: Re: Timeout of network interface with OpenBSD 4.5 VM Date: Sat, 25 Jul 2009 17:46:22 -0300 Message-ID: <20090725204622.GC31411@defiant.freesoftware.org> References: <20090720155114.GB23194@raleigh.neotoma.org> <20090724090851.GA31411@defiant.freesoftware.org> <20090724120329.GB3321@raleigh.neotoma.org> Reply-To: dbareiro@gmx.net Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JWEK1jqKZ6MHAcjA" To: kvm@vger.kernel.org Return-path: Received: from mail.gmx.net ([213.165.64.20]:56176 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752557AbZGYUq2 (ORCPT ); Sat, 25 Jul 2009 16:46:28 -0400 Received: from defiant (defiant.freesoftware.org [10.1.0.65]) by hermes.freesoftware.org (Postfix) with ESMTP id B6A3F6661 for ; Sat, 25 Jul 2009 17:43:55 -0300 (ART) Content-Disposition: inline In-Reply-To: <20090724120329.GB3321@raleigh.neotoma.org> Sender: kvm-owner@vger.kernel.org List-ID: --JWEK1jqKZ6MHAcjA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Chris. On Friday, 24 July 2009 08:03:29 -0400, Chris Dukes wrote: > http://zeniv.linux.org.uk/~pakrat/obsd45 >=20 > 3 configs, 3 kernels. > All work on a Core2 Duo T7300 running 2.6.27-7-generic (From ubuntu > intrepid) crammed onto a laptop that's mostly running hardy. > The OpenBSD virtual machines have 256M allocated, e1000 NIC, and vde > backing it. Firstly, thank you very much by to take the trouble to test and to put the files in a site. I was testing the compiled kernels that you provided to me in the VM with OpenBSD 4.5 in my host with KVM-88 running Ubuntu Hardy Heron server amd64 on a Athlon 64 X2 3800+ using a kernel 2.6.24-19-server. The boot parameters were the following: # OpenBSD $KVM -hda /dev/vm/fugu-disk -m 512 -boot c -net \ nic,vlan=3D0,macaddr=3D00:16:3e:00:00:35,model=3Dne2k_pci -net tap \ -daemonize -vnc :4 -k es -localtime -serial \ telnet:localhost:4001,server,nowait bsd.kvm3 and bsd.kvm4 boots without problems and the VM has connectivity with the rest of my LAN, nevertheless bsd.kvm3l boots without problems but the network interface does not take the static IP assigned (in none of the three cases it uses DHCP). With kernel bsd.kvm3l: fugu:~# ifconfig lo0: flags=3D8049 mtu 33204 priority: 0 groups: lo inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 enc0: flags=3D0<> mtu 1536 priority: 0 With kernel bsd.kvm[34]: fugu:~# ifconfig lo0: flags=3D8049 mtu 33204 priority: 0 groups: lo inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 ne3: flags=3D8863 mtu 15= 00 lladdr 00:16:3e:00:00:35 priority: 0 groups: egress media: Ethernet 10baseT full-duplex inet 10.1.0.12 netmask 0xffffff00 broadcast 10.1.0.255 inet6 fe80::216:3eff:fe00:35%ne3 prefixlen 64 scopeid 0x1 enc0: flags=3D0<> mtu 1536 priority: 0 On the other hand, also I tried to compile the kernel with the configuration files that you provided to me booting the operating system with a kernel GENERIC and the option --no-acpi of kvm so that boot finishes successful (although this way did not have connectivity), although under these circumstances some of the locally compiled kernels did not work. KVM4 boots without problems, but giving a 'ne3: device timeout' and the VM loses connectivity with the LAN even though the network interface is configured with its static IP. KVM3 boots OK and it doesn't presents networking problems. KVM3L boots OK but the interface is not configured with its static IP as in the previous case with the kernel compiled for you. Also I was trying to boot the VM with the KVM option model=3De1000. In this case, the kernels locally compiled with KVM3 and KVM3L didn't present problems when boot or with the configuration of network, nevertheless, with kernel locally compiled with KVM4L were rebooted after mttr similar to as it happened with GENERIC kernel: mtrr: Pentium Pro MTRR support uk>> OpenBSD/i386 BOOT 3.02 boot> booting hd0a:/bsd: 6039964+1059784 [52+336688+318896]=3D0x7657ec entry point at 0x200120 and occasionally the boot finishes with: mtrr: Pentium Pro MTRR support uvm_fault(0xd080d9e0, 0x0, 0, 1) -> e kernel: page fault trap, code=3D0 kkkkkkkkkkkkkernel: page fault trap, code=3D0 Skernel: page fault trap, code=3D0 Skernel: page fault trap, code=3D0 Skernel: page fault trap, code=3D0 Skernel: page fault trap, code=3D0 Sstray interrupt 12 kkernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 Stopped at kernel: page fault trap, code=3D0 --db_more-- With the three compiled kernels that you provided to me, I didn't have no kind of problem during boot or of networking using model=3De1000, although it draws attention to me to observe these differences that commented to you. This difference will be related to hardware that I am using? CPU: Athlon 64 X2 3800+ Motherboard: M2N32 SLI Network interface: 2 x nVidia MCP55 I don't have much experience compiling OpenBSD kernel, but the procedure that I used was the following one: * Download ftp://ftp.openbsd.org/pub/OpenBSD/4.5/sys.tar.gz * Copy it to /usr/src * To extract the files in the tarball. * Copy the config file to /usr/src/sys/arch/i386/conf/ * run 'config ' * cd /usr/src/sys/arch/i386/compile/ * run 'make depend' and 'make'. Thanks again for your time. Regards, Daniel --=20 Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Squeeze - Linux user #188.598 --JWEK1jqKZ6MHAcjA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkprbx4ACgkQZpa/GxTmHTeVMQCfcg/Ky9ip8vu8Q0fCQe4vEXWb VeQAnA4CyWc2efu/JL/o6imgmX7tM2Fr =ZPcJ -----END PGP SIGNATURE----- --JWEK1jqKZ6MHAcjA--