{"id":21581487,"url":"https://github.com/luxiaok/kvman","last_synced_at":"2025-04-10T18:53:58.218Z","repository":{"id":22997730,"uuid":"26348270","full_name":"luxiaok/kvman","owner":"luxiaok","description":"Kvm Virtual Machine Manager","archived":false,"fork":false,"pushed_at":"2020-06-07T11:05:46.000Z","size":3592,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T16:41:35.596Z","etag":null,"topics":["kvm","kvm-webui","libvirt","qemu","qemu-img","qemu-kvm","virt-install","virtual","vmware"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luxiaok.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}},"created_at":"2014-11-08T03:15:58.000Z","updated_at":"2024-04-23T02:33:06.000Z","dependencies_parsed_at":"2022-08-31T04:51:29.861Z","dependency_job_id":null,"html_url":"https://github.com/luxiaok/kvman","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/luxiaok%2Fkvman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxiaok%2Fkvman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxiaok%2Fkvman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxiaok%2Fkvman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luxiaok","download_url":"https://codeload.github.com/luxiaok/kvman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248275365,"owners_count":21076581,"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":["kvm","kvm-webui","libvirt","qemu","qemu-img","qemu-kvm","virt-install","virtual","vmware"],"created_at":"2024-11-24T14:12:42.739Z","updated_at":"2025-04-10T18:53:58.200Z","avatar_url":"https://github.com/luxiaok.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Kvm Man\n=========\n\nKvman = Kvm Man = Kernel-based Virtual Machine Manager\n\nVersion: v1.0.0-Dev\n\n\n![Kvm-Man](static/img/kvman-overview.png)\n\n\n## Dependency Components\n\n### Based environments\n\n* CentOS 7.8 x86_64\n\n* Python 2.7.xx\n\n\n### Install Kvm requirements\n\n```\nyum update -y\nyum install -y centos-release-qemu-ev\nyum install -y qemu-kvm-ev qemu-kvm-common-ev qemu-img-ev qemu-kvm-tools-ev libvirt libvirt-python virt-install\n```\n\n\n### Python requirements\n\n- [Python](http://www.python.org)：2.7.x\n\n- [Torweb](https://github.com/xkstudio/Torweb)：1.0+\n\n- [Tornado](http://www.tornadoweb.org/)：5.0+\n\n- [Jinja2](http://jinja.pocoo.org/)：2.9+\n\n- [Redis-Py](https://github.com/andymccurdy/redis-py)：2.10+\n\n- [Libvirt](https://github.com/libvirt/libvirt-python): 2.0+\n\n- [Supervisor](https://pypi.org/project/setuptools): 3.0+\n\n- [simplejson](https://pypi.org/project/simplejson/)\n\n- [Pillow](https://python-pillow.org/) 6.2.2\n\n- [numpy](https://numpy.org/) **1.16.6**\n\n\u003e pip install tornado==5.1.1 supervisor==3.3.5 numpy==1.16.6 Pillow=6.2.2 simplejson Jinja2 redis\n\n\n### Deploy Redis Server\n\nSee https://redis.io/\n\n\n### Configure for Kvman\n\n* Copy [config/settings-sample.py](config/settings-sample.py) to **config/settings.py**\n\n* Change configurations for **redis** in settings.py, such as `host` `port` `password`\n\n\n### Run Kvman\n\n\u003e python run.py [--port=8081]\n\nVisit http://IP:8081\n\n\n### Run Console Server\n\n\u003e python vendor/console.py --token-plugin console.Token 6080\n\n\n### Configure for Supervisor\n\n```\n[program:kvman]\ncommand=/usr/bin/python2.7 run.py --port=8080 2\u003e\u00261 \u003e\u003e /tmp/kvman.log\nautorestart=true\nautostart=true\ndirectory=/var/www/kvman\nredirect_stderr=true\nstdout_logfile=/tmp/kvman.log\n\n[program:kvman_console]\ncommand=/usr/bin/python2.7 vendor/console.py --token-plugin console.Token 6080\nautorestart=true\nautostart=true\ndirectory=/var/www/kvman\nredirect_stderr=true\nstdout_logfile=/tmp/kvman_console.log\n```\n\n\n## FAQ\n\n### How to config for qemu+ssh?\n\n```shell\nssh-keygen\nssh-copy-id kvm_server_hostname\n```\n \nTest:\n\n\u003e virsh -c qemu+ssh://Username@KvmServerAddress:SSH_Port/system\n\n### How to save data for redis?\n\n\u003e redis-cli -h redis_host -p redis_port save\n\n\n## Related Links\n\n- [QEMU](https://www.qemu.org/download/)\n\n- [Libvirt](http://libvirt.org/sources/)\n\n- [VirtIO for Windows](https://docs.fedoraproject.org/en-US/quick-docs/creating-windows-virtual-machines-using-virtio-drivers/index.html)\n\n- [Qemu-Guest-Agent](https://wiki.qemu.org/Features/GuestAgent)\n\n- [OSX-KVM](https://github.com/kholia/OSX-KVM)\n\n- [Linux-Kvm](https://www.linux-kvm.org/)\n\n- [noVNC](https://github.com/novnc/noVNC)\n\n- [websockify](https://github.com/novnc/websockify)\n\n\n## License\n\nThis project is under the **GPLv3** License. See the [LICENSE](LICENSE) file for the full license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluxiaok%2Fkvman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluxiaok%2Fkvman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluxiaok%2Fkvman/lists"}