{"id":50216155,"url":"https://github.com/fgrehm/dotfiles-vm","last_synced_at":"2026-05-26T09:04:12.019Z","repository":{"id":347882524,"uuid":"1195589628","full_name":"fgrehm/dotfiles-vm","owner":"fgrehm","description":"Disposable Debian 13 VM with KDE Plasma for testing dotfiles (QEMU/KVM + libvirt)","archived":false,"fork":false,"pushed_at":"2026-03-29T22:25:13.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-30T00:23:00.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fgrehm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2026-03-29T20:57:33.000Z","updated_at":"2026-03-29T22:25:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fgrehm/dotfiles-vm","commit_stats":null,"previous_names":["fgrehm/dotfiles-vm"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/fgrehm/dotfiles-vm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgrehm%2Fdotfiles-vm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgrehm%2Fdotfiles-vm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgrehm%2Fdotfiles-vm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgrehm%2Fdotfiles-vm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgrehm","download_url":"https://codeload.github.com/fgrehm/dotfiles-vm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgrehm%2Fdotfiles-vm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33512343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T03:12:49.672Z","status":"ssl_error","status_checked_at":"2026-05-26T03:12:47.976Z","response_time":63,"last_error":"SSL_read: 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":[],"created_at":"2026-05-26T09:03:49.878Z","updated_at":"2026-05-26T09:04:12.014Z","avatar_url":"https://github.com/fgrehm.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotfiles-vm\n\nSpin up a disposable Debian 13 (Trixie) VM with KDE Plasma to test dotfiles. Uses QEMU/KVM + libvirt with a preseed for fully unattended install and 9p passthrough to mount your dotfiles directly into the guest.\n\nRuns entirely in userland (`qemu:///session`) with [passt](https://passt.top/) for networking. No root, no bridge setup, no permission headaches.\n\n## Requirements\n\nDebian 13 host with:\n\n```bash\nsudo apt install qemu-kvm libvirt-daemon-system \\\n  libvirt-clients virt-manager virt-viewer passt\n```\n\nIf you don't want libvirtd running all the time, enable socket activation instead:\n\n```bash\nsudo systemctl disable libvirtd\nsudo systemctl enable libvirtd.socket\n```\n\n## Setup\n\n1. `cp .env.example .env`\n2. Edit `.env` -- set `DOTFILES_PATH`, username, password, VM resources. Optionally set `ISO_PATH` to a local Debian ISO to skip the network download.\n3. `make create` -- wait ~15 minutes\n\n## Usage\n\n```bash\nmake create                    # build the VM from scratch\nmake start                     # start VM and open display\nmake stop                      # gracefully shut down\nmake ssh                       # SSH into the running VM\nmake snapshot NAME=fresh-kde   # save VM state (VM must be stopped)\nmake revert NAME=fresh-kde     # restore VM state\nmake list                      # show all snapshots\nmake destroy                   # delete VM and disk\nmake help                      # show all targets\n```\n\nYour dotfiles are automatically mounted at `/mnt/dotfiles` inside the guest on every boot (configured via preseed). Just symlink or deploy from there as your dotfiles setup script expects.\n\n## How it works\n\nThe `virt-install` command fetches the Debian installer (from a local ISO if `ISO_PATH` is set, otherwise over the network), injects `preseed.cfg` to automate the install (KDE Plasma + SSH + utilities), and sets up a 9p virtio filesystem share so your host dotfiles directory is live-mounted inside the guest. Snapshots via `virsh` let you test, break things, and revert in seconds.\n\nThe VM uses `qemu:///session` (user-level libvirt) so QEMU runs as your user and can access files under your home directory without any special permissions. Networking uses [passt](https://passt.top/) with port forwarding for SSH (`localhost:2222` by default, configurable via `VM_SSH_PORT` in `.env`).\n\n## Troubleshooting\n\n**`make ssh` hangs or times out:**\n- Check that the VM is running: `virsh domstate $VM_NAME`\n- Verify SSH is reachable: `ssh -p 2222 localhost` (or whatever `VM_SSH_PORT` is set to)\n- Check that `sshd` is running inside the VM: open the SPICE display with `make start` and run `systemctl status ssh`\n- Verify passt is working: `virsh dumpxml $VM_NAME | grep passt`\n\n**VM won't start after editing:**\n- Don't manually edit the XML. Destroy and recreate: `make destroy \u0026\u0026 make create`\n\n**9p mount failing in the VM:**\n- Verify the host path exists and is readable: `ls -la $DOTFILES_PATH`\n- Check the kernel modules are loaded: `lsmod | grep 9p`\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgrehm%2Fdotfiles-vm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgrehm%2Fdotfiles-vm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgrehm%2Fdotfiles-vm/lists"}