{"id":28000643,"url":"https://github.com/sysprog21/kvm-host","last_synced_at":"2025-05-08T23:54:00.975Z","repository":{"id":37377268,"uuid":"403654556","full_name":"sysprog21/kvm-host","owner":"sysprog21","description":"A minimalist type 2 hypervisor using Linux Kernel Virtual Machine (KVM)","archived":false,"fork":false,"pushed_at":"2024-12-26T08:37:54.000Z","size":147,"stargazers_count":167,"open_issues_count":3,"forks_count":28,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-08T23:53:56.544Z","etag":null,"topics":["arm64","kvm-hypervisor","linux","minimalist","virtual-machine","x86-64"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sysprog21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-06T14:33:47.000Z","updated_at":"2025-05-01T18:05:59.000Z","dependencies_parsed_at":"2023-02-09T19:16:02.799Z","dependency_job_id":"b6051492-da1c-4f15-a730-fc82fdc47be9","html_url":"https://github.com/sysprog21/kvm-host","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysprog21%2Fkvm-host","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysprog21%2Fkvm-host/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysprog21%2Fkvm-host/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysprog21%2Fkvm-host/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysprog21","download_url":"https://codeload.github.com/sysprog21/kvm-host/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166486,"owners_count":21864471,"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":["arm64","kvm-hypervisor","linux","minimalist","virtual-machine","x86-64"],"created_at":"2025-05-08T23:54:00.502Z","updated_at":"2025-05-08T23:54:00.968Z","avatar_url":"https://github.com/sysprog21.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kvm-host\n\n`kvm-host` is a minimalist type 2 hypervisor using Linux [Kernel-based Virtual Machine](https://en.wikipedia.org/wiki/Kernel-based_Virtual_Machine) (KVM),\ncapable of running Linux kernel partially.\n\n## Supported Architecture\n\n* x86-64\n* Aarch64 (GICv2/GICv3)\n\n## Build and Run\n\nFetch required submodules (only necessary for ARM build):\n```shell\ngit submodule update --init --recursive\n```\n\nTo compile:\n```shell\nmake\n```\n\nDownload and build Linux kernel from scratch:\n```shell\nmake build/bzImage\n```\n(or `make build/Image` for Arm64 host)\n\nRun Linux guest with `kvm-host`:\n```shell\nmake check\n```\n\n## Usage\n\n```\nbuild/kvm-host -k bzImage [-i initrd] [-d disk-image]\n```\n\n`bzImage` is the path to linux kernel bzImage. The bzImage file is in a specific format,\ncontaining concatenated `bootsect.o + setup.o + misc.o + piggy.o`. `initrd` is the path to\ninitial RAM disk image, which is an optional argument.\n`disk-image` is the path to disk image which can be mounted as a block device via virtio. For the reference Linux guest, ext4 filesystem is used for disk image.\n\nTo exit kvm-host, press \"Ctrl-A\", release both keys, and then press \"x\".\n\n## License\n\n`kvm-host` is released under the BSD 2 clause license. Use of this source code is governed by\na BSD-style license that can be found in the LICENSE file.\n\n## References\n* [kvmtool](https://github.com/kvmtool/kvmtool)\n* [KVM (Kernel-based Virtual Machine) API](https://www.kernel.org/doc/Documentation/virtual/kvm/api.txt)\n* [The Linux/x86 Boot Protocol](https://www.kernel.org/doc/html/latest/x86/boot.html)\n* [Using the KVM API](https://lwn.net/Articles/658511/)\n* [gokvm](https://github.com/bobuhiro11/gokvm)\n* [KVM Host in a few lines of code](https://zserge.com/posts/kvm/)\n* [crosvm - The Chrome OS Virtual Machine Monitor](https://chromium.googlesource.com/chromiumos/platform/crosvm/)\n* [mvisor](https://github.com/tenclass/mvisor)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysprog21%2Fkvm-host","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysprog21%2Fkvm-host","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysprog21%2Fkvm-host/lists"}