User Tools

Site Tools


opentofu-terraform-provider-kvm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
opentofu-terraform-provider-kvm [2023/10/09 22:28] adminopentofu-terraform-provider-kvm [2023/10/09 22:47] (current) admin
Line 1: Line 1:
 ====== Terraform/OpenTofu: KVM Provider ====== ====== Terraform/OpenTofu: KVM Provider ======
  
 +To set up the [[https://registry.terraform.io/providers/dmacvicar/libvirt/latest/docs|KVM Provider]] some additional steps are required to be able to access KVM remotely via SSH.
  
 +Change values in ''/etc/ssh/sshd_config'' on the KVM host:
 +
 +  * ''AllowTcpForwarding no'' to ''AllowTcpForwarding yes''
  
  
Line 15: Line 19:
  
 provider "libvirt" { provider "libvirt" {
-    uri   = "qemu+ssh://root@192.168.178.114/system?sshauth=privkey"+    uri   = "qemu+ssh://root@<IP_ADDRESS>/system?sshauth=privkey"
 } }
  
 </code> </code>
opentofu-terraform-provider-kvm.1696883324.txt.gz · Last modified: 2023/10/09 22:28 by admin