| 1 |
# -*- coding: utf-8 -*- |
| 2 |
|
| 3 |
from __future__ import absolute_import, division, print_function |
| 4 |
|
| 5 |
__metaclass__ = type |
| 6 |
|
| 7 |
|
| 8 |
class ModuleDocFragment(object): |
| 9 |
|
| 10 |
OPTIONS_MEMORY = """ |
| 11 |
options: |
| 12 |
memory: |
| 13 |
type: int |
| 14 |
description: |
| 15 |
- Memory to allocate for the guest, in MiB. |
| 16 |
memory_opts: |
| 17 |
type: dict |
| 18 |
description: |
| 19 |
- Additional options for memory allocation. |
| 20 |
suboptions: |
| 21 |
current_memory: |
| 22 |
type: int |
| 23 |
description: |
| 24 |
- The actual allocation of memory for the guest, in MiB. |
| 25 |
max_memory: |
| 26 |
type: int |
| 27 |
description: |
| 28 |
- The run time maximum memory allocation of the guest, in MiB. |
| 29 |
max_memory_opts: |
| 30 |
type: dict |
| 31 |
description: |
| 32 |
- Additional options for maximum memory configuration. |
| 33 |
suboptions: |
| 34 |
slots: |
| 35 |
type: int |
| 36 |
description: |
| 37 |
- The number of slots available for adding memory to the guest. |
| 38 |
""" |
| 39 |
|
| 40 |
OPTIONS_MEMORYBACKING = """ |
| 41 |
options: |
| 42 |
memorybacking: |
| 43 |
type: dict |
| 44 |
description: |
| 45 |
- Specify how virtual memory pages are backed by host pages |
| 46 |
suboptions: |
| 47 |
hugepages: |
| 48 |
type: bool |
| 49 |
description: |
| 50 |
- Use huge pages for memory backing. |
| 51 |
hugepage_specs: |
| 52 |
type: list |
| 53 |
elements: dict |
| 54 |
description: |
| 55 |
- Configure hugepage specifications for memory backing. |
| 56 |
suboptions: |
| 57 |
page_size: |
| 58 |
type: int |
| 59 |
description: |
| 60 |
- Specify the hugepage size with a unit suffix. |
| 61 |
nodeset: |
| 62 |
type: str |
| 63 |
description: |
| 64 |
- Specify the guest's NUMA nodes to certain hugepage sizes. |
| 65 |
nosharepages: |
| 66 |
type: bool |
| 67 |
description: |
| 68 |
- Instructs hypervisor to disable shared pages (memory merge, KSM) for this domain. |
| 69 |
locked: |
| 70 |
type: bool |
| 71 |
description: |
| 72 |
- Memory pages will be locked in host's memory and will not be swapped out. |
| 73 |
source: |
| 74 |
type: dict |
| 75 |
description: |
| 76 |
- Configure the source of memory backing. |
| 77 |
version_added: '2.1.0' |
| 78 |
suboptions: |
| 79 |
type: |
| 80 |
type: str |
| 81 |
choices: [ anonymous, file, memfd ] |
| 82 |
description: |
| 83 |
- The type of memory backing source. |
| 84 |
access: |
| 85 |
type: dict |
| 86 |
description: |
| 87 |
- Configure memory access permissions. |
| 88 |
suboptions: |
| 89 |
mode: |
| 90 |
type: str |
| 91 |
choices: [ shared, private ] |
| 92 |
description: |
| 93 |
- The access mode for the memory. |
| 94 |
allocation: |
| 95 |
type: dict |
| 96 |
description: |
| 97 |
- Configure memory allocation behavior. |
| 98 |
suboptions: |
| 99 |
mode: |
| 100 |
type: str |
| 101 |
choices: [ immediate, ondemand ] |
| 102 |
description: |
| 103 |
- Specify when to allocate the memory by supplying either V(immediate) or V(ondemand). |
| 104 |
threads: |
| 105 |
type: int |
| 106 |
description: |
| 107 |
- The number of threads that hypervisor uses to allocate memory. |
| 108 |
discard: |
| 109 |
type: bool |
| 110 |
description: |
| 111 |
- If set to V(true), the memory content is discarded just before guest shuts down (or when DIMM module is unplugged). |
| 112 |
""" |
| 113 |
|
| 114 |
OPTIONS_ARCH = """ |
| 115 |
options: |
| 116 |
arch: |
| 117 |
type: str |
| 118 |
description: |
| 119 |
- Request a non-native CPU architecture for the guest virtual machine. |
| 120 |
- If omitted, the host CPU architecture will be used in the guest. |
| 121 |
""" |
| 122 |
|
| 123 |
OPTIONS_MACHINE = """ |
| 124 |
options: |
| 125 |
machine: |
| 126 |
type: str |
| 127 |
description: |
| 128 |
- The machine type to emulate. This will typically not need to be specified for Xen or KVM. |
| 129 |
""" |
| 130 |
|
| 131 |
OPTIONS_METADATA = """ |
| 132 |
options: |
| 133 |
metadata: |
| 134 |
type: dict |
| 135 |
description: |
| 136 |
- Specify the metadata for the guest virtual machine. |
| 137 |
- The dictionary contains key/value pairs that define individual metadata entries. |
| 138 |
- 'e.g. V({uuid: 4dea22b3-1d52-d8f3-2516-782e98ab3fa0})' |
| 139 |
- Use C(virt-install --metadata=?) to see a list of all available sub options. |
| 140 |
""" |
| 141 |
|
| 142 |
OPTIONS_EVENTS = """ |
| 143 |
options: |
| 144 |
events: |
| 145 |
type: dict |
| 146 |
description: |
| 147 |
- Specify events values for the guest. |
| 148 |
suboptions: |
| 149 |
on_poweroff: |
| 150 |
type: str |
| 151 |
choices: [ destroy, restart, preserve, rename-restart ] |
| 152 |
description: |
| 153 |
- Action to take when the guest requests a poweroff. |
| 154 |
on_reboot: |
| 155 |
type: str |
| 156 |
choices: [ destroy, restart, preserve, rename-restart ] |
| 157 |
description: |
| 158 |
- Action to take when the guest requests a reboot. |
| 159 |
on_crash: |
| 160 |
type: str |
| 161 |
choices: [ destroy, restart, preserve, rename-restart, coredump-destroy, coredump-restart ] |
| 162 |
description: |
| 163 |
- Action to take when the guest crashes. |
| 164 |
on_lockfailure: |
| 165 |
type: str |
| 166 |
choices: [ poweroff, restart, pause, ignore ] |
| 167 |
description: |
| 168 |
- Action to take when when a lock manager loses resource locks. |
| 169 |
""" |
| 170 |
|
| 171 |
OPTIONS_RESOURCE = """ |
| 172 |
options: |
| 173 |
resource: |
| 174 |
type: dict |
| 175 |
description: |
| 176 |
- Specify resource partitioning for the guest. |
| 177 |
- The dictionary contains key/value pairs that define individual resource entries. |
| 178 |
- Use C(virt-install --resource=?) to see a list of all available sub options. |
| 179 |
""" |
| 180 |
|
| 181 |
OPTIONS_SYSINFO = """ |
| 182 |
options: |
| 183 |
sysinfo: |
| 184 |
type: dict |
| 185 |
description: |
| 186 |
- Configure sysinfo/SMBIOS values exposed to the VM OS. |
| 187 |
- The dictionary contains key/value pairs that define individual sysinfo entries. |
| 188 |
- Use C(virt-install --sysinfo=?) to see a list of all available sub options. |
| 189 |
""" |
| 190 |
|
| 191 |
OPTIONS_QEMU_COMMANDLINE = """ |
| 192 |
options: |
| 193 |
qemu_commandline: |
| 194 |
type: str |
| 195 |
description: |
| 196 |
- Pass options directly to the qemu emulator. Only works for the libvirt qemu driver. |
| 197 |
""" |
| 198 |
|
| 199 |
OPTIONS_VCPUS = """ |
| 200 |
options: |
| 201 |
vcpus: |
| 202 |
type: int |
| 203 |
description: |
| 204 |
- Number of virtual cpus to configure for the guest. |
| 205 |
vcpus_opts: |
| 206 |
type: dict |
| 207 |
description: |
| 208 |
- Additional options for virtual CPU configuration. |
| 209 |
suboptions: |
| 210 |
maxvcpus: |
| 211 |
type: int |
| 212 |
description: |
| 213 |
- If specified, the guest will be able to hotplug up to MAX vcpus while the guest is running. |
| 214 |
sockets: |
| 215 |
type: int |
| 216 |
description: |
| 217 |
- Total number of CPU sockets |
| 218 |
dies: |
| 219 |
type: int |
| 220 |
description: |
| 221 |
- Number of dies per socket |
| 222 |
clusters: |
| 223 |
type: int |
| 224 |
description: |
| 225 |
- number of clusters per die |
| 226 |
cores: |
| 227 |
type: int |
| 228 |
description: |
| 229 |
- Number of cores per cluster |
| 230 |
threads: |
| 231 |
type: int |
| 232 |
description: |
| 233 |
- Number of threads per core |
| 234 |
current: |
| 235 |
type: int |
| 236 |
description: |
| 237 |
- Specify whether fewer than the maximum number of virtual CPUs should be enabled. |
| 238 |
cpuset: |
| 239 |
type: str |
| 240 |
description: |
| 241 |
- A comma-separated list of physical CPU numbers that domain process and virtual CPUs can be pinned to by default. |
| 242 |
placement: |
| 243 |
type: str |
| 244 |
choices: [ static, auto ] |
| 245 |
description: |
| 246 |
- Indicate the CPU placement mode for domain process |
| 247 |
vcpu_specs: |
| 248 |
type: list |
| 249 |
elements: dict |
| 250 |
description: |
| 251 |
- Configure individual vCPU properties. |
| 252 |
- Each dictionary entry contains a property name and its corresponding value. |
| 253 |
""" |
| 254 |
|
| 255 |
OPTIONS_NUMATUNE = """ |
| 256 |
options: |
| 257 |
numatune: |
| 258 |
type: dict |
| 259 |
description: |
| 260 |
- Tune NUMA policy for the domain process. |
| 261 |
suboptions: |
| 262 |
memory: |
| 263 |
type: dict |
| 264 |
description: |
| 265 |
- Specifies how to allocate memory for the domain process on a NUMA host. |
| 266 |
suboptions: |
| 267 |
mode: |
| 268 |
type: str |
| 269 |
choices: [ interleave, preferred, strict ] |
| 270 |
description: |
| 271 |
- Can be one of V(interleave), V(preferred), or V(strict) (the default) |
| 272 |
nodeset: |
| 273 |
type: str |
| 274 |
description: |
| 275 |
- Specifies the NUMA nodes to allocate memory from. |
| 276 |
placement: |
| 277 |
type: str |
| 278 |
choices: [ static, auto ] |
| 279 |
description: |
| 280 |
- Indicate the memory placement mode for domain process. |
| 281 |
memnode_specs: |
| 282 |
type: list |
| 283 |
elements: dict |
| 284 |
description: |
| 285 |
- Specify memory allocation policies per each guest NUMA node. |
| 286 |
suboptions: |
| 287 |
cellid: |
| 288 |
type: int |
| 289 |
description: |
| 290 |
- Specify the NUMA node ID. |
| 291 |
mode: |
| 292 |
type: str |
| 293 |
choices: [ interleave, preferred, strict ] |
| 294 |
description: |
| 295 |
- Can be one of V(interleave), V(preferred), or V(strict) (the default) |
| 296 |
nodeset: |
| 297 |
type: str |
| 298 |
description: |
| 299 |
- Specifies the NUMA nodes to allocate memory from. |
| 300 |
""" |
| 301 |
|
| 302 |
OPTIONS_MEMTUNE = """ |
| 303 |
options: |
| 304 |
memtune: |
| 305 |
type: dict |
| 306 |
description: |
| 307 |
- Tune memory policy for the domain process. |
| 308 |
- The dictionary contains key/value pairs that define individual memtune entries. |
| 309 |
""" |
| 310 |
|
| 311 |
OPTIONS_BLKIOTUNE = """ |
| 312 |
options: |
| 313 |
blkiotune: |
| 314 |
type: dict |
| 315 |
description: |
| 316 |
- Tune block I/O policy for the domain process. |
| 317 |
suboptions: |
| 318 |
weight: |
| 319 |
type: int |
| 320 |
description: |
| 321 |
- The overall I/O weight of the guest. |
| 322 |
- The value should be in the range [100, 1000]. After kernel 2.6.39, the value could be in the range [10, 1000]. |
| 323 |
devices: |
| 324 |
type: list |
| 325 |
elements: dict |
| 326 |
description: |
| 327 |
- Tune the weights for individual host block device used by the guest. |
| 328 |
- Each dictionary entry contains a property name and its corresponding value. |
| 329 |
""" |
| 330 |
|
| 331 |
OPTIONS_CPU = """ |
| 332 |
options: |
| 333 |
cpu: |
| 334 |
type: dict |
| 335 |
description: |
| 336 |
- Configure the CPU model and CPU features exposed to the guest. |
| 337 |
suboptions: |
| 338 |
model: |
| 339 |
type: str |
| 340 |
description: |
| 341 |
- A valid CPU model or configuration mode for the guest. |
| 342 |
- "The possible values include: V(host-model), V(host-passthrough) and V(maximum)." |
| 343 |
model_opts: |
| 344 |
type: dict |
| 345 |
description: |
| 346 |
- Additional options for CPU model configuration. |
| 347 |
suboptions: |
| 348 |
fallback: |
| 349 |
type: str |
| 350 |
choices: [ forbid, allow ] |
| 351 |
description: |
| 352 |
- Specify whether to automatically fall back to the closest model supported by the hypervisor if unable to use the exact CPU model. |
| 353 |
vendor_id: |
| 354 |
type: str |
| 355 |
description: |
| 356 |
- Set the vendor id seen by the guest. It must be exactly 12 characters long. |
| 357 |
- Typical possible values are I(AuthenticAMD) and I(GenuineIntel). |
| 358 |
match: |
| 359 |
type: str |
| 360 |
choices: [ exact, minimum, strict ] |
| 361 |
description: |
| 362 |
- Specify how strictly the CPU model should be matched. |
| 363 |
migratable: |
| 364 |
type: bool |
| 365 |
description: |
| 366 |
- Specify whether this CPU model is migratable. |
| 367 |
vendor: |
| 368 |
type: str |
| 369 |
description: |
| 370 |
- Specify CPU vendor requested by the guest |
| 371 |
- The list of supported vendors can be found in I(cpu_map/*_vendors.xml). |
| 372 |
features: |
| 373 |
type: dict |
| 374 |
description: |
| 375 |
- Fine-tune features provided by the selected CPU model. |
| 376 |
- The value should be a dictionary where each key is a feature name and the value is a dictionary of options for that feature. |
| 377 |
- An empty object V({}) for a feature indicates to enable that feature. |
| 378 |
suboptions: |
| 379 |
policy: |
| 380 |
type: str |
| 381 |
choices: [ force, require, optional, disable, forbid ] |
| 382 |
description: |
| 383 |
- The policy for the CPU feature. |
| 384 |
- If set to V(force), the vCPU will claim the feature is supported regardless of it being supported by host CPU. |
| 385 |
- If set to V(require), guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. |
| 386 |
- If set to V(optional), the feature will be supported by vCPU if and only if it is supported by host CPU. |
| 387 |
- If set to V(disable), the feature will not be supported by virtual CPU. |
| 388 |
- If set to V(forbid), guest creation will fail if the feature is supported by host CPU. |
| 389 |
cache: |
| 390 |
type: dict |
| 391 |
description: |
| 392 |
- vCPU cache configuration for the guest. |
| 393 |
suboptions: |
| 394 |
mode: |
| 395 |
type: str |
| 396 |
choices: [ emulate, passthrough, disable ] |
| 397 |
description: |
| 398 |
- If set to V(emulate), the hypervisor will provide a fake CPU cache data. |
| 399 |
- If set to V(passthrough), the host CPU cache data reported by the host CPU will be passed through to the vCPU. |
| 400 |
- If set to V(disable), the vCPU will report no CPU cache at all. |
| 401 |
level: |
| 402 |
type: int |
| 403 |
description: |
| 404 |
- Specify the level of CPU cache. |
| 405 |
numa: |
| 406 |
type: dict |
| 407 |
description: |
| 408 |
- Configure NUMA topology for the guest. |
| 409 |
suboptions: |
| 410 |
cell_specs: |
| 411 |
type: list |
| 412 |
elements: dict |
| 413 |
description: |
| 414 |
- Specify a NUMA cell configuration. |
| 415 |
suboptions: |
| 416 |
id: |
| 417 |
type: int |
| 418 |
description: |
| 419 |
- Specify the NUMA node ID. |
| 420 |
cpus: |
| 421 |
type: str |
| 422 |
description: |
| 423 |
- Specify the CPU or range of CPUs that are part of this node. |
| 424 |
memory: |
| 425 |
type: int |
| 426 |
description: |
| 427 |
- Specify the node memory size with a unit suffix. |
| 428 |
mem_access: |
| 429 |
type: str |
| 430 |
choices: [ shared, private ] |
| 431 |
description: |
| 432 |
- Specify the memory access mode for the NUMA node. |
| 433 |
- This is valid only for hugepages-backed memory and nvdimm modules. |
| 434 |
discard: |
| 435 |
type: bool |
| 436 |
description: |
| 437 |
- Fine tune the discard feature for given NUMA node. |
| 438 |
distances: |
| 439 |
type: dict |
| 440 |
description: |
| 441 |
- Define the distance between NUMA cells. |
| 442 |
suboptions: |
| 443 |
sibling_specs: |
| 444 |
type: list |
| 445 |
elements: dict |
| 446 |
description: |
| 447 |
- Specify the distance value between sibling NUMA cells. |
| 448 |
- Each dictionary entry contains a property name and its corresponding value. |
| 449 |
cache_specs: |
| 450 |
type: list |
| 451 |
elements: dict |
| 452 |
description: |
| 453 |
- Describe memory side cache for memory proximity domains. |
| 454 |
- Each dictionary entry contains a property name and its corresponding value. |
| 455 |
interconnects: |
| 456 |
type: list |
| 457 |
elements: dict |
| 458 |
description: |
| 459 |
- Describes the normalized memory read/write latency and bandwidth between Initiator Proximity Domains and Target Proximity Domains. |
| 460 |
suboptions: |
| 461 |
bandwidth_specs: |
| 462 |
type: list |
| 463 |
elements: dict |
| 464 |
description: |
| 465 |
- Describe bandwidth between two memory nodes. |
| 466 |
- Each dictionary entry contains a property name and its corresponding value. |
| 467 |
latency_specs: |
| 468 |
type: list |
| 469 |
elements: dict |
| 470 |
description: |
| 471 |
- Describe latency between two memory nodes. |
| 472 |
- Each dictionary entry contains a property name and its corresponding value. |
| 473 |
""" |
| 474 |
|
| 475 |
OPTIONS_CPUTUNE = """ |
| 476 |
options: |
| 477 |
cputune: |
| 478 |
type: dict |
| 479 |
description: |
| 480 |
- Tune CPU parameters for the guest. |
| 481 |
suboptions: |
| 482 |
vcpupin_specs: |
| 483 |
type: list |
| 484 |
elements: dict |
| 485 |
description: |
| 486 |
- Specify which of host's physical CPUs the domain vCPU will be pinned to |
| 487 |
suboptions: |
| 488 |
vcpu: |
| 489 |
type: int |
| 490 |
description: |
| 491 |
- Specify the vCPU ID. |
| 492 |
cpuset: |
| 493 |
type: str |
| 494 |
description: |
| 495 |
- A comma-separated list of physical CPU numbers. |
| 496 |
emulatorpin: |
| 497 |
type: dict |
| 498 |
description: |
| 499 |
- Specify which host CPUs the domain emulator will be pinned to. |
| 500 |
suboptions: |
| 501 |
cpuset: |
| 502 |
type: str |
| 503 |
description: |
| 504 |
- Specify which physical CPUs to pin to. |
| 505 |
iothreadpin_specs: |
| 506 |
type: list |
| 507 |
elements: dict |
| 508 |
description: |
| 509 |
- Specify which of host physical CPUs the IOThreads will be pinned to. |
| 510 |
suboptions: |
| 511 |
iothread: |
| 512 |
type: int |
| 513 |
description: |
| 514 |
- Specify the IOThread ID. |
| 515 |
cpuset: |
| 516 |
type: str |
| 517 |
description: |
| 518 |
- Specify which physical CPUs to pin to. |
| 519 |
vcpusched_specs: |
| 520 |
type: list |
| 521 |
elements: dict |
| 522 |
description: |
| 523 |
- Specify the scheduler type for particular vCPUs. |
| 524 |
suboptions: |
| 525 |
vcpus: |
| 526 |
type: str |
| 527 |
description: |
| 528 |
- Select which vCPUs this setting applies to. |
| 529 |
scheduler: |
| 530 |
type: str |
| 531 |
choices: [ batch, idle, fifo, rr ] |
| 532 |
description: |
| 533 |
- The scheduler type. |
| 534 |
priority: |
| 535 |
type: int |
| 536 |
description: |
| 537 |
- For real-time schedulers (fifo, rr), priority must be specified as well (and is ignored for non-real-time ones). |
| 538 |
- The value range for the priority depends on the host kernel (usually 1-99). |
| 539 |
iothreadsched_specs: |
| 540 |
type: list |
| 541 |
elements: dict |
| 542 |
description: |
| 543 |
- Specify the scheduler type for particular IOThreads. |
| 544 |
suboptions: |
| 545 |
iothreads: |
| 546 |
type: str |
| 547 |
description: |
| 548 |
- Select which IOThreads this setting applies to. |
| 549 |
scheduler: |
| 550 |
type: str |
| 551 |
choices: [ batch, idle, fifo, rr ] |
| 552 |
description: |
| 553 |
- The scheduler type. |
| 554 |
priority: |
| 555 |
type: int |
| 556 |
description: |
| 557 |
- For real-time schedulers (fifo, rr), priority must be specified as well (and is ignored for non-real-time ones). |
| 558 |
- The value range for the priority depends on the host kernel (usually 1-99). |
| 559 |
emulatorsched: |
| 560 |
type: dict |
| 561 |
description: |
| 562 |
- Specify the scheduler type for emulator thread. |
| 563 |
suboptions: |
| 564 |
scheduler: |
| 565 |
type: str |
| 566 |
choices: [ batch, idle, fifo, rr ] |
| 567 |
description: |
| 568 |
- The scheduler type. |
| 569 |
priority: |
| 570 |
type: int |
| 571 |
description: |
| 572 |
- For real-time schedulers (fifo, rr), priority must be specified as well (and is ignored for non-real-time ones). |
| 573 |
- The value range for the priority depends on the host kernel (usually 1-99). |
| 574 |
shares: |
| 575 |
type: int |
| 576 |
description: |
| 577 |
- Specify the proportional weighted share for the domain. |
| 578 |
period: |
| 579 |
type: int |
| 580 |
description: |
| 581 |
- "Specify the enforcement interval (unit: microseconds)." |
| 582 |
- The value should be in range [1000, 1000000]. A period with value 0 means no value. |
| 583 |
quota: |
| 584 |
type: int |
| 585 |
description: |
| 586 |
- "Specify the maximum allowed bandwidth (unit: microseconds)." |
| 587 |
- A domain with quota as any negative value indicates that the domain has infinite bandwidth for vCPU threads. |
| 588 |
global_period: |
| 589 |
type: int |
| 590 |
description: |
| 591 |
- "Specify the enforcement CFS scheduler interval (unit: microseconds) for the whole domain." |
| 592 |
global_quota: |
| 593 |
type: int |
| 594 |
description: |
| 595 |
- "Specify the maximum allowed bandwidth (unit: microseconds) within a period for the whole domain." |
| 596 |
emulator_period: |
| 597 |
type: int |
| 598 |
description: |
| 599 |
- "Specify the enforcement interval (unit: microseconds) for domain's emulator threads." |
| 600 |
emulator_quota: |
| 601 |
type: int |
| 602 |
description: |
| 603 |
- "Specify the maximum allowed bandwidth (unit: microseconds) for domain's emulator threads." |
| 604 |
iothread_period: |
| 605 |
type: int |
| 606 |
description: |
| 607 |
- "Specify the enforcement interval (unit: microseconds) for domain's IOThreads." |
| 608 |
iothread_quota: |
| 609 |
type: int |
| 610 |
description: |
| 611 |
- "Specify the maximum allowed bandwidth (unit: microseconds) for domain's IOThreads." |
| 612 |
""" |
| 613 |
|
| 614 |
OPTIONS_SECURITY = """ |
| 615 |
options: |
| 616 |
security: |
| 617 |
type: dict |
| 618 |
description: |
| 619 |
- Configure domain seclabel domain settings. |
| 620 |
- The dictionary contains key/value pairs that define individual security entries. |
| 621 |
""" |
| 622 |
|
| 623 |
OPTIONS_KEYWRAP = """ |
| 624 |
options: |
| 625 |
keywrap: |
| 626 |
type: dict |
| 627 |
description: |
| 628 |
- Configure domain keywrap settings used for S390 cryptographic key management operations. |
| 629 |
suboptions: |
| 630 |
ciphers: |
| 631 |
type: list |
| 632 |
elements: dict |
| 633 |
description: |
| 634 |
- Specify the cipher settings for the domain. |
| 635 |
- Each dictionary entry contains a property name and its corresponding value. |
| 636 |
""" |
| 637 |
OPTIONS_IOTHREADS = """ |
| 638 |
options: |
| 639 |
iothreads: |
| 640 |
type: int |
| 641 |
description: |
| 642 |
- Number of I/O threads to configure for the guest. |
| 643 |
iothreads_opts: |
| 644 |
type: dict |
| 645 |
description: |
| 646 |
- Additional options for I/O threads configuration. |
| 647 |
suboptions: |
| 648 |
iothread_specs: |
| 649 |
type: list |
| 650 |
elements: dict |
| 651 |
description: |
| 652 |
- Provide the capability to specifically define the IOThread ID's for the domain. |
| 653 |
suboptions: |
| 654 |
id: |
| 655 |
type: int |
| 656 |
description: |
| 657 |
- Define the IOThread ID. |
| 658 |
thread_pool_min: |
| 659 |
type: int |
| 660 |
description: |
| 661 |
- Set lower boundary for number of worker threads for given IOThread. |
| 662 |
thread_pool_max: |
| 663 |
type: int |
| 664 |
description: |
| 665 |
- Set upper boundary for number of worker threads for given IOThread. |
| 666 |
defaultiothread: |
| 667 |
type: dict |
| 668 |
description: |
| 669 |
- Provide the capability to define the default event loop within hypervisor. |
| 670 |
suboptions: |
| 671 |
thread_pool_min: |
| 672 |
type: int |
| 673 |
description: |
| 674 |
- Set lower boundary for number of worker threads for given IOThread. |
| 675 |
thread_pool_max: |
| 676 |
type: int |
| 677 |
description: |
| 678 |
- Set upper boundary for number of worker threads for given IOThread. |
| 679 |
""" |
| 680 |
|
| 681 |
OPTIONS_FEATURES = """ |
| 682 |
options: |
| 683 |
features: |
| 684 |
type: dict |
| 685 |
description: |
| 686 |
- Enable or disable certain machine features. |
| 687 |
- The value should be a dictionary where each key is a feature name and the value is a dictionary of options for that feature. |
| 688 |
- An empty object V({}) for a feature indicates to turn on that feature with default options. |
| 689 |
- 'Example: V(hyperv.spinlocks: {state: off}), V(pvspinlock: {})' |
| 690 |
""" |
| 691 |
|
| 692 |
OPTIONS_CLOCK = """ |
| 693 |
options: |
| 694 |
clock: |
| 695 |
type: dict |
| 696 |
description: |
| 697 |
- Configure the clock for the guest. |
| 698 |
suboptions: |
| 699 |
offset: |
| 700 |
type: str |
| 701 |
description: |
| 702 |
- Set the clock offset, e.g. V(utc) or V(localtime). |
| 703 |
timers: |
| 704 |
type: list |
| 705 |
elements: dict |
| 706 |
description: |
| 707 |
- Tweak the guest's timer settings on the specific hypervisor. |
| 708 |
- Each dictionary entry contains a property name and its corresponding value. |
| 709 |
""" |
| 710 |
|
| 711 |
OPTIONS_PM = """ |
| 712 |
options: |
| 713 |
pm: |
| 714 |
type: dict |
| 715 |
description: |
| 716 |
- Configure the power management for the guest. |
| 717 |
suboptions: |
| 718 |
suspend_to_mem: |
| 719 |
type: dict |
| 720 |
description: |
| 721 |
- Configure BIOS support for S3 (suspend-to-mem) ACPI sleep states. |
| 722 |
suboptions: |
| 723 |
enabled: |
| 724 |
type: bool |
| 725 |
description: |
| 726 |
- Enable or disable this sleep state. |
| 727 |
suspend_to_disk: |
| 728 |
type: dict |
| 729 |
description: |
| 730 |
- Configure BIOS support for S4 (suspend-to-disk) ACPI sleep states. |
| 731 |
suboptions: |
| 732 |
enabled: |
| 733 |
type: bool |
| 734 |
description: |
| 735 |
- Enable or disable this sleep state. |
| 736 |
""" |
| 737 |
|
| 738 |
OPTIONS_LAUNCH_SECURITY = """ |
| 739 |
options: |
| 740 |
launch_security: |
| 741 |
type: dict |
| 742 |
description: |
| 743 |
- Enable launch security for the guest. |
| 744 |
suboptions: |
| 745 |
type: |
| 746 |
type: str |
| 747 |
description: |
| 748 |
- The type of launch security to enable, e.g. V(sev). |
| 749 |
required: true |
| 750 |
policy: |
| 751 |
type: str |
| 752 |
description: |
| 753 |
- The guest policy which must be maintained by the SEV firmware, e.g. V(0x01). |
| 754 |
cbitpos: |
| 755 |
type: int |
| 756 |
description: |
| 757 |
- The C-bit (aka encryption bit) location in guest page table entry. |
| 758 |
reduced_phys_bits: |
| 759 |
type: int |
| 760 |
description: |
| 761 |
- The physical address bit reduction, e.g. V(1). |
| 762 |
dh_cert: |
| 763 |
type: str |
| 764 |
description: |
| 765 |
- The guest owners base64 encoded Diffie-Hellman (DH) key. |
| 766 |
session: |
| 767 |
type: str |
| 768 |
description: |
| 769 |
- The guest owners base64 encoded session blob defined in the SEV API spec. |
| 770 |
""" |
| 771 |
|
| 772 |
OPTIONS_CDROM = """ |
| 773 |
options: |
| 774 |
cdrom: |
| 775 |
type: str |
| 776 |
description: |
| 777 |
- ISO file or CDROM device to use for VM install media. |
| 778 |
""" |
| 779 |
|
| 780 |
OPTIONS_LOCATION = """ |
| 781 |
options: |
| 782 |
location: |
| 783 |
type: str |
| 784 |
description: |
| 785 |
- The installation source, which can be a URL or a directory path containing the OS distribution installation media. |
| 786 |
location_opts: |
| 787 |
type: dict |
| 788 |
description: |
| 789 |
- Additional options for the installation source. |
| 790 |
suboptions: |
| 791 |
kernel: |
| 792 |
type: str |
| 793 |
description: |
| 794 |
- The kernel path relative to the specified location. |
| 795 |
initrd: |
| 796 |
type: str |
| 797 |
description: |
| 798 |
- The initrd path relative to the specified location. |
| 799 |
""" |
| 800 |
|
| 801 |
OPTIONS_PXE = """ |
| 802 |
options: |
| 803 |
pxe: |
| 804 |
type: bool |
| 805 |
description: |
| 806 |
- Install the guest from PXE. |
| 807 |
""" |
| 808 |
|
| 809 |
OPTIONS_IMPORT = """ |
| 810 |
options: |
| 811 |
import: |
| 812 |
type: bool |
| 813 |
description: |
| 814 |
- Skip the OS installation process, and build a guest around an existing disk image. |
| 815 |
""" |
| 816 |
|
| 817 |
OPTIONS_EXTRA_ARGS = """ |
| 818 |
options: |
| 819 |
extra_args: |
| 820 |
type: str |
| 821 |
description: |
| 822 |
- Additional kernel command line arguments to pass to the installer when performing a guest install with O(location). |
| 823 |
""" |
| 824 |
|
| 825 |
OPTIONS_INITRD_INJECT = """ |
| 826 |
options: |
| 827 |
initrd_inject: |
| 828 |
type: str |
| 829 |
description: |
| 830 |
- Add PATH to the root of the initrd fetched with O(location). |
| 831 |
""" |
| 832 |
|
| 833 |
OPTIONS_INSTALL = """ |
| 834 |
options: |
| 835 |
install: |
| 836 |
type: dict |
| 837 |
description: |
| 838 |
- Additional options for the installation. |
| 839 |
- This option is strictly for VM install operations, essentially configuring the first boot. |
| 840 |
suboptions: |
| 841 |
os: |
| 842 |
type: str |
| 843 |
description: |
| 844 |
- The OS name from I(libosinfo), e.g. V(fedora29). |
| 845 |
required: true |
| 846 |
kernel: |
| 847 |
type: str |
| 848 |
description: |
| 849 |
- Specify a kernel and initrd pair to use as install media. |
| 850 |
initrd: |
| 851 |
type: str |
| 852 |
description: |
| 853 |
- Specify a kernel and initrd pair to use as install media. |
| 854 |
kernel_args: |
| 855 |
type: str |
| 856 |
description: |
| 857 |
- Specify the installation-time kernel arguments. |
| 858 |
kernel_args_overwrite: |
| 859 |
type: bool |
| 860 |
description: |
| 861 |
- Override the virt-install default kernel arguments rather than appending to them. |
| 862 |
bootdev: |
| 863 |
type: str |
| 864 |
description: |
| 865 |
- Specify the install bootdev to boot for the install phase. |
| 866 |
no_install: |
| 867 |
type: bool |
| 868 |
description: |
| 869 |
- Tell virt-install that there isn't actually any install happening, and you just want to create the VM. |
| 870 |
""" |
| 871 |
|
| 872 |
OPTIONS_UNATTENDED = """ |
| 873 |
options: |
| 874 |
unattended: |
| 875 |
type: dict |
| 876 |
description: |
| 877 |
- Perform an unattended install using libosinfo's install script support. |
| 878 |
suboptions: |
| 879 |
profile: |
| 880 |
type: str |
| 881 |
description: |
| 882 |
- Choose which I(libosinfo) unattended profile to use. |
| 883 |
admin_password_file: |
| 884 |
type: str |
| 885 |
description: |
| 886 |
- A file used to set the VM OS admin/root password from. |
| 887 |
user_login: |
| 888 |
type: str |
| 889 |
description: |
| 890 |
- The user login name to be used in the VM. |
| 891 |
user_password_file: |
| 892 |
type: str |
| 893 |
description: |
| 894 |
- A file used to set the VM user password. |
| 895 |
product_key: |
| 896 |
type: str |
| 897 |
description: |
| 898 |
- Set a Windows product key. |
| 899 |
""" |
| 900 |
|
| 901 |
OPTIONS_CLOUD_INIT = """ |
| 902 |
options: |
| 903 |
cloud_init: |
| 904 |
type: dict |
| 905 |
description: |
| 906 |
- Pass cloud-init metadata to the VM. |
| 907 |
- A cloud-init NoCloud ISO file is generated, and attached to the VM as a CDROM device. |
| 908 |
suboptions: |
| 909 |
root_password_generate: |
| 910 |
type: bool |
| 911 |
description: |
| 912 |
- Generate a new root password for the VM. |
| 913 |
disable: |
| 914 |
type: bool |
| 915 |
description: |
| 916 |
- Disable cloud-init in the VM for subsequent boots. |
| 917 |
- Without this, cloud-init may reset auth on each boot. |
| 918 |
root_password_file: |
| 919 |
type: str |
| 920 |
description: |
| 921 |
- A file used to set the VM root password from. |
| 922 |
root_ssh_key: |
| 923 |
type: str |
| 924 |
description: |
| 925 |
- Specify a public key file to inject into the guest. |
| 926 |
clouduser_ssh_key: |
| 927 |
type: str |
| 928 |
description: |
| 929 |
- Specify a public key file to inject into the guest, providing ssh access to the default cloud-init user account. |
| 930 |
network_config: |
| 931 |
type: raw |
| 932 |
description: |
| 933 |
- Specify a cloud-init network-config file content. |
| 934 |
- Can be provided as a YAML string (e.g., using the '|' operator in Ansible) or as a dictionary structure. |
| 935 |
- "Note: String values are preferred as dictionary values cannot ensure order preservation." |
| 936 |
meta_data: |
| 937 |
type: raw |
| 938 |
description: |
| 939 |
- Specify a cloud-init meta-data file content. |
| 940 |
- Can be provided as a YAML string (e.g., using the '|' operator in Ansible) or as a dictionary structure. |
| 941 |
- "Note: String values are preferred as dictionary values cannot ensure order preservation." |
| 942 |
user_data: |
| 943 |
type: raw |
| 944 |
description: |
| 945 |
- Specify a cloud-init user-data file content. |
| 946 |
- Can be provided as a YAML string (e.g., using the '|' operator in Ansible) or as a dictionary structure. |
| 947 |
- "Note: String values are preferred as dictionary values cannot ensure order preservation." |
| 948 |
""" |
| 949 |
|
| 950 |
OPTIONS_BOOT = """ |
| 951 |
options: |
| 952 |
boot: |
| 953 |
type: str |
| 954 |
description: |
| 955 |
- Set the boot device priority for post-install configuration. |
| 956 |
boot_opts: |
| 957 |
type: dict |
| 958 |
description: |
| 959 |
- Additional options for boot configuration. |
| 960 |
- The dictionary contains key/value pairs that define individual boot options. |
| 961 |
""" |
| 962 |
|
| 963 |
OPTIONS_IDMAP = """ |
| 964 |
options: |
| 965 |
idmap: |
| 966 |
type: dict |
| 967 |
description: |
| 968 |
- Configure the UID or GID mapping for the guest. |
| 969 |
suboptions: |
| 970 |
uid: |
| 971 |
type: dict |
| 972 |
description: |
| 973 |
- The UID mapping configuration. |
| 974 |
suboptions: |
| 975 |
start: |
| 976 |
type: int |
| 977 |
description: |
| 978 |
- First user ID in container. |
| 979 |
target: |
| 980 |
type: int |
| 981 |
description: |
| 982 |
- The first user ID in container will be mapped to this target user ID in host. |
| 983 |
count: |
| 984 |
type: int |
| 985 |
description: |
| 986 |
- How many users in container are allowed to map to host's user. |
| 987 |
gid: |
| 988 |
type: dict |
| 989 |
description: |
| 990 |
- The GID mapping configuration. |
| 991 |
suboptions: |
| 992 |
start: |
| 993 |
type: int |
| 994 |
description: |
| 995 |
- First group ID in container. |
| 996 |
target: |
| 997 |
type: int |
| 998 |
description: |
| 999 |
- The first group ID in container will be mapped to this target user ID in host. |
| 1000 |
count: |
| 1001 |
type: int |
| 1002 |
description: |
| 1003 |
- How many groups in container are allowed to map to host's user. |
| 1004 |
""" |
| 1005 |
|
| 1006 |
OPTIONS_OSINFO = """ |
| 1007 |
options: |
| 1008 |
osinfo: |
| 1009 |
type: dict |
| 1010 |
description: |
| 1011 |
- Optimize the guest configuration for a specific operating system. |
| 1012 |
suboptions: |
| 1013 |
name: |
| 1014 |
type: str |
| 1015 |
aliases: [ short_id ] |
| 1016 |
description: |
| 1017 |
- The OS name from libosinfo. (e.g. V(fedora32), V(win10)) |
| 1018 |
id: |
| 1019 |
type: str |
| 1020 |
description: |
| 1021 |
- The full URL style libosinfo ID. |
| 1022 |
detect: |
| 1023 |
type: bool |
| 1024 |
description: |
| 1025 |
- Whether C(virt-install) should attempt OS detection from the specified install media. |
| 1026 |
require: |
| 1027 |
type: bool |
| 1028 |
description: |
| 1029 |
- Whether C(virt-install) should fail if OS detection fails. |
| 1030 |
""" |
| 1031 |
|
| 1032 |
OPTIONS_DISKS = """ |
| 1033 |
options: |
| 1034 |
disks: |
| 1035 |
type: list |
| 1036 |
elements: dict |
| 1037 |
description: |
| 1038 |
- Specify the storage devices for the guest. |
| 1039 |
suboptions: |
| 1040 |
path: |
| 1041 |
type: str |
| 1042 |
description: |
| 1043 |
- The path to some storage media to use, existing or not. |
| 1044 |
pool: |
| 1045 |
type: str |
| 1046 |
description: |
| 1047 |
- An existing libvirt storage pool name to create new storage on. |
| 1048 |
vol: |
| 1049 |
type: str |
| 1050 |
description: |
| 1051 |
- An existing libvirt storage volume to use. |
| 1052 |
size: |
| 1053 |
type: int |
| 1054 |
description: |
| 1055 |
- The size (in GiB) to use if creating new storage. |
| 1056 |
sparse: |
| 1057 |
type: bool |
| 1058 |
description: |
| 1059 |
- Whether to skip fully allocating newly created storage. |
| 1060 |
format: |
| 1061 |
type: str |
| 1062 |
description: |
| 1063 |
- Disk image format. For file volumes, this can be V(raw), V(qcow2), V(vmdk), etc. |
| 1064 |
backing_store: |
| 1065 |
type: str |
| 1066 |
description: |
| 1067 |
- Path to a disk to use as the backing store for the newly created image. |
| 1068 |
backing_format: |
| 1069 |
type: str |
| 1070 |
description: |
| 1071 |
- Disk image format of I(backing_store). |
| 1072 |
bus: |
| 1073 |
type: str |
| 1074 |
description: |
| 1075 |
- Disk bus type. (e.g. V(ide), V(sata), V(scsi), V(usb), V(virtio), V(xen)) |
| 1076 |
readonly: |
| 1077 |
type: bool |
| 1078 |
description: |
| 1079 |
- Set drive as readonly |
| 1080 |
shareable: |
| 1081 |
type: bool |
| 1082 |
description: |
| 1083 |
- Set drive as shareable |
| 1084 |
cache: |
| 1085 |
type: str |
| 1086 |
choices: [ none, writethrough, directsync, unsafe, writeback ] |
| 1087 |
description: |
| 1088 |
- The cache mode to be used. |
| 1089 |
serial: |
| 1090 |
type: str |
| 1091 |
description: |
| 1092 |
- Serial number of the emulated disk device. |
| 1093 |
snapshot: |
| 1094 |
type: str |
| 1095 |
choices: [ "internal", "external", "no" ] |
| 1096 |
description: |
| 1097 |
- Indicates the default behavior of the disk during disk snapshots. |
| 1098 |
rawio: |
| 1099 |
type: bool |
| 1100 |
description: |
| 1101 |
- Specify whether the disk needs rawio capability. |
| 1102 |
sgio: |
| 1103 |
type: str |
| 1104 |
choices: [ filtered, unfiltered ] |
| 1105 |
description: |
| 1106 |
- Specify whether unprivileged SG_IO commands are filtered for the disk. |
| 1107 |
- Only available when the device is 'lun'. |
| 1108 |
transient: |
| 1109 |
type: bool |
| 1110 |
description: |
| 1111 |
- If V(true), this indicates that changes to the device contents should be reverted automatically when the guest exits. |
| 1112 |
transient_opts: |
| 1113 |
type: dict |
| 1114 |
description: |
| 1115 |
- Additional options for transient disk configuration. |
| 1116 |
suboptions: |
| 1117 |
share_backing: |
| 1118 |
type: bool |
| 1119 |
description: |
| 1120 |
- If V(true), the transient disk is supposed to be shared between multiple concurrently running VMs. |
| 1121 |
driver: |
| 1122 |
type: dict |
| 1123 |
description: |
| 1124 |
- Specify the details of the hypervisor disk driver. |
| 1125 |
- The dictionary contains key/value pairs that define individual properties. |
| 1126 |
source: |
| 1127 |
type: dict |
| 1128 |
description: |
| 1129 |
- Specify the details of the disk source. |
| 1130 |
- The dictionary contains key/value pairs that define individual properties. |
| 1131 |
target: |
| 1132 |
type: dict |
| 1133 |
description: |
| 1134 |
- Specify the details of the target disk device. |
| 1135 |
- The dictionary contains key/value pairs that define individual properties. |
| 1136 |
address: |
| 1137 |
type: dict |
| 1138 |
description: |
| 1139 |
- Specify the controller properties where the disk should be attached. |
| 1140 |
- The dictionary contains key/value pairs that define individual properties. |
| 1141 |
boot: |
| 1142 |
type: dict |
| 1143 |
description: |
| 1144 |
- Specify the boot order for the disk device. |
| 1145 |
- The dictionary contains key/value pairs that define individual properties. |
| 1146 |
- The per-device boot elements cannot be used together with general boot elements in the OS bootloader section. |
| 1147 |
iotune: |
| 1148 |
type: dict |
| 1149 |
description: |
| 1150 |
- Specify additional per-device I/O tuning. |
| 1151 |
- The dictionary contains key/value pairs that define individual properties. |
| 1152 |
blockio: |
| 1153 |
type: dict |
| 1154 |
description: |
| 1155 |
- Override the default block device properties for the disk. |
| 1156 |
- The dictionary contains key/value pairs that define individual properties. |
| 1157 |
geometry: |
| 1158 |
type: dict |
| 1159 |
description: |
| 1160 |
- Override geometry settings for the disk. |
| 1161 |
- The dictionary contains key/value pairs that define individual properties. |
| 1162 |
""" |
| 1163 |
|
| 1164 |
OPTIONS_FILESYSTEMS = """ |
| 1165 |
options: |
| 1166 |
filesystems: |
| 1167 |
type: list |
| 1168 |
elements: dict |
| 1169 |
description: |
| 1170 |
- Specifies directories on the host to export to the guest. |
| 1171 |
suboptions: |
| 1172 |
type: |
| 1173 |
type: str |
| 1174 |
choices: [ mount, template, file, block, ram, bind ] |
| 1175 |
description: |
| 1176 |
- Specify the source type of the filesystem. |
| 1177 |
accessmode: |
| 1178 |
type: str |
| 1179 |
choices: [ passthrough, mapped, squash ] |
| 1180 |
description: |
| 1181 |
- Specify the security mode for accessing the source. |
| 1182 |
source: |
| 1183 |
type: dict |
| 1184 |
description: |
| 1185 |
- The source directory configuration on the host. |
| 1186 |
- The dictionary contains key/value pairs that define individual properties. |
| 1187 |
target: |
| 1188 |
type: dict |
| 1189 |
description: |
| 1190 |
- The mount target configuration in the guest. |
| 1191 |
- The dictionary contains key/value pairs that define individual properties. |
| 1192 |
fmode: |
| 1193 |
type: str |
| 1194 |
description: |
| 1195 |
- The creation mode for files when used with the V(mapped) value for I(accessmode). |
| 1196 |
dmode: |
| 1197 |
type: str |
| 1198 |
description: |
| 1199 |
- The creation mode for directories when used with the V(mapped) value for I(accessmode). |
| 1200 |
multidevs: |
| 1201 |
type: str |
| 1202 |
choices: [ default, remap, forbid, warn ] |
| 1203 |
description: |
| 1204 |
- Specify how to deal with a filesystem export containing more than one device. |
| 1205 |
readonly: |
| 1206 |
type: bool |
| 1207 |
description: |
| 1208 |
- Enable exporting filesystem as a readonly mount for guest. |
| 1209 |
space_hard_limit: |
| 1210 |
type: int |
| 1211 |
description: |
| 1212 |
- Maximum space available to this guest's filesystem |
| 1213 |
space_soft_limit: |
| 1214 |
type: int |
| 1215 |
description: |
| 1216 |
- Maximum space available to this guest's filesystem. |
| 1217 |
driver: |
| 1218 |
type: dict |
| 1219 |
description: |
| 1220 |
- Specify the details of the hypervisor driver. |
| 1221 |
- The dictionary contains key/value pairs that define individual properties. |
| 1222 |
address: |
| 1223 |
type: dict |
| 1224 |
description: |
| 1225 |
- Specify the controller properties where the filesystem should be attached. |
| 1226 |
- The dictionary contains key/value pairs that define individual properties. |
| 1227 |
binary: |
| 1228 |
type: dict |
| 1229 |
description: |
| 1230 |
- Tune the options for virtiofsd. |
| 1231 |
- The dictionary contains key/value pairs that define individual properties. |
| 1232 |
""" |
| 1233 |
|
| 1234 |
OPTIONS_NETWORKS = """ |
| 1235 |
options: |
| 1236 |
networks: |
| 1237 |
type: list |
| 1238 |
elements: dict |
| 1239 |
description: |
| 1240 |
- Connect the guest to the host network. |
| 1241 |
- Empty list V([]) means no default network interface. |
| 1242 |
suboptions: |
| 1243 |
type: |
| 1244 |
type: str |
| 1245 |
choices: [ direct ] |
| 1246 |
description: |
| 1247 |
- The type of network interface. |
| 1248 |
- V(direct) provides direct attachment to host network interface using macvtap. |
| 1249 |
- If omitted, the type of network interface is determined by other options. |
| 1250 |
network: |
| 1251 |
type: str |
| 1252 |
description: |
| 1253 |
- Name of the libvirt virtual network to connect to. |
| 1254 |
bridge: |
| 1255 |
type: str |
| 1256 |
description: |
| 1257 |
- Name of the host bridge device to connect to. |
| 1258 |
hostdev: |
| 1259 |
type: str |
| 1260 |
description: |
| 1261 |
- Name of the host device to connect to for type=hostdev. |
| 1262 |
- This uses PCI passthrough to directly assign a network device. |
| 1263 |
mac: |
| 1264 |
type: dict |
| 1265 |
description: |
| 1266 |
- MAC address configuration for the network interface. |
| 1267 |
suboptions: |
| 1268 |
address: |
| 1269 |
type: str |
| 1270 |
description: |
| 1271 |
- Fixed MAC address for the guest interface. |
| 1272 |
- If not specified, a suitable address will be randomly generated. |
| 1273 |
mtu: |
| 1274 |
type: dict |
| 1275 |
description: |
| 1276 |
- Configure MTU settings for the virtual network link. |
| 1277 |
- The dictionary contains key/value pairs that define individual properties. |
| 1278 |
state: |
| 1279 |
type: dict |
| 1280 |
description: |
| 1281 |
- Set state of the virtual network link |
| 1282 |
- The dictionary contains key/value pairs that define individual properties. |
| 1283 |
model: |
| 1284 |
type: dict |
| 1285 |
description: |
| 1286 |
- Network device model configuration. |
| 1287 |
suboptions: |
| 1288 |
type: |
| 1289 |
type: str |
| 1290 |
description: |
| 1291 |
- Network device model as seen by the guest. |
| 1292 |
- Examples include V(virtio), V(e1000), V(rtl8139). |
| 1293 |
driver: |
| 1294 |
type: dict |
| 1295 |
description: |
| 1296 |
- Specify the details of the hypervisor driver. |
| 1297 |
- The dictionary contains key/value pairs that define individual properties. |
| 1298 |
boot: |
| 1299 |
type: dict |
| 1300 |
description: |
| 1301 |
- Specify the boot order for the network interface. |
| 1302 |
- The dictionary contains key/value pairs that define individual properties. |
| 1303 |
- The per-device boot elements cannot be used together with general boot elements in the OS bootloader section. |
| 1304 |
filterref: |
| 1305 |
type: dict |
| 1306 |
description: |
| 1307 |
- Configure network traffic filter rules for the guest. |
| 1308 |
- The dictionary contains key/value pairs that define individual properties. |
| 1309 |
rom: |
| 1310 |
type: dict |
| 1311 |
description: |
| 1312 |
- Specify the interface ROM BIOS configuration |
| 1313 |
- The dictionary contains key/value pairs that define individual properties. |
| 1314 |
source: |
| 1315 |
type: dict |
| 1316 |
description: |
| 1317 |
- Specify the details of the direct attached macvtap interface. |
| 1318 |
- The dictionary contains key/value pairs that define individual properties. |
| 1319 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1320 |
- "Example: I(source={value: bond0, mode: bridge})" |
| 1321 |
target: |
| 1322 |
type: dict |
| 1323 |
description: |
| 1324 |
- Specify the details of the target network device. |
| 1325 |
- The dictionary contains key/value pairs that define individual properties. |
| 1326 |
address: |
| 1327 |
type: dict |
| 1328 |
description: |
| 1329 |
- Specify the controller properties where the filesystem should be attached. |
| 1330 |
- The dictionary contains key/value pairs that define individual properties. |
| 1331 |
virtualport: |
| 1332 |
type: dict |
| 1333 |
description: |
| 1334 |
- Configure virtual port settings for the network interface. |
| 1335 |
- The dictionary contains key/value pairs that define individual properties. |
| 1336 |
- Common properties include I(type) (e.g. V(802.1Qbg), V(802.1Qbh), V(openvswitch), V(midonet)) and C(parameters) containing type-specific settings. |
| 1337 |
trust_guest_rx_filters: |
| 1338 |
type: bool |
| 1339 |
description: |
| 1340 |
- When set to V(true), enables the host to trust and accept MAC address changes and receive filter modifications reported by the guest VM. |
| 1341 |
""" |
| 1342 |
|
| 1343 |
OPTIONS_GRAPHICS_DEVICES = """ |
| 1344 |
options: |
| 1345 |
graphics: |
| 1346 |
type: dict |
| 1347 |
description: |
| 1348 |
- Configure the graphical display for the guest virtual machine. |
| 1349 |
- The dictionary contains key/value pairs that define individual properties. |
| 1350 |
- Common properties include I(type) (e.g. V(vnc), V(spice)) and I(listen). |
| 1351 |
graphics_devices: |
| 1352 |
type: list |
| 1353 |
elements: dict |
| 1354 |
description: |
| 1355 |
- Configure multiple graphics devices for the guest. |
| 1356 |
""" |
| 1357 |
|
| 1358 |
OPTIONS_VIRT_TYPE = """ |
| 1359 |
options: |
| 1360 |
virt_type: |
| 1361 |
type: str |
| 1362 |
description: |
| 1363 |
- The hypervisor used to create the VM guest. Example choices are V(kvm), V(qemu), or V(xen). |
| 1364 |
""" |
| 1365 |
|
| 1366 |
OPTIONS_HVM = """ |
| 1367 |
options: |
| 1368 |
hvm: |
| 1369 |
type: bool |
| 1370 |
description: |
| 1371 |
- Request the use of full virtualization. |
| 1372 |
""" |
| 1373 |
|
| 1374 |
OPTIONS_PARAVIRT = """ |
| 1375 |
options: |
| 1376 |
paravirt: |
| 1377 |
type: bool |
| 1378 |
description: |
| 1379 |
- This guest should be a paravirtualized guest. |
| 1380 |
""" |
| 1381 |
|
| 1382 |
OPTIONS_CONTAINER = """ |
| 1383 |
options: |
| 1384 |
container: |
| 1385 |
type: bool |
| 1386 |
description: |
| 1387 |
- This guest should be a container type guest. |
| 1388 |
""" |
| 1389 |
|
| 1390 |
OPTIONS_CONTROLLER_DEVICES = """ |
| 1391 |
options: |
| 1392 |
controller: |
| 1393 |
type: dict |
| 1394 |
description: |
| 1395 |
- Attach a controller device to the guest. |
| 1396 |
- The dictionary contains key/value pairs that define individual controller properties. |
| 1397 |
- Examples include I(type=usb,model=none) to disable USB, or I(type=scsi,model=virtio-scsi) for VirtIO SCSI. |
| 1398 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1399 |
controller_devices: |
| 1400 |
type: list |
| 1401 |
elements: dict |
| 1402 |
description: |
| 1403 |
- Configure multiple controller devices for the guest. |
| 1404 |
""" |
| 1405 |
|
| 1406 |
OPTIONS_INPUT_DEVICES = """ |
| 1407 |
options: |
| 1408 |
input: |
| 1409 |
type: dict |
| 1410 |
description: |
| 1411 |
- Attach an input device to the guest. |
| 1412 |
- Input device types include mouse, tablet, or keyboard. |
| 1413 |
- The dictionary contains key/value pairs that define individual input device properties. |
| 1414 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1415 |
input_devices: |
| 1416 |
type: list |
| 1417 |
elements: dict |
| 1418 |
description: |
| 1419 |
- Configure multiple input devices for the guest. |
| 1420 |
""" |
| 1421 |
|
| 1422 |
OPTIONS_HOST_DEVICES = """ |
| 1423 |
options: |
| 1424 |
hostdev: |
| 1425 |
type: dict |
| 1426 |
description: |
| 1427 |
- Attach a physical host device to the guest. |
| 1428 |
- The dictionary contains key/value pairs that define individual host device properties. |
| 1429 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1430 |
host_devices: |
| 1431 |
type: list |
| 1432 |
elements: dict |
| 1433 |
description: |
| 1434 |
- Configure multiple host devices for the guest. |
| 1435 |
""" |
| 1436 |
|
| 1437 |
OPTIONS_SOUND_DEVICES = """ |
| 1438 |
options: |
| 1439 |
sound: |
| 1440 |
type: dict |
| 1441 |
description: |
| 1442 |
- Attach a virtual audio device to the guest. |
| 1443 |
- The dictionary contains key/value pairs that define individual sound device properties. |
| 1444 |
- Common properties include I(model) (e.g. V(ich6), V(ich9), V(ac97)). |
| 1445 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1446 |
sound_devices: |
| 1447 |
type: list |
| 1448 |
elements: dict |
| 1449 |
description: |
| 1450 |
- Configure multiple sound devices for the guest. |
| 1451 |
""" |
| 1452 |
|
| 1453 |
OPTIONS_AUDIO_DEVICES = """ |
| 1454 |
options: |
| 1455 |
audio: |
| 1456 |
type: dict |
| 1457 |
description: |
| 1458 |
- Configure host audio output for the guest's sound hardware. |
| 1459 |
- The dictionary contains key/value pairs that define individual audio backend properties. |
| 1460 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1461 |
audio_devices: |
| 1462 |
type: list |
| 1463 |
elements: dict |
| 1464 |
description: |
| 1465 |
- Configure multiple audio backends for the guest. |
| 1466 |
""" |
| 1467 |
|
| 1468 |
OPTIONS_WATCHDOG_DEVICES = """ |
| 1469 |
options: |
| 1470 |
watchdog: |
| 1471 |
type: dict |
| 1472 |
description: |
| 1473 |
- Attach a virtual hardware watchdog device to the guest. |
| 1474 |
- The dictionary contains key/value pairs that define individual watchdog properties. |
| 1475 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1476 |
watchdog_devices: |
| 1477 |
type: list |
| 1478 |
elements: dict |
| 1479 |
description: |
| 1480 |
- Configure multiple watchdog devices for the guest. |
| 1481 |
""" |
| 1482 |
|
| 1483 |
OPTIONS_SERIAL_DEVICES = """ |
| 1484 |
options: |
| 1485 |
serial: |
| 1486 |
type: dict |
| 1487 |
description: |
| 1488 |
- Attach a serial device to the guest with various redirection options. |
| 1489 |
- The dictionary contains key/value pairs that define individual serial device properties. |
| 1490 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1491 |
serial_devices: |
| 1492 |
type: list |
| 1493 |
elements: dict |
| 1494 |
description: |
| 1495 |
- Configure multiple serial devices for the guest. |
| 1496 |
""" |
| 1497 |
|
| 1498 |
OPTIONS_PARALLEL_DEVICES = """ |
| 1499 |
options: |
| 1500 |
parallel: |
| 1501 |
type: dict |
| 1502 |
description: |
| 1503 |
- Attach a parallel device to the guest. |
| 1504 |
- The dictionary contains key/value pairs that define individual parallel device properties. |
| 1505 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1506 |
parallel_devices: |
| 1507 |
type: list |
| 1508 |
elements: dict |
| 1509 |
description: |
| 1510 |
- Configure multiple parallel devices for the guest. |
| 1511 |
""" |
| 1512 |
|
| 1513 |
OPTIONS_CHANNEL_DEVICES = """ |
| 1514 |
options: |
| 1515 |
channel: |
| 1516 |
type: dict |
| 1517 |
description: |
| 1518 |
- Attach a communication channel device to connect the guest and host machine. |
| 1519 |
- The dictionary contains key/value pairs that define individual channel properties. |
| 1520 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1521 |
channel_devices: |
| 1522 |
type: list |
| 1523 |
elements: dict |
| 1524 |
description: |
| 1525 |
- Configure multiple channel devices for the guest. |
| 1526 |
""" |
| 1527 |
|
| 1528 |
OPTIONS_CONSOLE_DEVICES = """ |
| 1529 |
options: |
| 1530 |
console: |
| 1531 |
type: dict |
| 1532 |
description: |
| 1533 |
- Connect a text console between the guest and host. |
| 1534 |
- The dictionary contains key/value pairs that define individual console properties. |
| 1535 |
- Common properties include I(type) and I(target) for different console types. |
| 1536 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1537 |
console_devices: |
| 1538 |
type: list |
| 1539 |
elements: dict |
| 1540 |
description: |
| 1541 |
- Configure multiple console devices for the guest. |
| 1542 |
""" |
| 1543 |
|
| 1544 |
OPTIONS_VIDEO_DEVICES = """ |
| 1545 |
options: |
| 1546 |
video: |
| 1547 |
type: dict |
| 1548 |
description: |
| 1549 |
- Specify what video device model will be attached to the guest. |
| 1550 |
- The dictionary contains key/value pairs that define individual video device properties. |
| 1551 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1552 |
video_devices: |
| 1553 |
type: list |
| 1554 |
elements: dict |
| 1555 |
description: |
| 1556 |
- Configure multiple video devices for the guest. |
| 1557 |
""" |
| 1558 |
|
| 1559 |
OPTIONS_SMARTCARD_DEVICES = """ |
| 1560 |
options: |
| 1561 |
smartcard: |
| 1562 |
type: dict |
| 1563 |
description: |
| 1564 |
- Configure a virtual smartcard device. |
| 1565 |
- The dictionary contains key/value pairs that define individual smartcard properties. |
| 1566 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1567 |
smartcard_devices: |
| 1568 |
type: list |
| 1569 |
elements: dict |
| 1570 |
description: |
| 1571 |
- Configure multiple smartcard devices for the guest. |
| 1572 |
""" |
| 1573 |
|
| 1574 |
OPTIONS_REDIRECTED_DEVICES = """ |
| 1575 |
options: |
| 1576 |
redirdev: |
| 1577 |
type: dict |
| 1578 |
description: |
| 1579 |
- Add a redirected device for USB or other device redirection. |
| 1580 |
- The dictionary contains key/value pairs that define individual redirection properties. |
| 1581 |
- Common properties include I(bus=usb), I(type=tcp) or I(type=spicevmc). |
| 1582 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1583 |
redirected_devices: |
| 1584 |
type: list |
| 1585 |
elements: dict |
| 1586 |
description: |
| 1587 |
- Configure multiple redirected devices for the guest. |
| 1588 |
""" |
| 1589 |
|
| 1590 |
OPTIONS_MEMBALLOON_DEVICES = """ |
| 1591 |
options: |
| 1592 |
memballoon: |
| 1593 |
type: dict |
| 1594 |
description: |
| 1595 |
- Attach a virtual memory balloon device to the guest. |
| 1596 |
- The dictionary contains key/value pairs that define individual memory balloon properties. |
| 1597 |
- Common properties include I(model) (e.g. V(virtio), V(xen)). |
| 1598 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1599 |
memballoon_devices: |
| 1600 |
type: list |
| 1601 |
elements: dict |
| 1602 |
description: |
| 1603 |
- Configure multiple memory balloon devices for the guest. |
| 1604 |
""" |
| 1605 |
|
| 1606 |
OPTIONS_TPM_DEVICES = """ |
| 1607 |
options: |
| 1608 |
tpm: |
| 1609 |
type: dict |
| 1610 |
description: |
| 1611 |
- Configure a virtual TPM (Trusted Platform Module) device. |
| 1612 |
- The dictionary contains key/value pairs that define individual TPM properties. |
| 1613 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1614 |
tpm_devices: |
| 1615 |
type: list |
| 1616 |
elements: dict |
| 1617 |
description: |
| 1618 |
- Configure multiple TPM devices for the guest. |
| 1619 |
""" |
| 1620 |
|
| 1621 |
OPTIONS_RNG_DEVICES = """ |
| 1622 |
options: |
| 1623 |
rng: |
| 1624 |
type: dict |
| 1625 |
description: |
| 1626 |
- Configure a virtual random number generator (RNG) device. |
| 1627 |
- The dictionary contains key/value pairs that define individual RNG properties. |
| 1628 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1629 |
rng_devices: |
| 1630 |
type: list |
| 1631 |
elements: dict |
| 1632 |
description: |
| 1633 |
- Configure multiple RNG devices for the guest. |
| 1634 |
""" |
| 1635 |
|
| 1636 |
OPTIONS_PANIC_DEVICES = """ |
| 1637 |
options: |
| 1638 |
panic: |
| 1639 |
type: dict |
| 1640 |
description: |
| 1641 |
- Attach a panic notifier device to the guest. |
| 1642 |
- The dictionary contains key/value pairs that define individual panic device properties. |
| 1643 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1644 |
panic_devices: |
| 1645 |
type: list |
| 1646 |
elements: dict |
| 1647 |
description: |
| 1648 |
- Configure multiple panic devices for the guest. |
| 1649 |
""" |
| 1650 |
|
| 1651 |
OPTIONS_SHMEM_DEVICES = """ |
| 1652 |
options: |
| 1653 |
shmem: |
| 1654 |
type: dict |
| 1655 |
description: |
| 1656 |
- Attach a shared memory device to the guest. |
| 1657 |
- The dictionary contains key/value pairs that define individual shared memory properties. |
| 1658 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1659 |
shmem_devices: |
| 1660 |
type: list |
| 1661 |
elements: dict |
| 1662 |
description: |
| 1663 |
- Configure multiple shared memory devices for the guest. |
| 1664 |
""" |
| 1665 |
|
| 1666 |
OPTIONS_VSOCK_DEVICES = """ |
| 1667 |
options: |
| 1668 |
vsock: |
| 1669 |
type: dict |
| 1670 |
description: |
| 1671 |
- Configure a vsock host/guest interface. |
| 1672 |
- The dictionary contains key/value pairs that define individual vsock properties. |
| 1673 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1674 |
vsock_devices: |
| 1675 |
type: list |
| 1676 |
elements: dict |
| 1677 |
description: |
| 1678 |
- Configure multiple vsock devices for the guest. |
| 1679 |
""" |
| 1680 |
|
| 1681 |
OPTIONS_IOMMU_DEVICES = """ |
| 1682 |
options: |
| 1683 |
iommu: |
| 1684 |
type: dict |
| 1685 |
description: |
| 1686 |
- Add an IOMMU device to the guest. |
| 1687 |
- The dictionary contains key/value pairs that define individual IOMMU properties. |
| 1688 |
- "You can use the special attribute I(value) to specify a primary value that appears before other properties in the command line." |
| 1689 |
iommu_devices: |
| 1690 |
type: list |
| 1691 |
elements: dict |
| 1692 |
description: |
| 1693 |
- Configure multiple IOMMU devices for the guest. |
| 1694 |
""" |
| 1695 |
|
| 1696 |
OPTIONS_AUTOSTART = """ |
| 1697 |
options: |
| 1698 |
autostart: |
| 1699 |
type: bool |
| 1700 |
description: |
| 1701 |
- Set the autostart flag for a domain. |
| 1702 |
""" |
| 1703 |
|
| 1704 |
OPTIONS_TRANSIENT = """ |
| 1705 |
options: |
| 1706 |
transient: |
| 1707 |
type: bool |
| 1708 |
description: |
| 1709 |
- If set to V(true), libvirt forgets the XML configuration of the VM after shutdown or host restart. |
| 1710 |
""" |
| 1711 |
|
| 1712 |
OPTIONS_DESTROY_ON_EXIT = """ |
| 1713 |
options: |
| 1714 |
destroy_on_exit: |
| 1715 |
type: bool |
| 1716 |
description: |
| 1717 |
- If set to V(true), the VM will be destroyed when the console window is exited. |
| 1718 |
""" |
| 1719 |
|
| 1720 |
OPTIONS_NOREBOOT = """ |
| 1721 |
options: |
| 1722 |
noreboot: |
| 1723 |
type: bool |
| 1724 |
description: |
| 1725 |
- If set to V(true), the VM will not automatically reboot after the install has completed. |
| 1726 |
""" |