terraform { required_providers { libvirt = { source = "dmacvicar/libvirt" version = "0.6.3" } } } provider "libvirt" { uri = "qemu:///system" } resource "libvirt_domain" "terraform_libvirt" { name = "terraform_libvirt" console { type = "pty" target_type = "serial" target_port = "0" } console { type = "pty" target_type = "virtio" target_port = "1" } graphics { type = "spice" listen_type = "address" autoport = true } }