{"id":15779847,"url":"https://github.com/rgl/terraform-libvirt-debian-example","last_synced_at":"2026-04-13T11:02:01.882Z","repository":{"id":203394130,"uuid":"689608099","full_name":"rgl/terraform-libvirt-debian-example","owner":"rgl","description":" example on how to launch a debian vm using terraform-libvirt ","archived":false,"fork":false,"pushed_at":"2026-04-04T15:16:38.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T18:09:39.359Z","etag":null,"topics":["debian","libvirt","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-10T11:08:12.000Z","updated_at":"2026-04-04T15:16:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"e6e13afc-9162-4255-b089-2fc18d81280a","html_url":"https://github.com/rgl/terraform-libvirt-debian-example","commit_stats":null,"previous_names":["rgl/terraform-libvirt-debian-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rgl/terraform-libvirt-debian-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fterraform-libvirt-debian-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fterraform-libvirt-debian-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fterraform-libvirt-debian-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fterraform-libvirt-debian-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/terraform-libvirt-debian-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fterraform-libvirt-debian-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31749763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debian","libvirt","terraform"],"created_at":"2024-10-04T18:21:40.224Z","updated_at":"2026-04-13T11:02:01.873Z","avatar_url":"https://github.com/rgl.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Usage (Ubuntu 24.04 host)\n\n[![Lint](https://github.com/rgl/terraform-libvirt-debian-example/actions/workflows/lint.yml/badge.svg)](https://github.com/rgl/terraform-libvirt-debian-example/actions/workflows/lint.yml)\n\nCreate and install the [base Debian 13 UEFI vagrant box](https://github.com/rgl/debian-vagrant).\n\nInstall Terraform:\n\n```bash\n# see https://github.com/hashicorp/terraform/releases\n# renovate: datasource=github-releases depName=hashicorp/terraform\nterraform_version='1.14.8'\nwget \"https://releases.hashicorp.com/terraform/$terraform_version/terraform_${$terraform_version}_linux_amd64.zip\"\nunzip \"terraform_${$terraform_version}_linux_amd64.zip\"\nsudo install terraform /usr/local/bin\nrm terraform terraform_*_linux_amd64.zip\n```\n\nCreate the infrastructure:\n\n```bash\nexport CHECKPOINT_DISABLE='1'\nexport TF_LOG='DEBUG' # TRACE, DEBUG, INFO, WARN or ERROR.\nexport TF_LOG_PATH=\"$PWD/terraform.log\"\nrm -f \"$TF_LOG_PATH\"\nterraform init\nterraform plan -out=tfplan\ntime terraform apply tfplan\n```\n\n**NB** if you have errors alike `Could not open '/var/lib/libvirt/images/terraform-debian-example-root.img': Permission denied'` you need to reconfigure libvirt by setting `security_driver = \"none\"` in `/etc/libvirt/qemu.conf` and restart libvirt with `sudo systemctl restart libvirtd`.\n\nShow information about the libvirt/qemu guest:\n\n```bash\nvirsh dumpxml terraform-debian-example0\nvirsh qemu-agent-command terraform-debian-example0 '{\"execute\":\"guest-info\"}' --pretty\nvirsh qemu-agent-command terraform-debian-example0 '{\"execute\":\"guest-network-get-interfaces\"}' --pretty\n./qemu-agent-guest-exec terraform-debian-example0 id\n./qemu-agent-guest-exec terraform-debian-example0 uname -a\nssh-keygen -f ~/.ssh/known_hosts -R \"$(terraform output --json ips | jq -r '.[0]')\"\nssh \"vagrant@$(terraform output --json ips | jq -r '.[0]')\"\n```\n\nDestroy the infrastructure:\n\n```bash\ntime terraform destroy -auto-approve\n```\n\nList this repository dependencies (and which have newer versions):\n\n```bash\nGITHUB_COM_TOKEN='YOUR_GITHUB_PERSONAL_TOKEN' ./renovate.sh\n```\n\n# Virtual BMC\n\nYou can externally control the VM using the following terraform providers:\n\n* [vbmc terraform provider](https://registry.terraform.io/providers/rgl/vbmc)\n  * exposes an [IPMI](https://en.wikipedia.org/wiki/Intelligent_Platform_Management_Interface) endpoint.\n  * you can use it with [ipmitool](https://github.com/ipmitool/ipmitool).\n  * for more information see the [rgl/terraform-provider-vbmc](https://github.com/rgl/terraform-provider-vbmc) repository.\n* [sushy-vbmc terraform provider](https://registry.terraform.io/providers/rgl/sushy-vbmc)\n  * exposes a [Redfish](https://en.wikipedia.org/wiki/Redfish_(specification)) endpoint.\n  * you can use it with [redfishtool](https://github.com/DMTF/Redfishtool).\n  * for more information see the [rgl/terraform-provider-sushy-vbmc](https://github.com/rgl/terraform-provider-sushy-vbmc) repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fterraform-libvirt-debian-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fterraform-libvirt-debian-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fterraform-libvirt-debian-example/lists"}