Add examples about cpu and host vars

This commit is contained in:
Virgil 2019-08-14 18:23:36 +02:00
parent 322ba756da
commit d1fa174f75
2 changed files with 8 additions and 0 deletions

View File

@ -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 {

View File

@ -26,6 +26,7 @@ resource "proxmox_vm_qemu" "cloudinit-test" {
os_type = "cloud-init"
cores = "2"
sockets = "1"
cpu = "host"
memory = "2048"
scsihw = "lsi"