{"id":20031682,"url":"https://github.com/andrejmaya/vsphere-packer-vm-deployment","last_synced_at":"2026-06-10T17:31:08.669Z","repository":{"id":86054624,"uuid":"588923388","full_name":"andrejmaya/vsphere-packer-vm-deployment","owner":"andrejmaya","description":"This repository provides a streamlined process to quickly provision an Ubuntu virtual machine on your local vSphere ESXi host using Packer. It includes a pre-configured Packer template and detailed instructions to guide you through the setup, making it ideal for building a home lab environment.","archived":false,"fork":false,"pushed_at":"2023-01-14T13:50:59.000Z","size":888,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T05:27:44.805Z","etag":null,"topics":["packer","terraform","vmware","vsphere"],"latest_commit_sha":null,"homepage":"https://andrejmaya.medium.com/build-vms-on-local-vsphere-with-packer-13535fe551ee","language":"HCL","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/andrejmaya.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":"2023-01-14T13:48:25.000Z","updated_at":"2024-10-12T11:45:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"be2dd47b-d53f-41fc-a015-36af10a28151","html_url":"https://github.com/andrejmaya/vsphere-packer-vm-deployment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrejmaya/vsphere-packer-vm-deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejmaya%2Fvsphere-packer-vm-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejmaya%2Fvsphere-packer-vm-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejmaya%2Fvsphere-packer-vm-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejmaya%2Fvsphere-packer-vm-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrejmaya","download_url":"https://codeload.github.com/andrejmaya/vsphere-packer-vm-deployment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrejmaya%2Fvsphere-packer-vm-deployment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34163253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["packer","terraform","vmware","vsphere"],"created_at":"2024-11-13T09:34:17.788Z","updated_at":"2026-06-10T17:31:08.653Z","avatar_url":"https://github.com/andrejmaya.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Provision Ubuntu VM on a local vSphere ESXi host\n\n![home lab environment](./images/architecture.drawio.png)\n\n## Hardware prerequisites\n1. Spare x86 host like an old laptop, PC etc.\n1. USB Stick with min 8 GB capacity\n\n## Installation steps\n\n### Installation of vSphere\n* Get vSphere 8 for free for 60 days ([link](https://customerconnect.vmware.com/en/evalcenter?p=vsphere-eval-8))\n* Create a bootable USB Stick with [Rufus](https://rufus.ie/en/) (Windows) or [Etcher](https://www.balena.io/etcher/)(Mac)\n* Adjust your boot settings in BIOS on your target host (spare laptop, PC etc.), boot with the vSphere image and run through the installation\n\nAfter you ESXi host is running you can open the vSphere console by navigating to the IP on any device in your local network.\n![vsphere login screen](./images/vsphere-login.png)\nAfter a successful login you will be welcomed with the vSphere management home screen\n![vsphere homepage](./images/vsphere-homepage.png)\n\n### Preparation of the Ubuntu ISO image\n* Download Ubuntu ISO [here](https://ubuntu.com/download/server#downloads)\n* Navigate to your datastore in vSphere and upload the ISO to a folder of your choice\n![vsphere datastore](./images/vsphere-datastore.png)\n![vsphere datastore upload](./images/vsphere-datastore-upload.png)\n\nNow adjust the variables in [vars.auto.pkrvars.hcl](./vars.auto.pkrvars.hcl) based on your environment parameters\n\n## Deploy a VM\n```\npacker build -var 'vm_name=tf-edu-ubuntu' -var 'host_name=ubuntu4' -var 'vm_cpus=1' -var 'vm_ram=1024' -var 'vm_disk_size=6144' .\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejmaya%2Fvsphere-packer-vm-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrejmaya%2Fvsphere-packer-vm-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrejmaya%2Fvsphere-packer-vm-deployment/lists"}