=head1 NAME

ngcp-virt-identify - check for current virtualization environment

=head1 SYNOPSIS

B<ngcp-virt-identify> [I<option>...]

=head1 DESCRIPTION

This program detects whether the system is running in a virtualization
environment.

=head1 OPTIONS

=over 4

=item B<--type> I<cont-type>

Set the virtualization environment type to check against.
See L<systemd-detect-virt>(1) for the list of virtualization names supported.
The special B<container> value will match any container type.
The special B<vm> value will match any VM type.
If not specified, it will check for container and vm virtualization environments.

=item B<--help>

Display a help text and exit.

=back

=head1 EXIT STATUS

=over 4

=item B<0>

The system is running in a virtualized environment.

=item B<1>

The system is B<not> running in a virtualized environment.

=item B<2>

Either a wrong usage or an unknown error.

=back

=head1 SEE ALSO

B<systemd-detect-virt>(1).

=head1 BUGS AND LIMITATIONS

Please report problems you notice to the Sipwise
Development Team <support@sipwise.com>.

=head1 AUTHORS

Guillem Jover <gjover@sipwise.com> + Michael Prokop <mprokop@sipwise.com>

=head1 LICENSE

Copyright (C) 2020-2022 Sipwise GmbH, Austria

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
