Re: libvirt and rebooting of a bhyve VM

2014-08-20 Thread Roman Bogorodskiy
Kurt Lidl wrote: > On Tue, Aug 19, 2014, Craig Rodriques wrote: > > On Tue, Aug 19, 2014 at 12:18 PM, Allan Jude > > 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 ri

Re: libvirt and rebooting of a bhyve VM

2014-08-20 Thread Craig Rodrigues
On Wed, Aug 20, 2014 at 8:15 AM, John Baldwin wrote: > It probably would be good to document the return codes in the man page, but > eventually they will all go away. The long term plan is to make bhyve operate > more like other hypervisors in which case a single process invocation will > mimic a

Re: libvirt and rebooting of a bhyve VM

2014-08-20 Thread Kurt Lidl
On Tue, Aug 19, 2014, Craig Rodriques wrote: On Tue, Aug 19, 2014 at 12:18 PM, Allan Jude 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 star

Re: libvirt and rebooting of a bhyve VM

2014-08-20 Thread John Baldwin
On Tuesday, August 19, 2014 2:33:19 pm Craig Rodrigues wrote: > On Tue, Aug 19, 2014 at 10:32 AM, John Baldwin wrote: > > The exit code is different. An ACPI shutdown uses an exit code of 1 whereas a > > reboot uses an exit code of 0 IIRC. > > > Hi, > > I have a CURRENT system, and ran some t

Re: libvirt and rebooting of a bhyve VM

2014-08-20 Thread Roman Bogorodskiy
Allan Jude wrote: > On 2014-08-19 11:50, John Nielsen wrote: > > On Aug 19, 2014, at 9:40 AM, Roman Bogorodskiy wrote: > > > >> Craig Rodrigues wrote: > >> > >>> Roman, > >>> > >>> I am using libvirt and bhyve according to this XML: > >>> http://libvirt.org/drvbhyve.html > >>> and it works gr

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Craig Rodrigues
On Tue, Aug 19, 2014 at 12:18 PM, Allan Jude 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. > would b

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Allan Jude
On 2014-08-19 15:04, Craig Rodrigues wrote: > On Tue, Aug 19, 2014 at 9:25 AM, Allan Jude wrote: >> >> Yes, this revision adds the ability to 'reboot'. This does not exit >> bhyve at all, so there is no exit level >> >> You can 'reboot' a bhyve externally using: >> bhyvectl --force-reset --vm=xxx

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Craig Rodrigues
On Tue, Aug 19, 2014 at 9:25 AM, Allan Jude wrote: > > Yes, this revision adds the ability to 'reboot'. This does not exit > bhyve at all, so there is no exit level > > You can 'reboot' a bhyve externally using: > bhyvectl --force-reset --vm=xxx > > or force a poweroff with: bhyvectl --force-reset

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Craig Rodrigues
On Tue, Aug 19, 2014 at 10:32 AM, John Baldwin wrote: > The exit code is different. An ACPI shutdown uses an exit code of 1 whereas a > reboot uses an exit code of 0 IIRC. Hi, I have a CURRENT system, and ran some tests doing a "shutdown -r" and "shutdown -p" verified that you are right, with

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread John Baldwin
On Tuesday, August 19, 2014 11:50:43 am Craig Rodrigues wrote: > On Tue, Aug 19, 2014 at 8:40 AM, Roman Bogorodskiy wrote: > > Hi Craig, > > > > Unfortunately, I'm not sure how to get the reboot working. Moreover, I > > get the same behaviour when starting bhyve manually -- when I do a > > reboot

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Allan Jude
On 2014-08-19 12:32, Craig Rodrigues wrote: > On Tue, Aug 19, 2014 at 9:25 AM, Allan Jude wrote: >> >> Yes, this revision adds the ability to 'reboot'. This does not exit >> bhyve at all, so there is no exit level >> >> You can 'reboot' a bhyve externally using: >> bhyvectl --force-reset --vm=xxx

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Craig Rodrigues
On Tue, Aug 19, 2014 at 9:25 AM, Allan Jude wrote: > > Yes, this revision adds the ability to 'reboot'. This does not exit > bhyve at all, so there is no exit level > > You can 'reboot' a bhyve externally using: > bhyvectl --force-reset --vm=xxx > > or force a poweroff with: bhyvectl --force-reset

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Allan Jude
On 2014-08-19 11:50, John Nielsen wrote: > On Aug 19, 2014, at 9:40 AM, Roman Bogorodskiy wrote: > >> Craig Rodrigues wrote: >> >>> Roman, >>> >>> I am using libvirt and bhyve according to this XML: >>> http://libvirt.org/drvbhyve.html >>> and it works great. >>> I gave a presentation at BAFUG o

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Roman Bogorodskiy
John Nielsen wrote: > On Aug 19, 2014, at 9:40 AM, Roman Bogorodskiy wrote: > > > Craig Rodrigues wrote: > > > >> Roman, > >> > >> I am using libvirt and bhyve according to this XML: > >> http://libvirt.org/drvbhyve.html > >> and it works great. > >> I gave a presentation at BAFUG on this:

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread John Nielsen
On Aug 19, 2014, at 9:40 AM, Roman Bogorodskiy wrote: > Craig Rodrigues wrote: > >> Roman, >> >> I am using libvirt and bhyve according to this XML: >> http://libvirt.org/drvbhyve.html >> and it works great. >> I gave a presentation at BAFUG on this: >> http://www.slideshare.net/CraigRodrigues

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Craig Rodrigues
On Tue, Aug 19, 2014 at 8:40 AM, Roman Bogorodskiy wrote: > Hi Craig, > > Unfortunately, I'm not sure how to get the reboot working. Moreover, I > get the same behaviour when starting bhyve manually -- when I do a > reboot, bhyve(8) exits as soon as the system is ready to restart. > > So looks lik

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Roman Bogorodskiy
Allan Jude wrote: > On 2014-08-19 11:40, Roman Bogorodskiy wrote: > > Craig Rodrigues wrote: > > > >> Roman, > >> > >> I am using libvirt and bhyve according to this XML: > >> http://libvirt.org/drvbhyve.html > >> and it works great. > >> I gave a presentation at BAFUG on this: > >> http://ww

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Allan Jude
On 2014-08-19 11:40, Roman Bogorodskiy wrote: > Craig Rodrigues wrote: > >> Roman, >> >> I am using libvirt and bhyve according to this XML: >> http://libvirt.org/drvbhyve.html >> and it works great. >> I gave a presentation at BAFUG on this: >> http://www.slideshare.net/CraigRodrigues1/libvirt-

Re: libvirt and rebooting of a bhyve VM

2014-08-19 Thread Roman Bogorodskiy
Craig Rodrigues wrote: > Roman, > > I am using libvirt and bhyve according to this XML: > http://libvirt.org/drvbhyve.html > and it works great. > I gave a presentation at BAFUG on this: > http://www.slideshare.net/CraigRodrigues1/libvirt-bhyve > > I have one question. If I reboot the bhyve V

libvirt and rebooting of a bhyve VM

2014-08-18 Thread Craig Rodrigues
Roman, I am using libvirt and bhyve according to this XML: http://libvirt.org/drvbhyve.html and it works great. I gave a presentation at BAFUG on this: http://www.slideshare.net/CraigRodrigues1/libvirt-bhyve I have one question. If I reboot the bhyve VM started with libvirt with "shutdown -r now