mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-06-29 06:02:36 +00:00
Add examples about cpu and host vars
This commit is contained in:
parent
322ba756da
commit
d1fa174f75
|
@ -121,10 +121,17 @@ resource "proxmox_vm_qemu" "prepprovision-test" {
|
|||
|
||||
cores = 3
|
||||
sockets = 1
|
||||
# Same CPU as the Physical host, possible to add cpu flags
|
||||
# Ex: "host,flags=+md-clear;+pcid;+spec-ctrl;+ssbd;+pdpe1gb"
|
||||
cpu = "host"
|
||||
numa = false
|
||||
memory = 2560
|
||||
scsihw = "lsi"
|
||||
# Boot from hard disk (c), CD-ROM (d), network (n)
|
||||
boot = "cdn"
|
||||
# It's possible to add this type of material and use it directly
|
||||
# Possible values are: network,disk,cpu,memory,usb
|
||||
hotplug = "network,disk,usb"
|
||||
# Default boot disk
|
||||
bootdisk = "virtio0"
|
||||
network {
|
||||
|
|
|
@ -26,6 +26,7 @@ resource "proxmox_vm_qemu" "cloudinit-test" {
|
|||
os_type = "cloud-init"
|
||||
cores = "2"
|
||||
sockets = "1"
|
||||
cpu = "host"
|
||||
memory = "2048"
|
||||
scsihw = "lsi"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user