Closed mvarchdev closed 5 months ago
Also experiencing this...
Same issue here:
cmdline = [{
"talos.config" = "metal-iso"
}]
error creating libvirt domain: internal error: process exited while connecting to monitor: 2024-01-12T14:23:37.393317Z qemu-system-x86_64: -append only allowed with -kernel option
I will try to debug deeper when being at home
After debugging, this error happens because you can not define custom args this way without defining the kernel, so you need to include:
resource "libvirt_domain" "instance" {
...
kernel = libvirt_volume.kernel.id # <======= THIS WAY
cmdline = [{
"talos.config" = "metal-iso"
}]
}
# And include your kernel image for this, of course
resource "libvirt_volume" "kernel" {
source = "https://github.com/siderolabs/talos/releases/download/v1.6.1/vmlinuz-amd64"
name = "kernel"
pool = libvirt_pool.volume_pool.name
format = "raw"
}
Doing this, your image will boot
/close
Thanks for documenting this @achetronic
System Information
Linux distribution
Ubuntu
Terraform version
Error when defining custom kernel params:
Kernel params definition: