{"id":15945496,"url":"https://github.com/aktech/cimages","last_synced_at":"2025-04-03T22:14:18.356Z","repository":{"id":81552250,"uuid":"493497668","full_name":"aktech/cimages","owner":"aktech","description":"Create/Edit Ubuntu's Cloud images with QEMU and Cloud-Init","archived":false,"fork":false,"pushed_at":"2022-11-13T22:57:17.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T10:11:31.760Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aktech.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-18T03:40:04.000Z","updated_at":"2022-05-18T03:41:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"786e733b-5055-41f2-9a5a-608c719f6f66","html_url":"https://github.com/aktech/cimages","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/aktech%2Fcimages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aktech%2Fcimages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aktech%2Fcimages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aktech%2Fcimages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aktech","download_url":"https://codeload.github.com/aktech/cimages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247086024,"owners_count":20881160,"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-10-07T09:03:10.691Z","updated_at":"2025-04-03T22:14:18.324Z","avatar_url":"https://github.com/aktech.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud Images\n\n[![Build Image](https://github.com/aktech/cimages/actions/workflows/build.yml/badge.svg)](https://github.com/aktech/cimages/actions/workflows/build.yml)\n\nThis loads Ubuntu's cloud image via QEMU and installs the following on top of it via [cloud-init](https://cloudinit.readthedocs.io/en/latest/):\n\n- NVIDIA Drivers\n- Docker\n\nMore packages can be installed in the base image by modifying the user data script in the\nfollowing file:\n\n```\nscripts/provision_ubuntu2004_qemu.sh\n```\n\n## Setup and Installation\n\n* Install Dependencies and Boot up machine\n\n```\n./scripts/install_dependencies.sh\n./scripts/provision_ubuntu2004_qemu.sh\n```\n\n## SSH into the machine\n\nAfter the machine has booted and cloudinit is ran, you can ssh into the\nmachine with the following command:\n\n```\nssh -o \"StrictHostKeyChecking no\" -p 5555 root@localhost\n```\n\nSSH keys can be added by modifying either of the following keys in the user data script in the\nprovision script (`scripts/provision_ubuntu2004_qemu.sh`).\n\n- `ssh-authorized-keys` (accepts ssh public key)\n- `ssh_import_id` (fetches ssh keys from GitHub or launchpad)\n\nSee:\n\n- https://cloudinit.readthedocs.io/en/latest/topics/modules.html#ssh-import-id\n- https://cloudinit.readthedocs.io/en/latest/topics/modules.html?highlight=ssh-authorized-keys#authorized-keys\n\nFor everything else refer to cloud-init docs:\nhttps://cloudinit.readthedocs.io/en/latest/\n\n## Artifact\n\nTo achieve the above mentioned, the script downloads the Ubuntu 20.04 image from https://cloud-images.ubuntu.com\nAfter running the script, the downloaded image is modified to include the above mentioned packages via cloud-init,\nyou can notice the change in size of the image as a result. This image is the final artifact and can be used to spinup\nVMs in systems like OpenStack.\n\n## GitHub Actions\n\nThe image is built on GitHub Actions and then uploaded to GCP storage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faktech%2Fcimages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faktech%2Fcimages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faktech%2Fcimages/lists"}