{"id":20850428,"url":"https://github.com/noteed/vm","last_synced_at":"2026-04-16T13:38:52.315Z","repository":{"id":34296812,"uuid":"38198073","full_name":"noteed/vm","owner":"noteed","description":"Scripts to build and run VM images.","archived":false,"fork":false,"pushed_at":"2016-01-04T16:16:22.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T06:11:31.294Z","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":"jbwolfe/awesome-django","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noteed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-28T12:29:56.000Z","updated_at":"2015-06-28T12:30:30.000Z","dependencies_parsed_at":"2022-09-14T03:31:28.004Z","dependency_job_id":null,"html_url":"https://github.com/noteed/vm","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/noteed%2Fvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noteed%2Fvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noteed","download_url":"https://codeload.github.com/noteed/vm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243216096,"owners_count":20255314,"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-11-18T03:09:28.822Z","updated_at":"2025-12-26T14:04:46.245Z","avatar_url":"https://github.com/noteed.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VM\n\nThis repository contains:\n\n- a script to build a Ubuntu ISO file for unattended install,\n- a script to build a KVM image using the above ISO,\n- a script to run a bridge to allow VMs to talk to each others,\n- a script to run VMs using that bridge.\n\nThe first script is based on: https://github.com/netson/ubuntu-unattended.\n\nThe resulting image is already provisioned with Docker and Tinc. It also\ncontains a script to configure Docker and Tinc in such a way that containers\nrunning on multiple VMs can talk to each others. That script is run\nautomatically when the VM boots (it's called from `rc.local`).\n\n\n## Build the VM iso and image\n\n```\n\u003e make\n```\n\nThis downloads `ubuntu-14.04.3-server-amd64.iso`, creates a custom\n`ubuntu-14.04.3-server-amd64-unattended.iso` and run kvm to create\n`ubuntu-14.04.3-server-amd64.img`.\n\n\n## Run a brigde and some VMs\n\nRun this command once:\n\n```\n\u003e ./run-bridge.sh\n```\n\nThis creates a bridge called `br0` used by VMs to talk to each other. A\n`dnsmasq` container is run to serve IPs to those VMs.\n\nThen (in different terminals):\n\n```\n\u003e ./run-bridged-kvm.sh 1\n\u003e ./run-bridged-kvm.sh 2\n\u003e ./run-bridged-kvm.sh 3\n\u003e ./run-bridged-kvm.sh 4\n\u003e ./run-bridged-kvm.sh 5\n```\n\nThe `run-bridged-kvm.sh` script will run a VM using the\n`ubuntu-14.04.3-server-amd64.img` image in snapshot mode, i.e. changes will be\nlost and the image left unaltered. In addition, simply rebooting will cause\n`kvm` to exit. You can login using \"horde\" / \"horde\" directly or through SSH.\n\n\n## Run a (lonely) VM\n\n```\n\u003e ./run-kvm.sh 1\n```\n\nWith something similar to the following in your `~/.ssh/config`\n\n```\nHost vm-1\n  Hostname 127.0.0.1\n  Port 22001\n  User horde\n```\n\nit becomes easy to SSH into the VM:\n\n```\n\u003e ssh vm-1\n```\n\n\n# Configuration data (for the lonely VM)\n\nA configuration disk with a `setup.sh` script can be provided to the VM. If\nthis is the case, the script will be run from its directory. The label of the\ndisk must be `CONFIGDISK`.\n\nTo create a, say 2MB, vfat disk and populate it with the desired data:\n\n```\ntruncate -s 2M config-disk.img\nmkfs.vfat -n CONFIGDISK config-disk.img\nmcopy -oi config-disk.img file-0.txt file-1.txt ... ::\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoteed%2Fvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoteed%2Fvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoteed%2Fvm/lists"}