Skip to content

Commit adad7d2

Browse files
committed
doc(XCP-ng): Add further details to the VMware migration process
Some information about migrating from VMware to Vates was stored in a separate location. This PR integrates that information back into the XCP-ng technical documentation, which serves as the primary reference for users migrating from VMware to the Vates stack. Signed-off-by: Thomas Moraine <[email protected]>
1 parent b866746 commit adad7d2

File tree

1 file changed

+75
-8
lines changed

1 file changed

+75
-8
lines changed

docs/installation/migrate-to-xcp-ng.md

+75-8
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,40 @@ Export your VM in OVA format, and use Xen Orchestra to import it. If you have an
3333
## 🇻 From VMware
3434

3535
:::warning
36+
37+
**Disk Size Limitations**
38+
39+
Disks larger than 2TB - 8MB cannot be migrated automatically. You will need to create the VM in Xen Orchestra with multiple disks and use the OS capabilities to build them into a joined disk of the required size. Then, migrate the disk content using your preferred tool (e.g., Clonezilla, Robocopy, Rsync).
40+
41+
**Warm migration prerequisites**
42+
43+
Warm migration (as explained below in the [XO V2V](#xo-v2v) section) involves migrating all content up to the last snapshot, then stopping the VM and migrating the snapshot content. This method requires that the VM has at least one snapshot and that the account used has permission to stop the VM.
44+
45+
**Migration time**
46+
3647
Migrating from VMware to XCP-ng is not just a technical operation on one VM, it's a process. How long the migration takes depends on various factors, such as:
3748

38-
- **Number of VMs** Make sure to know the size of your infrastructure before starting a migration. To migrate hundreds or thousands of VMs, you may want automate the export/import steps with a script.
39-
- **Hardware performance and compatibility**: It's important to take into account the performance of your hardware. SSD or HDD? Network hardware performance? RAM and CPU availability? All these elements will have an impact on your migration.
49+
- **Number of VMs:** Make sure to know the size of your infrastructure before starting a migration. To migrate hundreds or thousands of VMs, you may want automate the export/import steps with a script.
50+
- **Hardware performance and compatibility:** It's important to take into account the performance of your hardware. SSD or HDD? Network hardware performance? RAM and CPU availability? All these elements will have an impact on your migration.
51+
- **Network:** The network used to write data onto XCP-ng is the "default backup network", if configured.
52+
:::
53+
54+
:::tip
55+
**Before Starting**
56+
57+
Remove the VMware drivers before starting the migration.
4058
:::
4159

4260
### XO V2V
4361

44-
Xen Orchestra introduces "V2V," or "VMware to Vates", a streamlined tool for migrating from VMware to the Vates Stack, encompassing XCP-ng and Xen Orchestra (XO). Seamlessly integrated into Xen Orchestra, this tool utilizes the "warm migration" feature for efficient transitions. The process initiates with exporting an initial snapshot of the VMware-based VM, which, despite being time-consuming, occurs without disrupting the VM's operation, ensuring transparency.
62+
Xen Orchestra introduces "V2V", or "VMware to Vates", a streamlined tool for migrating from VMware to the Vates Stack, which includes XCP-ng and Xen Orchestra (XO).
63+
64+
This tool is seamlessly integrated into Xen Orchestra and leverages the "warm migration" feature for efficient transitions. The process begins by exporting an initial snapshot of the VMware-based VM. Although this step can be time-consuming, it occurs without disrupting the VM's operation, ensuring transparency.
4565

46-
Once this comprehensive replication completes, the VM is shut down, and only the newly modified data blocks since the snapshot are exported. The VM is then activated on the XCP-ng platform, significantly minimizing downtime, a crucial benefit for large VMs. Furthermore, the migration process is largely automated, allowing for hands-off monitoring and execution. This entire procedure is fully automated for user convenience and efficiency.
66+
Once this comprehensive replication is complete, the VM is shut down, and only the newly modified data blocks since the snapshot are exported. The VM is then activated on the XCP-ng platform, significantly minimizing downtimea crucial benefit for large VMs. Furthermore, the migration process is largely automated, allowing for hands-off monitoring and execution. This entire procedure is fully automated for user convenience and efficiency.
4767

4868
:::tip
49-
This method doesn't require any direct access to the VMware storage, only an HTTP access to the ESXi API. This is pretty powerful, allowing you to migrate everything remotely from one Xen Orchestra.
69+
This method doesn't require any direct access to the VMware storage, only an HTTP access to the ESXi API. This is pretty powerful, allowing you to migrate everything remotely from one Xen Orchestra instance.
5070
:::
5171

5272
#### How it works
@@ -69,6 +89,22 @@ After the transfer, the VM on XCP-ng side is started:
6989

7090
This process is fully automated, without any human intervention after it starts on step 1.
7191

92+
#### Storage types
93+
:::warning
94+
95+
- **Raw disks:** Raw disks are not supported.
96+
- **VSAN:**
97+
- When migrating from a VSAN, make sure your remote has enough storage capacity to accommodate the largest VM you plan to import. The VM will be stopped before migration begins, and the process may be slow.
98+
- In this case, the network path is: VSAN → vSphere → Host running XOA → Remote → Host running XOA → Host with target storage → Target storage
99+
- **VMFS datastores:**
100+
- Warm migration is reported to work in most cases with VMFS5. If it doesn't work, try migrating the VM while it is stopped.
101+
- In this case, the network path is: VMFS storage → ESXi → Host running XOA → Host with target storage → Target storage
102+
- **NFS datastores:** When migrating from NFSdatastores (such as NFSDatastoreEsxi):\
103+
- Create a corresponding NFS remote in Xen Orchestra named `[VmWare] NFSDatastoreEsxi`. If not, it will fall back to the VMFS process.
104+
- Warm migration is reported to work in all cases.
105+
- In this case, the network path is: NFS remote → Host running XOA → Host with target storage → Target storage
106+
:::
107+
72108
#### From the XO UI
73109

74110
In your Xen Orchestra UI, go to the main menu on the left, on **Import** click **From VMware**:
@@ -104,12 +140,14 @@ Now, you can see the transfer progress in the **Task** view of the Xen Orchestra
104140

105141
### OVA
106142

107-
You can also export an OVA from VMware and import an OVA into Xen Orchestra.
143+
You can export an OVA from VMware and import an OVA into Xen Orchestra.
108144

109-
An OVA is a big, single file using the standard Open Virtualization Format. The OVA contains an XML describing the metadata (VM name, description, etc.) and your disks in the VMDK format.
145+
An OVA is a large, single file that uses the standard Open Virtualization Format. It contains an XML file describing the metadata (such as VM name and description) and your disks in VMDK format.
110146

111147
:::tip
112-
To skip Windows activation if the system was already activated, collect info about the network cards used in the Windows VM (ipconfig /all) and use the same MAC address(es) when creating interfaces in XCP-ng.
148+
- Before starting the migration, make sure to stop the VM on the VMware side.
149+
- To skip Windows activation if the system was already activated, gather information about the network cards used in the Windows VM (using `ipconfig /all`) and use the same MAC address(es) when creating interfaces in XCP-ng.
150+
113151
:::
114152

115153
:::warning
@@ -129,6 +167,35 @@ The fix for this is installing some xen drivers *before* exporting the VM from V
129167

130168
[See here](https://unix.stackexchange.com/questions/278385/boot-problem-in-linux/496037#496037) for more details. Once the imported VM is properly booted, remove any VMware related tooling and be sure to install [Xen guest tools](../../vms).
131169

170+
### VMDK
171+
172+
You can also export Virtual Machine Disks (VMDK). VMDK is a file format that describes containers for virtual hard disk drives to be used in virtual machines like VMware Workstation.
173+
174+
There are two methods to export VMDKs:
175+
176+
#### Method 1: Export without conversion
177+
178+
1. Stop the VM on the VMware side.
179+
2. Export each disk as a VMDK file.
180+
3. Create a diskless VM in Xen Orchestra.
181+
4. Import the disks using the **Import → Disk** menu in Xen Orchestra.
182+
5. Attach the disks to the VM and start it.
183+
184+
#### Method 2: Export with conversion
185+
186+
:::warning
187+
188+
Snapshot migration is slow due to the huge differences between VMDK and VHD file formats. Limit the number of snapshots to the minimum.
189+
190+
:::
191+
192+
1. Stop the VM on the VMware side.
193+
2. Export each disk as a VMDK file.
194+
3. Convert the VMDK files to the VHD format, using the command: `qemu-img convert -f vmdk -O vpc source.vmdk destination.vhd`.
195+
4. Create a diskless VM in Xen Orchestra.
196+
5. Import the disks using the **Import → Disk** menu in XO.
197+
6. Attach the disk to the VM and start it.
198+
132199
### CloneZilla
133200

134201
An alternative to using OVA.

0 commit comments

Comments
 (0)