Parametrized QEMU accelerator

This commit is contained in:
Héctor Molinero Fernández 2022-03-02 21:21:09 +01:00
parent 38426c091e
commit 5bce0eb3c9
2 changed files with 7 additions and 1 deletions

View File

@ -49,7 +49,7 @@ source "qemu" "main" {
http_directory = "./qemu/http/" http_directory = "./qemu/http/"
output_directory = "./dist/qemu/" output_directory = "./dist/qemu/"
accelerator = "kvm" accelerator = var.qemu_accelerator
cpus = 1 cpus = 1
memory = 512 memory = 512
headless = true headless = true

View File

@ -9,3 +9,9 @@ variable "digitalocean_api_token" {
description = "DigitalOcean API token" description = "DigitalOcean API token"
default = "xxxx" default = "xxxx"
} }
variable "qemu_accelerator" {
type = string
description = "The accelerator type to use when running the VM"
default = "kvm"
}