On Sun, Jan 9, 2011 at 9:17 AM, Subbsd <sub...@gmail.com> wrote:
> Hi
>
> is there any mechanism to find out from userland  is supports the
> current kernel VIMAGE or not? something like 'sysctl
> kern.features.vnet=1' ?
> Thanks

I've not been able to determine this either, but as it requires kernel
re-configuration, I usually just know. In my scripts, I make sure and
fail if the call to create a vnet jail fails:

sh -c 'TEST=$(sudo jail -c vnet name=test host.hostname=test path=/) ;
if [ $? = "1" ]; then echo "VIMAGE NOT AVAILABLE" ; exit 1 ; fi'

...or something like that.

There may be a better way, or perhaps there should be.

-Brandon
_______________________________________________
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"

Reply via email to