refactor(plans): update Linux host adaptation details for VMware Workstation Pro and KVM options
This commit is contained in:
@@ -28,7 +28,7 @@ Il punto di ingresso `Invoke-CIJob.ps1` viene sostituito da `invoke_ci_job.py`
|
||||
|
||||
| Componente PowerShell | Equivalente Python | Note |
|
||||
| ----------------------------------------- | -------------------------------------------------------- | ------------------------------------------------------------------- |
|
||||
| `Invoke-Vmrun` (wrapper vmrun.exe) | `subprocess.run([vmrun, '-T', 'ws', ...])` | Identico, gestione `returncode` esplicita. |
|
||||
| `Invoke-Vmrun` (wrapper `vmrun.exe` su Win / `vmrun` su Linux) | `subprocess.run([vmrun, '-T', 'ws', ...])` | Identico, gestione `returncode` esplicita. Path binario configurabile via env var. |
|
||||
| `New-PSSession` + `Invoke-Command` (WinRM) | `pypsrp` (`pypsrp.client.Client`) o `pywinrm` | **Rischio basso**. `pypsrp` supporta HTTPS self-signed e PSRP nativo. |
|
||||
| `Copy-Item -ToSession / -FromSession` | `pypsrp.client.Client.copy()` / `fetch()` | Throughput simile a WinRM nativo. |
|
||||
| `_Transport.psm1` (ssh.exe / scp.exe) | `paramiko` o `fabric`, oppure subprocess di `ssh`/`scp` | `paramiko` elimina dipendenza da OpenSSH client. |
|
||||
@@ -162,11 +162,12 @@ osservabilità sul codice PS attuale.
|
||||
|
||||
## 6. Sinergia con Idee 2 e 3
|
||||
|
||||
- **Idea 2 (host Linux)**: la riscrittura Python è **prerequisito naturale**.
|
||||
PS 7 su Linux funziona ma `vmrun` non gira nativamente lì (Workstation è
|
||||
Windows-only; serve VMware Player Linux o `ovftool`). Python rende il
|
||||
porting più semplice se anche il transport cambia (es. `libvirt` come
|
||||
alternativa).
|
||||
- **Idea 2 (host Linux)**: la riscrittura Python è **utile ma non strettamente
|
||||
obbligata**. VMware Workstation Pro esiste nativamente per Linux con lo
|
||||
stesso `vmrun`, quindi il transport può restare identico (PS 7 su Linux
|
||||
può continuare a chiamare `vmrun`). Python rende comunque il porting più
|
||||
semplice se si valuta di passare a un hypervisor diverso (es. KVM con
|
||||
`libvirt`).
|
||||
- **Idea 3 (ESXi)**: `pyVmomi` (SDK ufficiale VMware per ESXi/vCenter) è
|
||||
**solo Python**. Equivalenti PowerShell sono PowerCLI (richiede
|
||||
PS 7+ moduli VMware.PowerCLI installabili anche su PS 5.1, ma con limiti).
|
||||
|
||||
Reference in New Issue
Block a user