Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2014 18:15:19 -0800
From:      Neel Natu <neelnatu@gmail.com>
To:        Susan Stanziano <susan.stanziano@xinuos.com>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: vmrun.sh error
Message-ID:  <CAFgRE9EVTOsL6osv_E5cQK45hYh_58_-mvc8DUjNNy1ufg2fSg@mail.gmail.com>
In-Reply-To: <207531434.2147650.1418173543122.JavaMail.zimbra@xinuos.com>
References:  <2021452008.2147540.1418173300017.JavaMail.zimbra@xinuos.com> <207531434.2147650.1418173543122.JavaMail.zimbra@xinuos.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Susan,

On Tue, Dec 9, 2014 at 5:05 PM, Susan Stanziano
<susan.stanziano@xinuos.com> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgRE9EVTOsL6osv_E5cQK45hYh_58_-mvc8DUjNNy1ufg2fSg>