Fix VM secure boot

This commit is contained in:
Khue Doan 2021-05-17 02:20:01 +07:00
parent c6736e8bde
commit b391ee5be3
2 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,9 @@ resource "lxd_profile" "worker_profile" {
"limits.cpu" = 2
"limits.memory" = "4GiB"
"limits.memory.swap" = false
# TODO (bug) Enable secure boot for VMs
# lstat /usr/share/edk2/ovmf/OVMF_VARS.ms.fd: no such file or directory
"security.secureboot" = false
"user.user-data" = <<-EOT
#cloud-config
ssh_authorized_keys:

View File

@ -17,6 +17,7 @@ resource "lxd_container" "vpn" {
config = {
"user.access_interface" = "enp5s0"
"security.secureboot" = false
"user.user-data" = templatefile(
"${path.module}/cloud-init.yaml.tpl",
{