From owner-freebsd-questions@freebsd.org Thu Jan 25 17:42:03 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3CD5CEC21BE for ; Thu, 25 Jan 2018 17:42:03 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C403968A14 for ; Thu, 25 Jan 2018 17:42:02 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from roundcube.fjl.org.uk (localhost [127.0.0.1]) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id w0PHfuPc005055 for ; Thu, 25 Jan 2018 17:41:57 GMT (envelope-from frank2@fjl.co.uk) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 25 Jan 2018 17:41:56 +0000 From: Frank Leonhardt To: freebsd-questions@freebsd.org Subject: RE: em0 doesn't work after upgrading from 11.0 to 11.1 Organization: FJL Microsystems In-Reply-To: References: Message-ID: <9f0502dc7bb00433cd801cea7323cacb@roundcube.fjl.org.uk> X-Sender: frank2@fjl.co.uk User-Agent: Roundcube Webmail/0.9.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 17:42:03 -0000 On 2018-01-21 19:06, Khitai Pang wrote: > I tried 11.1 amd64 iso installation in the same guest, and em0 didn't > work. I tried 10.4 amd64 iso installation in the guest and em0 dhcp > worked fine. So it appears that em0 driver of 11.1 is buggy? > > How to rescue my kvm guest which has already upgraded to 11.1? > > Regards > Khitai > ________________________________ > 寄件者: owner-freebsd-questions@freebsd.org > 代表 Khitai Pang > > 寄件日期: 2018年1月22日 上午 02:26:00 > 收件者: freebsd-questions@freebsd.org > 主旨: em0 doesn't work after upgrading from 11.0 to 11.1 > > Hi, > > > After the first reboot after upgrading my freebsd (in a kvm guest > hosted on CentOS 6) from 11.0 to 11.1, em0 couldn't get IP address > from DHCP: > > > em0: Watchdog timeout -- resetting > > em0: link state changed to DOWN > > em0: link state changed to UP > > > The above messages are repeated in dmesg. > > > I reran "freebsd-update install" to complete the upgrade and rebooted > the host again, and the issue was still there. > > > Networking worked perfectly fine before the upgrade. /etc/rc.conf: > > > hostname="..." > > ifconfig_em0="DHCP" > > sshd_enable="YES" > > dumpdev="AUTO" > > > Any idea? The obvious answer is that KVM doesn't emulate the Intel NIC like the new driver expects. I prefer to run FreeBSD on real hardware, not a Linux emulation, so I'm guessing here. Can you try defining a different NIC in the hypervisor and see of that works instead? I'd try a simple one like Realtek. If that doesn't work and you have console access, try rebuilding the kernel with the Intel driver disabled and then copy the working /boot/kernel/if_em.ko across from the working platform and use loader.conf to bring it in. IME the chances are good it'll work with the new kernel. Regards, Frank.