From owner-freebsd-virtualization@FreeBSD.ORG Mon Dec 15 22:25:26 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AE15932B for ; Mon, 15 Dec 2014 22:25:26 +0000 (UTC) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D10E385 for ; Mon, 15 Dec 2014 22:25:26 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id l18so15602684wgh.26 for ; Mon, 15 Dec 2014 14:25:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zbWGpEYZmaF/1hcb51Qm96OTyz5wg55HoZtsbQACU4w=; b=J9PsklNShZPP2uj6e53ufLqyx27v6LPVMVkMg/Pp9xvK5PPlXf7qTs5t5ld5mKt0pO ohu0ArO/qHsQD5dhvRxrgxVHzrT84h7qzhEeGKnow9p2K9jqFKbuGFPKaO6nwBID79pb sZPNEYOHXaD15a2/HzUZjT8lcrSL4vJOkS6zobiszDmdR2Ak93MB9mLZspWXNehskGJR EbK739zS2azuWyjMM+o5ruwiFvGIt0/r+rAka+L64kX0KLxoMulE82m0gRVjKW2AuTiC YxGvDeHgMAs7aK7MhYFt44WciWm72C11BZAlxWtfG+1C1FLHq1iYFrs9w/bl21Gt6eQ/ u+vA== MIME-Version: 1.0 X-Received: by 10.180.107.193 with SMTP id he1mr31653787wib.69.1418682324694; Mon, 15 Dec 2014 14:25:24 -0800 (PST) Received: by 10.27.82.21 with HTTP; Mon, 15 Dec 2014 14:25:24 -0800 (PST) In-Reply-To: <703912028.2258586.1418677985251.JavaMail.zimbra@xinuos.com> References: <2021452008.2147540.1418173300017.JavaMail.zimbra@xinuos.com> <207531434.2147650.1418173543122.JavaMail.zimbra@xinuos.com> <703912028.2258586.1418677985251.JavaMail.zimbra@xinuos.com> Date: Mon, 15 Dec 2014 14:25:24 -0800 Message-ID: Subject: Re: vmrun.sh error From: Neel Natu To: Susan Stanziano Content-Type: text/plain; charset=UTF-8 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 22:25:26 -0000 Hi Susan, On Mon, Dec 15, 2014 at 1:13 PM, Susan Stanziano wrote: > 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. > This particular patch has not been committed if thats what you mean. best Neel > > > ________________________________ > 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" >