Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2014 12:34:25 -0400
From:      Kurt Lidl <lidl@pix.net>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: libvirt and rebooting of a bhyve VM
Message-ID:  <53F4CE11.4070403@pix.net>
In-Reply-To: <CAG=rPVcTrPPEhgQYnqLPK1Ve-JAhuAbpyGzGgbdq7BDzVW3toA@mail.gmail.com>
References:  <CAG=rPVcTrPPEhgQYnqLPK1Ve-JAhuAbpyGzGgbdq7BDzVW3toA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 19, 2014, Craig Rodriques wrote:
> On Tue, Aug 19, 2014 at 12:18 PM, Allan Jude <allanjude at freebsd.org> wrote:
>>
>> The name of the vm is in the title of the bhyve process, but yes, it
>
> Hmm, OK, that would require me to grep the processes and send SIGTERM
> to the right pid.
> That's not ideal, especially if I start lots of VM's, but it is workable.

I would think that hacking in support to the bhyve program to use
pidfile_write() in libutil, with something like:
	/var/run/bhyve.vmname.pid
as the default pathname for the pidfile would make this a lot
easier to manage from a script.

-Kurt




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