Skip to content

Commit

Permalink
deploy: c9fe9b9
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Dec 7, 2024
1 parent 30cc969 commit 00d9762
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 46 deletions.
22 changes: 0 additions & 22 deletions host-options.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,28 +195,6 @@ <h2 id="microvmhostenable"><a class="header" href="#microvmhostenable">microvm.h
<ul>
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/host/options.nix">microvm.nix/nixos-modules/host/options.nix</a></li>
</ul>
<h2 id="microvmhosttapscript"><a class="header" href="#microvmhosttapscript">microvm.host.tapScript</a></h2>
<p>Commands to run after creating a tap interface</p>
<p>Defaults to bring the interface up.</p>
<p>If you do not want the interface to be automatically created
at all, just set
<code>systemd.services."microvm-tap-interfaces@%i.service".enable = false</code></p>
<p><em>Type:</em>
strings concatenated with “\n”</p>
<p><em>Default:</em></p>
<pre><code>''
/nix/store/30yhi8slm1993fabx0052whmsv86x3zm-iproute2-6.11.0/bin/ip link set "$id" up
''
</code></pre>
<p><em>Example:</em></p>
<pre><code># Attach tap interface to bridge br0, and bring it up
"/nix/store/30yhi8slm1993fabx0052whmsv86x3zm-iproute2-6.11.0/bin/ip link set \"$id\" master br0 up"

</code></pre>
<p><em>Declared by:</em></p>
<ul>
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/host/options.nix">microvm.nix/nixos-modules/host/options.nix</a></li>
</ul>
<h2 id="microvmhostusenotifysockets"><a class="header" href="#microvmhostusenotifysockets">microvm.host.useNotifySockets</a></h2>
<p>Enable if all your MicroVMs run with a Hypervisor that sends
readiness notification over a VSOCK.</p>
Expand Down
5 changes: 5 additions & 0 deletions interfaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ <h2 id="type--tap"><a class="header" href="#type--tap"><code>type = "tap"</code>
with more than one CPU core.</p>
<p>When running MicroVMs through the <code>host</code> module, the tap network
interfaces are created through a systemd service dependency.</p>
<p>Extend the generated script in the guest configuration like this:</p>
<pre><code class="language-nix">microvm.binScripts.tap-up = lib.mkAfter ''
${lib.getExe' pkgs.iproute2 "ip"} link set dev 'vm-ixp-as11201p' master 'ixp-peering'
'';
</code></pre>
<h2 id="type--macvtap"><a class="header" href="#type--macvtap"><code>type = "macvtap"</code></a></h2>
<p><em>MACVTAP</em> interfaces attach to a host's physical network interface,
joining the same Ethernet segment with a separate MAC address.</p>
Expand Down
27 changes: 5 additions & 22 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,11 @@ <h2 id="type--tap"><a class="header" href="#type--tap"><code>type = "tap"</code>
with more than one CPU core.</p>
<p>When running MicroVMs through the <code>host</code> module, the tap network
interfaces are created through a systemd service dependency.</p>
<p>Extend the generated script in the guest configuration like this:</p>
<pre><code class="language-nix">microvm.binScripts.tap-up = lib.mkAfter ''
${lib.getExe' pkgs.iproute2 "ip"} link set dev 'vm-ixp-as11201p' master 'ixp-peering'
'';
</code></pre>
<h2 id="type--macvtap"><a class="header" href="#type--macvtap"><code>type = "macvtap"</code></a></h2>
<p><em>MACVTAP</em> interfaces attach to a host's physical network interface,
joining the same Ethernet segment with a separate MAC address.</p>
Expand Down Expand Up @@ -1545,28 +1550,6 @@ <h2 id="microvmhostenable"><a class="header" href="#microvmhostenable">microvm.h
<ul>
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/host/options.nix">microvm.nix/nixos-modules/host/options.nix</a></li>
</ul>
<h2 id="microvmhosttapscript"><a class="header" href="#microvmhosttapscript">microvm.host.tapScript</a></h2>
<p>Commands to run after creating a tap interface</p>
<p>Defaults to bring the interface up.</p>
<p>If you do not want the interface to be automatically created
at all, just set
<code>systemd.services."microvm-tap-interfaces@%i.service".enable = false</code></p>
<p><em>Type:</em>
strings concatenated with “\n”</p>
<p><em>Default:</em></p>
<pre><code>''
/nix/store/30yhi8slm1993fabx0052whmsv86x3zm-iproute2-6.11.0/bin/ip link set "$id" up
''
</code></pre>
<p><em>Example:</em></p>
<pre><code># Attach tap interface to bridge br0, and bring it up
"/nix/store/30yhi8slm1993fabx0052whmsv86x3zm-iproute2-6.11.0/bin/ip link set \"$id\" master br0 up"

</code></pre>
<p><em>Declared by:</em></p>
<ul>
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/host/options.nix">microvm.nix/nixos-modules/host/options.nix</a></li>
</ul>
<h2 id="microvmhostusenotifysockets"><a class="header" href="#microvmhostusenotifysockets">microvm.host.useNotifySockets</a></h2>
<p>Enable if all your MicroVMs run with a Hypervisor that sends
readiness notification over a VSOCK.</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 00d9762

Please sign in to comment.