From owner-freebsd-virtualization@FreeBSD.ORG Thu Aug 21 15:26:34 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2535D7F8 for ; Thu, 21 Aug 2014 15:26:34 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id D9E8E334A for ; Thu, 21 Aug 2014 15:26:33 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id 31FC4126BC; Fri, 22 Aug 2014 01:26:31 +1000 (EST) Received: from Peters-MacBook-Pro.local (c-69-181-164-196.hsd1.ca.comcast.net [69.181.164.196]) by dommail.onthenet.com.au (MOS 4.4.4-GA) with ESMTP id BXX37025 (AUTH peterg@ptree32.com.au); Fri, 22 Aug 2014 01:26:30 +1000 Message-ID: <53F60FA6.8080905@freebsd.org> Date: Thu, 21 Aug 2014 08:26:30 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Olivier_Cochard-Labb=E9?= Subject: Re: bhyve's VM loose network connectivity after a reboot References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2014 15:26:34 -0000 Hi Olivier, > I'm using bhyve from a 11.0-CURRENT (r270177) host and I meet a problem > after a VM (guest using fbsd -current too) is rebooted: This VM loose > network connectivity once rebooted. > vtnet interface seems OK from the VM, like the tap interface on the host: > tap status correctly display the new bhyve PID number in its "Opened by" > section. > > But this VM didn't send packet anymore: a "tcpdump -i tap-interface" from > the host didn't show any packet after a reboot. > > Is there something special to do in the "while [ 1 ]" loop of my script, > other than simply restarting bhyve for fixing this issue ? Do you have the net.link.tap.up_on_open sysctl set to 1 ? (didn't see that in the BSDRP-lab-bhyve.sh script, if that's the one you're using) later, Peter.