mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-07-01 07:02:40 +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
|
cores = 3
|
||||||
sockets = 1
|
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
|
memory = 2560
|
||||||
scsihw = "lsi"
|
scsihw = "lsi"
|
||||||
# Boot from hard disk (c), CD-ROM (d), network (n)
|
# Boot from hard disk (c), CD-ROM (d), network (n)
|
||||||
boot = "cdn"
|
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
|
# Default boot disk
|
||||||
bootdisk = "virtio0"
|
bootdisk = "virtio0"
|
||||||
network {
|
network {
|
||||||
|
|
|
@ -26,6 +26,7 @@ resource "proxmox_vm_qemu" "cloudinit-test" {
|
||||||
os_type = "cloud-init"
|
os_type = "cloud-init"
|
||||||
cores = "2"
|
cores = "2"
|
||||||
sockets = "1"
|
sockets = "1"
|
||||||
|
cpu = "host"
|
||||||
memory = "2048"
|
memory = "2048"
|
||||||
scsihw = "lsi"
|
scsihw = "lsi"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user