fix(proxmox): template VM 310 sysprep-uit, VM 300 nu mai e de clonat

VM 300 `Win11-Template` nu a fost sysprep-uit: poarta numele ROACENTRAL si
SID-ul de masina al VM 201 (S-1-5-21-1850128657-3079265004-705332634).
Clonele lui mostenesc acea identitate, iar NTLM intre doua masini cu acelasi
SID de masina esueaza — de aici imposibilitatea accesarii share-urilor SMB
intre VM 303 si VM 201, in ambele sensuri.

VM 300 nu poate fi reparat in loc: e template read-only, iar VM 303 e linked
clone din el. Solutia: clona completa 300 -> 310, sysprep acolo, conversie in
template. Verificat pe o clona de proba: nume si SID noi la fiecare pornire.

- clone-vm300.sh: SOURCE_VMID 300 -> 310
- README-uri: VM 310 marcat ca template de clonare, VM 300 ca "nu clona"
- vm302-oracle-test: corectat exemplul care clona in VM 303 (deja ocupat)
- docs/handoff-smb-vm303-roacentral.md: probele, capcanele de sysprep, stare

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MoFGxftQw92PX4Sdkn94pv
This commit is contained in:
Marius
2026-08-10 23:24:47 +03:00
parent 5567443b66
commit a7f4242ce3
5 changed files with 175 additions and 10 deletions

View File

@@ -439,7 +439,8 @@ ssh root@10.0.20.201 "qm snapshot 302 pre-test --description 'Before ROA test'"
|------|------|----|--------------|
| **109** | **standby-dr** | **Windows Server** | **`vm109-windows-dr/`** |
| **201** | **roacentral** | **Windows 11** | **`vm201-windows/`** |
| 300 | Win11-Template | Windows 11 | `cluster/README.md` |
| **310** | **Win11-Template-Sysprep** | **Windows 11 (template de clonare)** | **`cluster/README.md`** |
| 300 | Win11-Template | Windows 11 | ⛔ nesysprep-uit, nu clona — `docs/handoff-smb-vm303-roacentral.md` |
| **302** | **oracle-test-302** | **Windows 11 + Oracle 21c (test ROA)** | **`vm302-oracle-test/`** |
---

View File

@@ -247,7 +247,8 @@ pct set <CTID> --rootfs local-zfs:20
|------|------|-----|-----|-----|-----|---------|--------|
| 201 | roacentral | pvemini | 10.0.20.122 | 4 cores | 6 GB | 500 GB | running |
| 303 | Win11-Adina | pvemini | DHCP | 4 cores | 8 GB | 500 GB | running |
| 300 | Win11-Template | pvemini | - | 2 cores | 4 GB | 500 GB | stopped |
| 310 | Win11-Template-Sysprep | pvemini | - | 2 cores | 4 GB | 500 GB | template ✅ |
| 300 | Win11-Template | pvemini | - | 2 cores | 4 GB | 500 GB | template ⛔ NU CLONA |
| 302 | oracle-test-302 | pvemini | - | 4 cores | 4 GB | 500 GB | stopped |
| 109 | oracle-dr-windows | pveelite | 10.0.20.37 | 4 cores | 6 GB | 500 GB | stopped |
@@ -376,7 +377,8 @@ cat /etc/pve/corosync.conf
| VMID | Nume | IP | OS | Rol |
|------|------|-----|-----|-----|
| 201 | roacentral | DHCP | Windows 11 | Client aplicații |
| 300 | Win11-Template | - | Windows 11 | Template pentru clonare |
| 310 | Win11-Template-Sysprep | - | Windows 11 | Template pentru clonare (sysprep-uit) |
| 300 | Win11-Template | - | Windows 11 | ⛔ Nesysprep-uit — NU clona, vezi `docs/handoff-smb-vm303-roacentral.md` |
### Accesuri Rapide
```bash

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# =============================================================================
# Clone VM 300 (Windows 11 Template) for Oracle Testing
# Clone Windows 11 Template (VM 310) for Oracle Testing
# =============================================================================
#
# Purpose: Create a test VM for Oracle installation testing
@@ -11,11 +11,18 @@
# Examples:
# ./clone-vm300.sh # Creates VM 301 named oracle-test-301
# ./clone-vm300.sh 305 # Creates VM 305 named oracle-test-305
# ./clone-vm300.sh 310 roa-prod # Creates VM 310 named roa-prod
# ./clone-vm300.sh 320 roa-prod # Creates VM 320 named roa-prod
#
# IMPORTANT — sursa e VM 310, NU VM 300:
# VM 300 `Win11-Template` NU e sysprep-uit: poarta numele (ROACENTRAL) si SID-ul
# de masina al VM 201. Clonele din el nu se pot autentifica prin SMB/NTLM nici cu
# VM 201, nici intre ele. Vezi docs/handoff-smb-vm303-roacentral.md.
# VM 310 `Win11-Template-Sysprep` e varianta generalizata; fiecare clona primeste
# SID si nume proprii la prima pornire (trece prin OOBE).
#
# Prerequisites:
# - Run on Proxmox host (pvemini, pve1, or pveelite)
# - VM 300 exists as Windows 11 template
# - VM 310 exists as sysprepped Windows 11 template
# - Sufficient storage space (~50GB per clone)
#
# =============================================================================
@@ -26,7 +33,7 @@ set -e
# Configuration
# -----------------------------------------------------------------------------
SOURCE_VMID=300
SOURCE_VMID=310
TARGET_VMID=${1:-301}
TARGET_NAME=${2:-"oracle-test-${TARGET_VMID}"}

View File

@@ -393,11 +393,11 @@ ssh root@10.0.20.201 "qm delsnapshot 302 pre-test"
## Clone VM for Parallel Testing
```bash
# Clone VM 302 to VM 303
ssh root@10.0.20.201 "qm clone 302 303 --name oracle-test-303 --full"
# Clone VM 302 to VM 304 (ATENTIE: 303 e ocupat de Win11-Adina)
ssh root@10.0.20.201 "qm clone 302 304 --name oracle-test-304 --full"
# Start new VM
ssh root@10.0.20.201 "qm start 303"
ssh root@10.0.20.201 "qm start 304"
# Note: Change IP in Windows after boot (Network Settings)
```
@@ -407,6 +407,10 @@ ssh root@10.0.20.201 "qm start 303"
## Notes
- VM 302 is cloned from template VM 300 (clean Windows + Oracle XE)
-**Pentru clone NOI foloseste template-ul VM 310 `Win11-Template-Sysprep`, nu VM 300.**
VM 300 nu e sysprep-uit: poarta numele si SID-ul de masina al VM 201, iar clonele lui
nu se pot autentifica prin SMB/NTLM cu VM 201 sau intre ele. Detalii si probe in
`docs/handoff-smb-vm303-roacentral.md`.
- Oracle XE has 2GB RAM limit - sufficient for testing
- DMP files are already in C:\DMPDIR (persisted between tests)
- Uninstall script preserves DMP files