From 4ce51e1e4c9239b605e040bc4060b58dfc7b8ab2 Mon Sep 17 00:00:00 2001 From: moeny-matt Date: Mon, 7 Apr 2025 17:20:19 -0400 Subject: [PATCH] Fix iso_path and update Readme for internal net --- README.md | 15 +++++++++++++++ bolt_vm_automation/plans/create_alpine.yaml | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 983b52d..c2c51c0 100644 --- a/README.md +++ b/README.md @@ -172,4 +172,19 @@ send EOF ssh moeny@ns1.moeny.ai "sudo rndc sync moeny.ai" +``` + +## VMs on an Internal Network + +In order to spin up VMs on an internal network, you will need to generate an Alpine iso comatible with the internal IPs you are using and specify its path. You will also want to declare the staging IP and gateway IP parameters accordingly. Here is a sample command to run the Alpine bolt plan. + +```bash +bolt plan run bolt_vm_automation::create_alpine \ + vm_name=moeny-service \ + ip_with_cidr=10.44.0.20/24 \ + hostname=moeny-service \ + network=internal-moeny \ + staging_ip=10.44.0.250 \ + gateway_ip=10.44.0.1 \ + iso_path=/mnt/nfs/kvm-isos/iso-build/alpine-autoinstall-internal_moeny.iso -v ``` \ No newline at end of file diff --git a/bolt_vm_automation/plans/create_alpine.yaml b/bolt_vm_automation/plans/create_alpine.yaml index 3885219..5f9b31b 100644 --- a/bolt_vm_automation/plans/create_alpine.yaml +++ b/bolt_vm_automation/plans/create_alpine.yaml @@ -7,7 +7,7 @@ parameters: iso_path: type: String description: "Path to the ISO file" - default: "/mnt/nfs/kvm-isos/iso-build/alpine-autoinstall.iso" + default: "/mnt/nfs/kvm-isos/iso-build/alpine-autoinstall-wan_verizon.iso" vm_name: type: String description: "Name of the VM" @@ -108,6 +108,7 @@ steps: disk_path: "${disk_path}/${vm_name}.qcow2" staging_ip: $staging_ip gateway_ip: $gateway_ip + - name: install_packages description: Install Packages on the VM task: bolt_vm_automation::install_packages_alpine