<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Forgot the list<br>
    </p>
    <div class="moz-forward-container"><br>
      -------- Forwarded Message --------
      <table class="moz-email-headers-table" cellspacing="0"
        cellpadding="0" border="0">
        <tbody>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Subject:
            </th>
            <td>Re: [systemd-devel] Bare Metal or VM</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Date: </th>
            <td>Fri, 16 Jul 2021 20:51:50 -0400</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">From: </th>
            <td>Albert Brox <a class="moz-txt-link-rfc2396E" href="mailto:albert@exypno.tech"><albert@exypno.tech></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">To: </th>
            <td>Ed Greshko <a class="moz-txt-link-rfc2396E" href="mailto:ed.greshko@greshko.com"><ed.greshko@greshko.com></a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      Hi Ed, please look into using the ConditionVirtualization=
      directive in your unit.<br>
      <br>
<a class="moz-txt-link-freetext" href="https://www.freedesktop.org/software/systemd/man/systemd.unit.html#ConditionVirtualization=">https://www.freedesktop.org/software/systemd/man/systemd.unit.html#ConditionVirtualization=</a><br>
      <br>
      Regards,<br>
      Albert<br>
      <br>
      On 7/16/21 8:36 PM, Ed Greshko wrote:<br>
      <blockquote type="cite">Hi,<br>
        <br>
        This may be an "uninformed" question since I've not done much
        with systemd.<br>
        <br>
        Is there a way for a service or unit to be aware if the
        environment is Bare Metal or a Virtual Machine.<br>
        <br>
        For example, a unit is triggered by a user logging in as a
        graphical user.  But, I only want the unit's<br>
        ExecStart to be processed if the environment is a qemu VM.  I'd
        rather not have the process started on<br>
        Bare Metal since it would be unused.<br>
        <br>
        Thanks,<br>
        Ed<br>
        <br>
        <br>
        <br>
        <br>
        _______________________________________________<br>
        systemd-devel mailing list<br>
        <a class="moz-txt-link-abbreviated" href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
        <a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
      </blockquote>
    </div>
  </body>
</html>