Update readme.md
This commit is contained in:
95
readme.md
95
readme.md
@@ -1,84 +1,37 @@
|
|||||||
✅ Aanbevolen: directe conversie met virt-v2v
|
# Migrating a Windows Server 2025 VM from VMware ESXi to Proxmox VE
|
||||||
🔹 Wat het doet
|
|
||||||
|
|
||||||
virt-v2v leest een VM rechtstreeks vanaf ESXi (via HTTPS/API), converteert de disks naar qcow2/raw, en maakt automatisch een Proxmox-compatibele VM met VirtIO-hardware.
|
This guide describes the most reliable and direct way to migrate a Windows Server 2025 virtual machine
|
||||||
|
from **VMware ESXi** to **Proxmox VE**, using `virt-v2v`.
|
||||||
|
It also covers driver preparation and alternative manual import steps.
|
||||||
|
|
||||||
🔧 Stappen
|
---
|
||||||
|
|
||||||
Installeer virt-v2v op je Proxmox-host
|
## 🧭 Overview
|
||||||
|
|
||||||
apt update
|
| Method | How it works | Pros | Cons |
|
||||||
apt install virt-v2v libguestfs-tools -y
|
|--------|---------------|------|------|
|
||||||
|
| **virt-v2v (recommended)** | Converts directly from ESXi to Proxmox | Keeps partitions, converts drivers | Requires CLI |
|
||||||
|
| **VMDK import** | Export disk → `qm importdisk` | Simple | Manual driver fix |
|
||||||
|
| **Veeam restore** | Restore backup | Handy for existing policy | Often fails to boot |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
Zorg dat je ESXi host bereikbaar is
|
## ✅ Prerequisites
|
||||||
|
|
||||||
Je hebt IP of FQDN van je ESXi-server nodig
|
- Both **ESXi** and **Proxmox VE** hosts reachable on the same network.
|
||||||
|
- Proxmox host has sufficient storage and CPU.
|
||||||
|
- Administrative credentials for ESXi (usually `root`).
|
||||||
|
- `virtio-win.iso` downloaded and stored in `/var/lib/vz/template/iso/`.
|
||||||
|
|
||||||
Gebruikersnaam (meestal root)
|
---
|
||||||
|
|
||||||
Wachtwoord
|
## 🔧 1. Prepare Windows VM on ESXi
|
||||||
|
|
||||||
Voer de conversie uit
|
Before migrating, pre-install VirtIO drivers inside the Windows VM to ensure it boots in Proxmox.
|
||||||
Stel:
|
|
||||||
|
|
||||||
ESXi-host: esx01.gpeu.local
|
Run this PowerShell script inside the VM (as Administrator):
|
||||||
|
|
||||||
VM-naam: WIN2025-SRV
|
```powershell
|
||||||
|
Set-ExecutionPolicy Bypass -Scope Process -Force
|
||||||
|
irm https://git.voskuil.cloud/marco/scripts/raw/branch/main/Prep-VirtIODrivers.ps1 | iex
|
||||||
|
|
||||||
Doel-VMID in Proxmox: 9001
|
|
||||||
|
|
||||||
Doel-storage: local-lvm
|
|
||||||
|
|
||||||
export LIBGUESTFS_BACKEND=direct
|
|
||||||
virt-v2v \
|
|
||||||
-ic esx://root@esx01.gpeu.local/?no_verify=1 \
|
|
||||||
-o local \
|
|
||||||
-os /var/lib/vz/images/9001 \
|
|
||||||
"WIN2025-SRV"
|
|
||||||
|
|
||||||
|
|
||||||
🔸 Je wordt gevraagd om het ESXi-wachtwoord.
|
|
||||||
🔸 Virt-v2v haalt de disks en config op en converteert ze.
|
|
||||||
|
|
||||||
Maak de VM aan in Proxmox
|
|
||||||
|
|
||||||
qm create 9001 --name WIN2025-SRV --memory 8192 --cores 4 --scsihw virtio-scsi-pci
|
|
||||||
qm importdisk 9001 /var/lib/vz/images/9001/*.qcow2 local-lvm
|
|
||||||
qm set 9001 --scsi0 local-lvm:vm-9001-disk-0 --boot order=scsi0
|
|
||||||
qm set 9001 --net0 virtio,bridge=vmbr0
|
|
||||||
|
|
||||||
|
|
||||||
VirtIO-ISO koppelen (voor zekerheid)
|
|
||||||
|
|
||||||
qm set 9001 --ide2 local:iso/virtio-win.iso,media=cdrom
|
|
||||||
|
|
||||||
|
|
||||||
Start de VM
|
|
||||||
|
|
||||||
Als je eerder het PowerShell-script draaide: zal direct booten.
|
|
||||||
|
|
||||||
Anders: mount de ISO en installeer drivers handmatig.
|
|
||||||
|
|
||||||
⚙️ Alternatief (sneller, maar meer handwerk)
|
|
||||||
|
|
||||||
Als je niet met virt-v2v wilt werken:
|
|
||||||
|
|
||||||
Shut down VM in ESXi
|
|
||||||
|
|
||||||
Kopieer de VMDK rechtstreeks naar Proxmox
|
|
||||||
|
|
||||||
scp /vmfs/volumes/datastore1/WIN2025-SRV/*.vmdk root@pve01:/var/lib/vz/images/9001/
|
|
||||||
|
|
||||||
|
|
||||||
Importeer met qm importdisk (zoals eerder besproken)
|
|
||||||
|
|
||||||
💡 Tips
|
|
||||||
|
|
||||||
Zet de disks op VirtIO-SCSI (niet IDE/SATA).
|
|
||||||
|
|
||||||
Voor Windows: installeer virtio-win-guest-tools.exe na eerste boot.
|
|
||||||
|
|
||||||
Voor Linux-VMs: gebruik virtio of virtio-blk-pci + virtio-net.
|
|
||||||
|
|
||||||
Wil je dat ik je een volledig kant-en-klaar commando-set maak voor virt-v2v vanaf ESXi naar jouw Proxmox-cluster (bijv. gpeu-srv-pve01) inclusief qm create en importdisk voor jouw Windows Server 2025 VM?
|
|
||||||
Reference in New Issue
Block a user