{"id":22126370,"url":"https://github.com/birkneralex/virt-manager-macos","last_synced_at":"2026-04-10T05:03:12.179Z","repository":{"id":207259995,"uuid":"718814034","full_name":"BirknerAlex/virt-manager-macos","owner":"BirknerAlex","description":"Running virt-manager on macOS with Docker","archived":false,"fork":false,"pushed_at":"2024-12-18T22:18:21.000Z","size":1039,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T08:19:08.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://virt-manager.org/","language":"Dockerfile","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/BirknerAlex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"ko_fi":"BirknerAlex"}},"created_at":"2023-11-14T21:16:43.000Z","updated_at":"2024-12-18T22:18:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"2094e3d5-e262-43a0-8e57-1e553189ef40","html_url":"https://github.com/BirknerAlex/virt-manager-macos","commit_stats":null,"previous_names":["birkneralex/virt-manager-macos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirknerAlex%2Fvirt-manager-macos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirknerAlex%2Fvirt-manager-macos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirknerAlex%2Fvirt-manager-macos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirknerAlex%2Fvirt-manager-macos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BirknerAlex","download_url":"https://codeload.github.com/BirknerAlex/virt-manager-macos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248190855,"owners_count":21062354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-12-01T16:55:46.564Z","updated_at":"2026-04-10T05:03:12.097Z","avatar_url":"https://github.com/BirknerAlex.png","language":"Dockerfile","funding_links":["https://ko-fi.com/BirknerAlex"],"categories":[],"sub_categories":[],"readme":"virt-manager on macOS\n=====================\n\nThis is a Docker container for running virt-manager on macOS with the help of Docker and Xquartz.\nIt uses X11 forwarding to display the GUI on the host. Running virt-manager on macOS is not officially supported by the virt-manager project.\nThis is a workaround to get it running on macOS. \n\nIt also supports SSH connections to remote hosts via GPG agent forwarding, e.g. using a Yubikey.\n\nThere were some packages on homebrew, but they are outdated and not working anymore. This\nis why I created this Docker container which is based on the latest virt-manager version available on Fedora.\n\nThe pre-build container is available on Docker Hub: https://hub.docker.com/r/tyrola/virt-manager\nIt is available for x86_64 and arm64 (Apple Silicon) architectures.\n\n![virt-manager usage example](docs/usage.png)\n\n\n### Requirements\n\n- Docker Desktop for Mac\n- XQuartz\n\n### Installation\n\n1. Install XQuartz via Homebrew or download from https://www.xquartz.org/\n```bash\nbrew install --cask xquartz\n```\n\n2. Install Docker Desktop for Mac via Homebrew or download from https://www.docker.com/products/docker-desktop\n```bash\nbrew install --cask docker\n```\n\n### Preparation\n\n1. Open XQuartz\n   - Open settings\n   - Chose Security tab\n   - Enable \"Allow connections from network clients\"\n\n![XQuartz Settings Screenshot](docs/settings.png)\n\n2. Allow localhost connection to X11\n```bash\nxhost +localhost\n```\n\n### Running\n\nStart the container with following commands:\n\n```bash\n# Create Docker volume for storing virt-manager config\ndocker volume create virt-manager-config\n\n# Run container\ndocker run -t -i --rm \\\n  -v virt-manager-cfg:/home/default/.config/:rw \\\n  --mount type=bind,src=/run/host-services/ssh-auth.sock,target=/run/host-services/ssh-auth.sock \\\n  --name virt-manager \\\n   tyrola/virt-manager:latest\n```\n\n### SSH Tunneling\n\nIf the remote host is using a local connection for QEMU, use an SSH tunnel to access the remote host.\nRun this SSH tunnel outside of the docker container, on your local machine:\n\n```bash\nssh -L 0.0.0.0:16509:127.0.0.1:16509 user@remotehost\n```\n\nThis opens up a SSH tunnel from your local machine to the remote host. The remote libvirt\nsocket is running on `127.0.0.1:16509` in this example. Change ports if necessary.\n\nOnce the SSH socket is established, you can connect to the remote host from within the virt-manager container.\nUse the following URI to connect to the remote host:\n\n```bash\nqemu+tcp://host.docker.internal:16509/system\n```\n\nThe host.docker.internal address is a special DNS name that resolves to the internal\nIP address of your workstation.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirkneralex%2Fvirt-manager-macos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbirkneralex%2Fvirt-manager-macos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirkneralex%2Fvirt-manager-macos/lists"}