[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] [PATCH virt-what] Add support for detecting bhyve



On Sat, Jul 30, 2016 at 08:14:40PM +0000, Leonardo Brondani Schenkel wrote:
> ---
>  virt-what.in | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/virt-what.in b/virt-what.in
> index 0e048a2..b1eff0d 100644
> --- a/virt-what.in
> +++ b/virt-what.in
> @@ -134,6 +134,13 @@ if echo "$dmi" | grep -q 'Manufacturer: innotek GmbH'; then
>      echo virtualbox
>  fi
>  
> +# Check for bhyve.
> +if [ "$cpuid" = "bhyve bhyve " ]; then
> +  echo bhyve
> +elif echo "$dmi" | grep -q "Vendor: BHYVE"; then
> +  echo bhyve
> +fi
> +
>  # Check for OpenVZ / Virtuozzo.
>  # Added by Evgeniy Sokolov.
>  # /proc/vz - always exists if OpenVZ kernel is running (inside and outside

Didn't see this patch until now.

The patch needs tests.  Have a look at how these have been implemented
in some of the other commits.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]