{"id":30221610,"url":"https://github.com/torarg/vman","last_synced_at":"2025-08-14T10:12:23.664Z","repository":{"id":307167385,"uuid":"1028547385","full_name":"torarg/vman","owner":"torarg","description":"manage OpenBSD VMs","archived":false,"fork":false,"pushed_at":"2025-07-29T21:03:28.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T21:27:53.326Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torarg.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}},"created_at":"2025-07-29T17:33:46.000Z","updated_at":"2025-07-29T21:03:32.000Z","dependencies_parsed_at":"2025-07-29T21:27:58.184Z","dependency_job_id":"9711fd45-a7d4-4045-8367-3507de41d294","html_url":"https://github.com/torarg/vman","commit_stats":null,"previous_names":["torarg/vman"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/torarg/vman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torarg%2Fvman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torarg%2Fvman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torarg%2Fvman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torarg%2Fvman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torarg","download_url":"https://codeload.github.com/torarg/vman/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torarg%2Fvman/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270401644,"owners_count":24577267,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-08-14T10:12:19.330Z","updated_at":"2025-08-14T10:12:23.574Z","avatar_url":"https://github.com/torarg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vman\nvman manages OpenBSD vms.\n\n## features\n- create and delete vms\n- vms are autoinstalled with the configured OpenBSD release\n- vms are owned by the executing user\n- locally managed vm configuration to include in /etc/vm.conf\n\n## requirements\n- vmd\n- web server serving the configured web root\n\n## quick start\n\nFor the sake of this tutorial we'll assume that your executing\nuser will be `_vman` with the primary group `_vman`.\n\nConfigure httpd for autoinstall (as root)\n```\n# mkdir /var/www/htdocs/vman\n# chown www:_vman\n# cat \u003e /etc/httpd.conf \u003c\u003cEOF\nserver \"default\" {\n        listen on * port 80\n        location \"/*install.conf\" {\n                root \"/htdocs/vman\"\n                pass\n        }\n}\n# rcctl enable httpd \u0026\u0026 rcctl start httpd\n```\n\n\nSetup doas.conf (as root)\n```\n# cat \u003e\u003e /etc/doas.conf \u003c\u003cEOF\npermit nopass _vman as root cmd /usr/sbin/vmctl args load\npermit nopass _vman as root cmd /usr/sbin/vmctl args reload\nEOF\n```\n\nSetup bridge interface (as root)\n```\n# cat \u003e /etc/hostname.vport0 \u003c\u003cEOF\ninet 192.168.10.254/24\ndescription \"veb0 host port\"\nup\nEOF\n\n# cat \u003e /etc/hostname.veb0 \u003c\u003cEOF\nadd vport0\ndescription \"vm network bridge\"\nup\nEOF\n\n# sh /etc/netstart vport0 veb0\n```\n\nInitialize vman (as user)\n```\n$ vman init\nSetting up base directory (/home/_vman/vman)...\nWriting default config to /home/_vman/.vmanrc\nFetching installsets...\nInitialization finished.\n\nTo get started, please do the following:\n  - define a switch named 'vm-network' in /etc/vm.conf\n  - include /home/_vman/vman/vm.conf in /etc/vm.conf\n  - check configuration in /home/_vman/.vmanrc\n  - create and serve /var/www/htdocs/vman on port 80\n  - ensure you got write access to /var/www/htdocs/vman\n  - ensure you got doas permissions for vmctl load|reload\n```\n\nThe init command created a base directory, fetched the latest install set\nfor -current and setup some default configuration files.\n\nHave a look at the generated config files and adapt them to your needs:\n\nautoinstall config\n```\n$ cat ~/vman/install.conf\nWhich network interface = vio0\nWhich disk is the root disk = sd0\nIPv4 address = dhcp\nIPv6 address = autoconf\nPassword for root = *************\nAllow root ssh login = prohibit-password\nSetup a user = no\nWhat timezone are you in = Europe/Berlin\nLocation of sets = disk\nIs the disk partition already mounted = no\nContinue without verification = yes\n```\n\nvman config\n```\n$ cat ~/.vmanrc\nWEBROOT=\"/var/www/htdocs/vman\"\nBASE_DIR=\"/home/_vman/vman\"\nVM_SWITCH=\"vm-network\" # default vm network, can be overriden via cli\nOWNER=\"_vman\"\nINSTALLSET_URL=\"https://ftp.spline.de/pub/OpenBSD/snapshots/amd64\"\nSSH_PUBKEY=\"/home/_vman/.ssh/id_ed25519.pub\"\n```\n\n\nConfigure vmd (as root)\n```\n# cat \u003e /etc/vm.conf \u003c\u003cEOF\nswitch \"vm-network\" {\n        interface veb0\n}\n\ninclude \"/home/_vman/vman/vm.conf\"\nEOF\n\n# rcctl enable vmd \u0026\u0026 rcctl start vmd\n```\n\nCreate vm (as user)\n```\n$ vman add -s 10g -m 2g new-vm\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorarg%2Fvman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorarg%2Fvman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorarg%2Fvman/lists"}