Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Feb 2014 04:47:12 -0500
From:      Aryeh Friedman <aryeh.friedman@gmail.com>
To:        Craig Rodrigues <rodrigc@freebsd.org>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: Detect of BHyve VM was powered off or rebooted?
Message-ID:  <CAGBxaXnb_VX_JTsS5y%2Bz2_CPr5w62hqgPecOduqKZa2ye217wA@mail.gmail.com>
In-Reply-To: <CAG=rPVc4-Ph9%2Bw1U3cGdYbe7WFDZx4sAvNr50ADRe2B7J34Phg@mail.gmail.com>
References:  <CAG=rPVcfYQ2nUaZYuc6teL2r%2BQZzxhuoV052zgf6=Dxh8MeNcA@mail.gmail.com> <CAFgRE9Fw308%2BA14c1ttXj%2BYv-CMVRZ-DSE_9DWz46sfpdWg3PQ@mail.gmail.com> <201402111411.33269.jhb@freebsd.org> <CAG=rPVd15giiO_ugOAt2uBDqzePR3A3iCNpXFcXd2QzS1=oqJQ@mail.gmail.com> <21FA50D3-8092-40EA-9B66-9BAC34A4A548@gmail.com> <CAG=rPVc4-Ph9%2Bw1U3cGdYbe7WFDZx4sAvNr50ADRe2B7J34Phg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 12, 2014 at 4:28 AM, Craig Rodrigues <rodrigc@freebsd.org>wrote:

> On Tue, Feb 11, 2014 at 3:18 PM, Neel Natu <neelnatu@gmail.com> wrote:
>
> >
> > >
> > >
> > >
> > > One question, if "bhyve" exits, do I have to call bhyveload again
> before
> > > calling bhyve?
> >
> > Yes, that is correct. You will also need to destroy the VM after bhyve
> > exits.
> >
>
>
> Why can't bhyve clean up after itself as the bhyve process exits
> and destroy the VM?
>
> It seems pointless to me for the user to have to explictly
> destroy the VM.  Once the bhyve process exits, I doesn't seem that I can
> use
> the VM again anyways.  To run the VM again, I seem to need to call:
>   -> bhyvectl to destroy the VM
>   -> bhyveload to load
>   -> bhyve to run the VM
>
> Aryeh has pointed out to me that it is the responsibility of the
> user to explictly destroy and tap and bridge devices used by the
> bhyve process after it exits.  Is this right?
>
> What if I have a  single bridge0 device, and 10 tap devices,
> one per VM?  If one VM exits and needs to be restarted, do
> I need to tear down all the taps and bridge?
>

Yes you do.   It gets really harry when you have multple vm's and taps per
instance that need to start and stop at arbitrary times.   We are currently
disccusing this issue on the petitecloud mailing list it might be off topic
here to get into too much detail.

-- 
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaXnb_VX_JTsS5y%2Bz2_CPr5w62hqgPecOduqKZa2ye217wA>