From owner-freebsd-virtualization@FreeBSD.ORG Mon Dec 15 21:13:13 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 453F8753 for ; Mon, 15 Dec 2014 21:13:13 +0000 (UTC) Received: from zhost.uxsglobal.com (zhost.xinuos.com [144.202.236.63]) by mx1.freebsd.org (Postfix) with ESMTP id 081C4B29 for ; Mon, 15 Dec 2014 21:13:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zhost.uxsglobal.com (Postfix) with ESMTP id A05558C018D; Mon, 15 Dec 2014 16:13:05 -0500 (EST) Received: from zhost.uxsglobal.com ([127.0.0.1]) by localhost (zhost.uxsglobalhost.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dOiuSjPTWJAW; Mon, 15 Dec 2014 16:13:05 -0500 (EST) Received: from zhost.uxsglobal.com (localhost [127.0.0.1]) by zhost.uxsglobal.com (Postfix) with ESMTP id 793628C0202; Mon, 15 Dec 2014 16:13:05 -0500 (EST) Received: from zhost.uxsglobalhost.com (localhost [127.0.0.1]) by zhost.uxsglobal.com (Postfix) with ESMTP id 653CD8C018D; Mon, 15 Dec 2014 16:13:05 -0500 (EST) Date: Mon, 15 Dec 2014 16:13:05 -0500 (EST) From: Susan Stanziano To: Neel Natu Message-ID: <703912028.2258586.1418677985251.JavaMail.zimbra@xinuos.com> In-Reply-To: References: <2021452008.2147540.1418173300017.JavaMail.zimbra@xinuos.com> <207531434.2147650.1418173543122.JavaMail.zimbra@xinuos.com> Subject: Re: vmrun.sh error MIME-Version: 1.0 X-Originating-IP: [96.234.37.238] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - GC39 (Win)/8.0.6_GA_5922) Thread-Topic: vmrun.sh error Thread-Index: Y0SU8O4Gwf+Lhw+9Rl5NvxVEwtxEug== Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Mon, 15 Dec 2014 21:13:13 -0000 Thanks, Neel, Thats a simple solution - I'll try it out. Are these patch fixes advertised in some way to the freebsd world? just want to know if there's a place to check before reporting a problem. ----- Original Message ----- From: "Neel Natu" To: "Susan Stanziano" Cc: freebsd-virtualization@freebsd.org Sent: Thursday, December 11, 2014 9:15:19 PM Subject: Re: vmrun.sh error Hi Susan, On Tue, Dec 9, 2014 at 5:05 PM, Susan Stanziano wrote: > > Hello, > > Craig suggested that I send this question to this mail alias: > > A couple of comments after creating VM's and using the vmrun.sh in /usr/share/examples/bhyve/vmrun.sh: > > 1) I know you can't run two VM's at the same time with the same vmname, but the error message from bhyveload is not informative to a new user: > > bhyveload: could not open "vmname" > > 2) The solution with the multiple use of a vmname seems to be that after vmrun.sh issues the bhyvectl --destroy command, if there was a "sleep 1" added, giving time for the destroy, the error message from bhyveload wouldn't have to happen. > > What do you think? > I think the issue you are hinting at is that if /dev/vmm/testvm exists there isn't a reliable way to know whether or not 'testvm' is actually "running". There is no good way to fix this until we get to a single process model. However, you know for sure that if '/dev/vmm/testvm' does not exist then it is also not running. So, perhaps the following patch fixes your problem: https://people.freebsd.org/~neel/patches/vmrun_destroy.patch best Neel > Thanks, > > Susan Stanziano > > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"