Closed markcaudill closed 1 year ago
Hi @markcaudill
This problem is unrelated to the provider itself.
Here's some bug report from Ubuntu https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/1123220 which is exactly the same issue. I believe there are two ways to fix it, it's either as suggested in the report (you need to add serial console) or you can remove it from from grub config completely (all stuff containing "ttyS").
@sk4zuzu this is very helpful! Thanks!
works perfectly
resource "libvirt_domain" "machine" {
console {
type = "pty"
target_port = "0"
target_type = "serial"
}
}
System Information
Linux distribution
Workstation
Target Host
Terraform version
Provider and libvirt versions
Checklist
[ ] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
[x] Is it a bug or something that does not work as expected? Please make sure you fill the version information below:
Description of Issue/Question
Setup
Steps to Reproduce Issue
Run
terraform apply
results in a hung VM with a kernel panic.I can manually reset the VM and it then boots normally and comes online.
If I remove/comment out the
size
parameter oflibvirt_volume.os_volume
then the initialterraform apply
brings the VM online properly.Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration? Have you tried to reproduce the issue without them enabled?