Skip to content

Commit 160a59e

Browse files
committed
deploy: e24078e
1 parent 6f572b4 commit 160a59e

File tree

4 files changed

+88
-20
lines changed

4 files changed

+88
-20
lines changed

microvm-options.html

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,17 @@ <h1 class="menu-title">microvm.nix</h1>
174174

175175
<div id="content" class="content">
176176
<main>
177-
<h2 id="microvmballoonmem"><a class="header" href="#microvmballoonmem">microvm.balloonMem</a></h2>
178-
<p>Amount of balloon memory in megabytes</p>
179-
<p>The way virtio-balloon works is that this is the memory size
180-
that the host can request to be freed by the VM. Initial
181-
booting of the VM allocates mem+balloonMem megabytes of RAM.</p>
177+
<h2 id="microvmballoon"><a class="header" href="#microvmballoon">microvm.balloon</a></h2>
178+
<p>Whether to enable ballooning.</p>
179+
<p>By “inflating” or increasing the balloon the host can reduce the VMs
180+
memory amount and reclaim it for itself.
181+
When “deflating” or decreasing the balloon the host can give the memory
182+
back to the VM.</p>
183+
<p>virtio-mem is recommended over ballooning if supported by the hypervisor.</p>
182184
<p><em>Type:</em>
183-
signed integer</p>
185+
boolean</p>
184186
<p><em>Default:</em>
185-
<code>0</code></p>
187+
<code>false</code></p>
186188
<p><em>Declared by:</em></p>
187189
<ul>
188190
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
@@ -439,6 +441,28 @@ <h2 id="microvmguestenable"><a class="header" href="#microvmguestenable">microvm
439441
<ul>
440442
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
441443
</ul>
444+
<h2 id="microvmhotplugmem"><a class="header" href="#microvmhotplugmem">microvm.hotplugMem</a></h2>
445+
<p>Amount of hotplug memory in megabytes.</p>
446+
<p>This describes the maximum amount of memory that can be dynamically added to the VM with virtio-mem.</p>
447+
<p><em>Type:</em>
448+
unsigned integer, meaning &gt;=0</p>
449+
<p><em>Default:</em>
450+
<code>0</code></p>
451+
<p><em>Declared by:</em></p>
452+
<ul>
453+
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
454+
</ul>
455+
<h2 id="microvmhotpluggedmem"><a class="header" href="#microvmhotpluggedmem">microvm.hotpluggedMem</a></h2>
456+
<p>Amount of hotplugged memory in megabytes.</p>
457+
<p>This basically describes the amount of hotplug memory the VM starts with.</p>
458+
<p><em>Type:</em>
459+
unsigned integer, meaning &gt;=0</p>
460+
<p><em>Default:</em>
461+
<code>0</code></p>
462+
<p><em>Declared by:</em></p>
463+
<ul>
464+
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
465+
</ul>
442466
<h2 id="microvmhugepagemem"><a class="header" href="#microvmhugepagemem">microvm.hugepageMem</a></h2>
443467
<p>Whether to use hugepages as memory backend.
444468
(Currently only respected if using cloud-hypervisor)</p>
@@ -461,6 +485,16 @@ <h2 id="microvmhypervisor"><a class="header" href="#microvmhypervisor">microvm.h
461485
<ul>
462486
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
463487
</ul>
488+
<h2 id="microvminitialballoonmem"><a class="header" href="#microvminitialballoonmem">microvm.initialBalloonMem</a></h2>
489+
<p>Amount of initial balloon memory in megabytes.</p>
490+
<p><em>Type:</em>
491+
unsigned integer, meaning &gt;=0</p>
492+
<p><em>Default:</em>
493+
<code>0</code></p>
494+
<p><em>Declared by:</em></p>
495+
<ul>
496+
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
497+
</ul>
464498
<h2 id="microvminitrdpath"><a class="header" href="#microvminitrdpath">microvm.initrdPath</a></h2>
465499
<p>Path to the initrd file in the initrd package</p>
466500
<p><em>Type:</em>
@@ -552,7 +586,7 @@ <h2 id="microvmkernelparams"><a class="header" href="#microvmkernelparams">micro
552586
<h2 id="microvmmem"><a class="header" href="#microvmmem">microvm.mem</a></h2>
553587
<p>Amount of RAM in megabytes</p>
554588
<p><em>Type:</em>
555-
signed integer</p>
589+
positive integer, meaning &gt;0</p>
556590
<p><em>Default:</em>
557591
<code>512</code></p>
558592
<p><em>Declared by:</em></p>
@@ -798,7 +832,7 @@ <h2 id="microvmuser"><a class="header" href="#microvmuser">microvm.user</a></h2>
798832
<h2 id="microvmvcpu"><a class="header" href="#microvmvcpu">microvm.vcpu</a></h2>
799833
<p>Number of virtual CPU cores</p>
800834
<p><em>Type:</em>
801-
signed integer</p>
835+
positive integer, meaning &gt;0</p>
802836
<p><em>Default:</em>
803837
<code>1</code></p>
804838
<p><em>Declared by:</em></p>

print.html

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -533,15 +533,17 @@ <h2 id="configure-microvmhypervisor-use-microvmdeclaredrunner"><a class="header"
533533
<code>microvm.hypervisor</code> option can be wrong when you pick from
534534
<code>microvm.runners</code> directly. One example would be the defaults set by
535535
<code>microvm.optimize</code>.</p>
536-
<div style="break-before: page; page-break-before: always;"></div><h2 id="microvmballoonmem"><a class="header" href="#microvmballoonmem">microvm.balloonMem</a></h2>
537-
<p>Amount of balloon memory in megabytes</p>
538-
<p>The way virtio-balloon works is that this is the memory size
539-
that the host can request to be freed by the VM. Initial
540-
booting of the VM allocates mem+balloonMem megabytes of RAM.</p>
536+
<div style="break-before: page; page-break-before: always;"></div><h2 id="microvmballoon"><a class="header" href="#microvmballoon">microvm.balloon</a></h2>
537+
<p>Whether to enable ballooning.</p>
538+
<p>By “inflating” or increasing the balloon the host can reduce the VMs
539+
memory amount and reclaim it for itself.
540+
When “deflating” or decreasing the balloon the host can give the memory
541+
back to the VM.</p>
542+
<p>virtio-mem is recommended over ballooning if supported by the hypervisor.</p>
541543
<p><em>Type:</em>
542-
signed integer</p>
544+
boolean</p>
543545
<p><em>Default:</em>
544-
<code>0</code></p>
546+
<code>false</code></p>
545547
<p><em>Declared by:</em></p>
546548
<ul>
547549
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
@@ -798,6 +800,28 @@ <h2 id="microvmguestenable"><a class="header" href="#microvmguestenable">microvm
798800
<ul>
799801
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
800802
</ul>
803+
<h2 id="microvmhotplugmem"><a class="header" href="#microvmhotplugmem">microvm.hotplugMem</a></h2>
804+
<p>Amount of hotplug memory in megabytes.</p>
805+
<p>This describes the maximum amount of memory that can be dynamically added to the VM with virtio-mem.</p>
806+
<p><em>Type:</em>
807+
unsigned integer, meaning &gt;=0</p>
808+
<p><em>Default:</em>
809+
<code>0</code></p>
810+
<p><em>Declared by:</em></p>
811+
<ul>
812+
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
813+
</ul>
814+
<h2 id="microvmhotpluggedmem"><a class="header" href="#microvmhotpluggedmem">microvm.hotpluggedMem</a></h2>
815+
<p>Amount of hotplugged memory in megabytes.</p>
816+
<p>This basically describes the amount of hotplug memory the VM starts with.</p>
817+
<p><em>Type:</em>
818+
unsigned integer, meaning &gt;=0</p>
819+
<p><em>Default:</em>
820+
<code>0</code></p>
821+
<p><em>Declared by:</em></p>
822+
<ul>
823+
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
824+
</ul>
801825
<h2 id="microvmhugepagemem"><a class="header" href="#microvmhugepagemem">microvm.hugepageMem</a></h2>
802826
<p>Whether to use hugepages as memory backend.
803827
(Currently only respected if using cloud-hypervisor)</p>
@@ -820,6 +844,16 @@ <h2 id="microvmhypervisor"><a class="header" href="#microvmhypervisor">microvm.h
820844
<ul>
821845
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
822846
</ul>
847+
<h2 id="microvminitialballoonmem"><a class="header" href="#microvminitialballoonmem">microvm.initialBalloonMem</a></h2>
848+
<p>Amount of initial balloon memory in megabytes.</p>
849+
<p><em>Type:</em>
850+
unsigned integer, meaning &gt;=0</p>
851+
<p><em>Default:</em>
852+
<code>0</code></p>
853+
<p><em>Declared by:</em></p>
854+
<ul>
855+
<li><a href="https://github.com/astro/microvm.nix/tree/main/nixos-modules/microvm/options.nix">microvm.nix/nixos-modules/microvm/options.nix</a></li>
856+
</ul>
823857
<h2 id="microvminitrdpath"><a class="header" href="#microvminitrdpath">microvm.initrdPath</a></h2>
824858
<p>Path to the initrd file in the initrd package</p>
825859
<p><em>Type:</em>
@@ -911,7 +945,7 @@ <h2 id="microvmkernelparams"><a class="header" href="#microvmkernelparams">micro
911945
<h2 id="microvmmem"><a class="header" href="#microvmmem">microvm.mem</a></h2>
912946
<p>Amount of RAM in megabytes</p>
913947
<p><em>Type:</em>
914-
signed integer</p>
948+
positive integer, meaning &gt;0</p>
915949
<p><em>Default:</em>
916950
<code>512</code></p>
917951
<p><em>Declared by:</em></p>
@@ -1157,7 +1191,7 @@ <h2 id="microvmuser"><a class="header" href="#microvmuser">microvm.user</a></h2>
11571191
<h2 id="microvmvcpu"><a class="header" href="#microvmvcpu">microvm.vcpu</a></h2>
11581192
<p>Number of virtual CPU cores</p>
11591193
<p><em>Type:</em>
1160-
signed integer</p>
1194+
positive integer, meaning &gt;0</p>
11611195
<p><em>Default:</em>
11621196
<code>1</code></p>
11631197
<p><em>Declared by:</em></p>

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)