Add qemu_accelerator option
This commit is contained in:
@@ -48,7 +48,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
./packerio build -var-file=${{ matrix.distro }} -except=upload sources
|
./packerio build -var-file=${{ matrix.distro }} -var "qemu_accelerator=none" -except=upload sources
|
||||||
env:
|
env:
|
||||||
VAGRANT_CLOUD_TOKEN: ${{ secrets.VAGRANT_CLOUD_TOKEN }}
|
VAGRANT_CLOUD_TOKEN: ${{ secrets.VAGRANT_CLOUD_TOKEN }}
|
||||||
PACKER_LOG: 1
|
PACKER_LOG: 1
|
||||||
|
|||||||
@@ -62,6 +62,11 @@ variable "vagrant_cloud_token" {
|
|||||||
default = env("VAGRANT_CLOUD_TOKEN")
|
default = env("VAGRANT_CLOUD_TOKEN")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "qemu_accelerator" {
|
||||||
|
type = string
|
||||||
|
default = "kvm"
|
||||||
|
}
|
||||||
|
|
||||||
locals {
|
locals {
|
||||||
name = "${var.distro}-${var.version}-${var.arch}"
|
name = "${var.distro}-${var.version}-${var.arch}"
|
||||||
build = formatdate("YYYYMMDDhh", timestamp())
|
build = formatdate("YYYYMMDDhh", timestamp())
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ source "qemu" "x86_64" {
|
|||||||
boot_command = var.boot_command
|
boot_command = var.boot_command
|
||||||
http_directory = "http"
|
http_directory = "http"
|
||||||
ssh_handshake_attempts = var.ssh_handshake_attempts
|
ssh_handshake_attempts = var.ssh_handshake_attempts
|
||||||
accelerator = "kvm"
|
accelerator = var.qemu_accelerator
|
||||||
cpus = 2
|
cpus = 2
|
||||||
memory = 2048
|
memory = 2048
|
||||||
qemuargs = [["-serial", "stdio"]]
|
qemuargs = [["-serial", "stdio"]]
|
||||||
|
|||||||
Reference in New Issue
Block a user