Skip to content

Commit

Permalink
docs: add smbios to qemu docs + example (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
nepeat committed May 24, 2023
1 parent 811f017 commit 1fe6cf7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
14 changes: 14 additions & 0 deletions docs/resources/vm_qemu.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,20 @@ details.
| `host` | `str` | | **Required** USB device host. This can either be done via the vendor- and product-id, or via the host bus and port. |
| `usb3` | `bool` | `false` | Specifies whether if given host option is a USB3 device or port. |

## SMBIOS Block

The `smbios` block sets SMBIOS type 1 settings for the VM.

| Argument | Type | Description |
|----------------|----------|---------------------------|
| `family` | `string` | The SMBIOS family. |
| `manufacturer` | `string` | The SMBIOS manufacturer. |
| `serial` | `string` | The SMBIOS serial number. |
| `product` | `string` | The SMBIOS product. |
| `sku` | `string` | The SMBIOS SKU. |
| `uuid` | `string` | The SMBIOS UUID. |
| `version` | `string` | The SMBIOS version. |

## Attribute Reference

In addition to the arguments above, the following attributes can be referenced from this resource.
Expand Down
12 changes: 11 additions & 1 deletion examples/pxe_example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ resource "proxmox_vm_qemu" "pxe-example" {
vcpus = 0

disk {
backup = 0
backup = false
cache = "none"
discard = "on"
iothread = 1
Expand All @@ -72,4 +72,14 @@ resource "proxmox_vm_qemu" "pxe-example" {
link_down = false
model = "e1000"
}

smbios {
family = "VM"
manufacturer = "Hashibrown"
product = "Terraform"
sku = "dQw4w9WgXcQ"
uuid = "5b710d2f-4ea2-4d49-9eaa-c18392fd734d"
version = "v1.0"
serial = "ABC123"
}
}

0 comments on commit 1fe6cf7

Please sign in to comment.