generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
267 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
docs-partials/builder/proxmox/common/rng0Config-not-required.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- Code generated from the comments of the rng0Config struct in builder/proxmox/common/config.go; DO NOT EDIT MANUALLY --> | ||
|
||
- `period` (int) - Period in milliseconds on which the the entropy-injection quota is reset. | ||
Can be a positive value. | ||
Recommended value: `1000`. | ||
|
||
<!-- End of code generated from the comments of the rng0Config struct in builder/proxmox/common/config.go; --> |
13 changes: 13 additions & 0 deletions
13
docs-partials/builder/proxmox/common/rng0Config-required.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Code generated from the comments of the rng0Config struct in builder/proxmox/common/config.go; DO NOT EDIT MANUALLY --> | ||
|
||
- `source` (string) - Device on the host to gather entropy from. | ||
`/dev/urandom` should be preferred over `/dev/random` as Proxmox PVE documentation suggests. | ||
`/dev/hwrng` can be used to pass through a hardware RNG. | ||
Can be one of `/dev/urandom`, `/dev/random`, `/dev/hwrng`. | ||
|
||
- `max_bytes` (int) - Maximum bytes of entropy allowed to get injected into the guest every `period` milliseconds. | ||
Use a lower value when using `/dev/random` since can lead to entropy starvation on the host system. | ||
`0` disables limiting and according to PVE documentation is potentially dangerous for the host. | ||
Recommended value: `1024`. | ||
|
||
<!-- End of code generated from the comments of the rng0Config struct in builder/proxmox/common/config.go; --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- Code generated from the comments of the rng0Config struct in builder/proxmox/common/config.go; DO NOT EDIT MANUALLY --> | ||
|
||
- `rng0` (object): Configure Random Number Generator via VirtIO. | ||
A virtual hardware-RNG can be used to provide entropy from the host system to a guest VM helping avoid entropy starvation which might cause the guest system slow down. | ||
The device is sourced from a host device and guest, his use can be limited: `max_bytes` bytes of data will become available on a `period` ms timer. | ||
[PVE documentation](https://pve.proxmox.com/pve-docs/pve-admin-guide.html) recommends to always use a limiter to avoid guests using too many host resources. | ||
|
||
HCL2 example: | ||
|
||
```hcl | ||
rng0 { | ||
source = "/dev/urandom" | ||
max_bytes = 1024 | ||
period = 1000 | ||
} | ||
``` | ||
|
||
JSON example: | ||
|
||
```json | ||
{ | ||
"rng0": { | ||
"source": "/dev/urandom", | ||
"max_bytes": 1024, | ||
"period": 1000 | ||
} | ||
} | ||
``` | ||
|
||
<!-- End of code generated from the comments of the rng0Config struct in builder/proxmox/common/config.go; --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters