GitHub user DaanHoogland added a comment to the discussion: Cloudstack 
management server, nfs server, kvm host configuration steps

@arpanbht , I asked copilot what to think of this and then it occured to me 
that a lot of this work is done in the installer (cc @sudo87 ) Here is the 
analysis CoPilot gave me:

Here's a comparison of the discussion's **manual scripts** vs. the **official 
`cloudstack-installer`**:

---

## Side-by-Side Comparison

| Aspect | Discussion Scripts | `apache/cloudstack-installer` |
|---|---|---|
| **Invocation** | 3 separate scripts, run manually in order | Single 
one-liner: `curl -sSfL https://get.cloudstack.cloud/install.sh \| sudo bash` |
| **Components covered** | Management, NFS, KVM (separate) | All-in-One *or* 
Custom — management, KVM, NFS, MySQL, Usage Server |
| **Zone deployment** | Manual (not scripted) | Built-in guided Zone Deployment 
Wizard |
| **OS support** | Ubuntu only (hardcoded `jammy`/`noble`) | Ubuntu 
20.04/22.04/24.04, Oracle/Rocky/Alma 8 & 9, EL10 (experimental) |
| **Idempotency** | None — re-running risks breakage | ✅ Tracker file prevents 
duplicate steps |
| **Error handling** | Basic `set -e` | Full logging to `installer.log` + 
progress tracking |
| **Hardcoded values** | Gateway `192.168.1.1`, zone/pod/cluster IDs, Java path 
| Parameterized, auto-detected |
| **Java management** | Installs Java 11 manually (likely wrong version) | 
Handles correct version automatically, warns against pre-installing Java |
| **Network bridge** | `cloudbr0` via Netplan (hardcoded gateway) | 
Auto-configures bridge, detects interface |
| **NFS exports** | Wildcard `*` (any host) | Configured for local all-in-one 
use |
| **Interactive UI** | None | `dialog`-based menu with 4 options |
| **Multi-machine** | Designed for it (separate scripts per role) | Supported 
via "Custom Installation" mode |

---

## Key Takeaways

1. **For a quick lab/PoC**, the official installer is far superior — it handles 
all the rough edges the discussion scripts get wrong (Java version, codename 
mapping, hardcoded IPs).

2. **For multi-machine deployments** (separate management, NFS, and KVM hosts 
like in the discussion), the official installer's **Custom Installation** mode 
covers this too — you'd run it on each machine and select only the relevant 
components.

3. **The discussion scripts would benefit** from adopting the installer's 
approach to:
   - Deriving Ubuntu codenames from version numbers
   - Making the gateway a CLI argument
   - Adding an idempotency/tracker mechanism

4. **The installer's own README** explicitly warns: *"Avoid pre-installing Java 
before running this script"* — which is exactly the issue in the management 
server steps in the discussion (Java installed after `cloudstack-management`).

**Recommendation for the OP**: Point them to `curl -sSfL 
https://get.cloudstack.cloud/install.sh | sudo bash` — it solves most of the 
issues identified in the previous review out of the box.

GitHub link: 
https://github.com/apache/cloudstack/discussions/13216#discussioncomment-17017018

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to