Skip to content

Commit 7424af1

Browse files
committed
docs(ins): update doc
1 parent 9f1ce28 commit 7424af1

File tree

1 file changed

+71
-52
lines changed

1 file changed

+71
-52
lines changed

pages/instances/reference-content/migrating-vms-vmware-scaleway.mdx

Lines changed: 71 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -38,43 +38,46 @@ Refer to [Scaleway’s Instance documentation](https://www.scaleway.com/en/docs/
3838

3939
## Glossary
4040

41-
- **OVA/OVF**: Virtual machine image formats used by VMware.
42-
- **QCOW2**: Disk image format used by Scaleway’s KVM-based hypervisor.
43-
- **QEMU Guest Agent**: Facilitates communication between the guest OS and Scaleway’s hypervisor.
44-
- **VMDK**: Virtual disk image format used by VMware.
45-
- **VMX**: Configuration file specifying VM characteristics (e.g., CPU, RAM, volumes, network interfaces).
46-
- **VirtIO drivers**: Enable the guest OS to access Scaleway’s block storage and network devices.
47-
- **virt-v2v**: A tool from the [Libguestfs project](https://libguestfs.org/) that converts VMs between hypervisors, transforming VMDK to QCOW2, installing VirtIO drivers, and removing VMware Tools.
48-
49-
## Validating the inventory of machines to migrate
50-
51-
Identify the virtual machines (VMs) to migrate on your VMware platform:
52-
53-
- Disk configuration (number, size, type)
54-
<Message type="tip">
55-
If multiple disks are present, follow the same steps to create individual snapshots and then combine them into a single Scaleway image.
56-
For more detailed instructions on creating an image from multiple volumes, refer to documentation on [how to create an image from a snapshot](/instances/how-to/create-image-from-snapshot/).
57-
</Message>
58-
- Network configuration (number of NICs, type)
59-
<Message type="tip">
60-
If multiple NICs are needed, several Private Networks can be added to the Instance later.
61-
</Message>
62-
- Boot type (BIOS or UEFI)
63-
<Message type="important">
64-
Only UEFI boot is compatible with Scaleway Instances
65-
</Message>
66-
- For Windows VMs, a Scaleway POP2-WIN Instance type is required for licensing and compatibility.
67-
68-
## Migration Process
69-
70-
### Identify VMs to migrate
71-
72-
1. Review the VMs in the VMware environment to determine which ones to migrate.
73-
2. Ensure the VMs boot with UEFI (not Legacy BIOS), as Scaleway Instances require UEFI.
74-
3. Match each VM’s resource requirements (CPU, RAM, storage) to an appropriate Scaleway Instance type:
75-
- For Windows VMs, use a POP2-WIN Instance (e.g., POP2-8C-32G-WIN).
76-
- For RHEL VMs, use a General-Purpose Instance (e.g., POP2-8C-32G).
77-
4. Refer to [Validating the inventory of machines to migrate](#validating-the-inventory-of-machines-to-migrate) for detailed guidance.
41+
| Term | Definition |
42+
|------|------------|
43+
| **OVA/OVF** | Virtual machine image formats used by VMware for exporting VMs. |
44+
| **QCOW2** | Disk image format used by Scaleway’s KVM-based hypervisor, optimized for cloud environments. |
45+
| **QEMU Guest Agent** | A service enabling communication between the guest OS and Scaleway’s hypervisor for tasks like shutdown or status reporting. |
46+
| **VMDK** | VMware’s virtual disk image format, which must be converted to QCOW2 for Scaleway. |
47+
| **VMX** | VMware configuration file specifying VM characteristics (e.g., CPU, RAM, disks, network interfaces). |
48+
| **VirtIO Drivers** | Drivers allowing the guest OS to interact with Scaleway’s block storage and network devices. |
49+
| **virt-v2v** | A tool from the [Libguestfs project](https://libguestfs.org/) for converting VMs between hypervisors, including VMDK to QCOW2 conversion. |
50+
| **Hypervisor** | Software that manages virtual machines, such as VMware ESXi or Scaleway’s KVM-based system. |
51+
| **Block Storage** | Scaleway’s persistent storage for Instance disks, used for snapshots and volumes. |
52+
53+
54+
## Validating VMs to migrate
55+
56+
Review your VMware VMs to ensure compatibility with Scaleway Instances.
57+
58+
1. Identify VMs:
59+
- List VMs in your VMware environment via vCenter or ESXi console.
60+
- Note the operating system (Windows 2019/2022 or RHEL 9).
61+
2. Check the disk configuration:
62+
- Record the number, size, and type of disks (e.g., 1x 100 GB VMDK).
63+
<Message type="tip">For VMs with multiple disks, create individual snapshots and combine them into a single Scaleway image. Refer to the documentation on [how to create an image from a snapshot](/instances/how-to/create-image-from-snapshot/) for furher information.</Message>
64+
3. Verify the network configuration:
65+
- Note the number and type of network interfaces (NICs).
66+
<Message type="tip">
67+
Scaleway supports multiple NICs via Private Networks, configurable post-migration. See [Private Networks Quickstart](https://www.scaleway.com/en/docs/network/vpc/quickstart/).
68+
</Message>
69+
4. Confirm the boot type of the VM:
70+
- Ensure VMs use UEFI boot (check VMware settings under "Boot Options").
71+
<Message type="important">
72+
Legacy BIOS is not compatible with Scaleway Instances. Convert legacy BIOS VMs to UEFI in VMware if needed (refer to the official VMware documentation for more information).
73+
</Message>
74+
5. Match resources to the new Scaleway Instance:
75+
- Map VM resources (CPU, RAM, storage) to Scaleway Instance types:
76+
- Windows: Use POP2-WIN (e.g., POP2-8C-32G-WIN for 8 cores, 32 GB RAM).
77+
- RHEL: Use General-Purpose (e.g., POP2-8C-32G).
78+
- Refer to [Choosing the best Scaleway Instance type for your workload](/instances/reference-content/choosing-instance-type/) for additional information.
79+
80+
## Migration process
7881

7982
### Windows VM migration (single volume)
8083

@@ -90,16 +93,17 @@ This section outlines the migration of a Windows 2019 or 2022 VM with a single v
9093
3. Install the required migration tools:
9194

9295
```shell
96+
# Update package lists
9397
apt update
9498
apt -y install python3-pip virt-v2v libguestfs-tools unzip
95-
# Virtio drivers :
99+
# Download VirtIO drivers for Windows
96100
wget https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso
97101
mkdir -p /usr/share/virtio-win
98102
mount virtio-win.iso /usr/share/virtio-win
99-
# You will have the message : mount: /usr/share/virtio-win: WARNING: source write-protected, mounted read-only.
103+
# You will see the following message: mount: /usr/share/virtio-win: WARNING: source write-protected, mounted read-only.
100104
curl -L -o - "https://github.com/vmware/govmomi/releases/latest/download/govc_$(uname -s)_$(uname -m).tar.gz" | tar -C /usr/local/bin -xvzf - govc
101105
# Tool used to convert rpm packages:
102-
apt install -y rpm2cpio
106+
apt install -y rpm2cpio
103107
# Tool to run applications as Windows service
104108
wget -nd -O srvany.rpm https://kojipkgs.fedoraproject.org//packages/mingw-srvany/1.1/4.fc38/noarch/mingw32-srvany-1.1-4.fc38.noarch.rpm
105109
rpm2cpio srvany.rpm | cpio -idmv \
@@ -118,7 +122,8 @@ This section outlines the migration of a Windows 2019 or 2022 VM with a single v
118122
- Scaleway CLI: Run `scw init` and follow the prompts.
119123
- AWS CLI for Object Storage: Refer to [Using Object Storage with the AWS-CLI](https://www.scaleway.com/en/docs/storage/object/api-cli/object-storage-aws-cli/).
120124
- Adjust the `multipart_chunksize` in `~/.aws/config` for large file uploads (e.g., VM images).
121-
5. Optional: Configure govc for VMware (if downloading images directly):
125+
126+
5. Optional: Configure `govc` for VMware (if downloading images directly):
122127

123128
```shell
124129
export GOVC_PASSWORD=<VMware_password>
@@ -130,10 +135,10 @@ This section outlines the migration of a Windows 2019 or 2022 VM with a single v
130135
Example:
131136

132137
```shell
133-
export GOVC_PASSWORD=Scaleway00!
138+
export GOVC_PASSWORD=<my_secret_password>
134139
export GOVC_USERNAME=root
135140
export GOVC_INSECURE=1
136-
export GOVC_URL=195.154.91.156
141+
export GOVC_URL=195.154.xxx.yyy #A public IP of a VMWare ESXI server
137142
```
138143

139144
6. Create an Object Storage bucket to store the converted images.
@@ -178,7 +183,7 @@ This section outlines the migration of a Windows 2019 or 2022 VM with a single v
178183
</Message>
179184

180185

181-
Download and place the `set_if.ps1` script in `C:\Scaleway\` on the VM. This script configures static IP addresses to address DHCP limitations in Windows with /32 subnets. The script is available in [Scaleway’s migration repository](link to be provided) (https://github.com/orgs/scaleway/teams/sa/repositories).
186+
Download and place the `set_if.ps1` script in `C:\Scaleway\` on the VM. This script configures static IP addresses to address DHCP limitations in Windows with /32 subnets. The script is available in [Scaleway’s migration repository](https://github.com/orgs/scaleway/teams/sa/repositories).
182187

183188
#### Converting the VM on the converter Instance
184189

@@ -205,8 +210,11 @@ This section outlines the migration of a Windows 2019 or 2022 VM with a single v
205210
- Convert the `.vmdk` to `.qcow2`:
206211

207212
```shell
213+
# Convert VMDK to QCOW2 format for Scaleway compatibility
208214
qemu-img convert -p -Oqcow2 vmware-to-migrate/vmware-to-migrate-1.vmdk vmware-to-migrate/vmware-to-migrate.qcow2
215+
# Create output directory
209216
mkdir out
217+
# Run virt-v2v to install VirtIO drivers and prepare the image
210218
virt-v2v -i disk vmware-to-migrate/vmware-to-migrate.qcow2 -block-driver virtio-scsi -o qemu -os ./out
211219
```
212220

@@ -262,14 +270,17 @@ This section outlines the migration of a Windows 2019 or 2022 VM with a single v
262270
```shell
263271
-m 16384 -smp 8
264272
```
273+
<Message type="important">
274+
Ensure that the RAM and CPU values you choose do not exceed the available resources of the converter instance.
275+
</Message>
265276
266277
- Start the VM:
267278
268279
```shell
269280
./out/vmware-to-migrate.sh
270281
```
271282
272-
- Access the VM at `http://<converter_instance_public_ip>:6080/vnc.html`.
283+
- With the internet browser of your computer, access the VM at `http://<converter_instance_public_ip>:6080/vnc.html`.
273284
- Verify the QEMU Guest Agent is installed (check `C:\` for the package). If missing, install it manually.
274285
- Remove VMware Tools if not already done.
275286
@@ -282,10 +293,16 @@ This section outlines the migration of a Windows 2019 or 2022 VM with a single v
282293
283294
#### Creating snapshot, Block Volume, and Instance
284295
296+
<Message type="important">
297+
If you could not run the the powershell script (`script-init.ps1`) before, you must run it now.
298+
</Message>
299+
285300
1. Convert and Upload the image:
286301
287-
```shell
302+
```
303+
# Convert final image to QCOW2
288304
qemu-img convert -p -Oqcow2 out/vmware-to-migrate-sda out/vmware-to-migrate.qcow2
305+
# Upload to Object Storage
289306
aws s3 cp out/vmware-to-migrate.qcow2 s3://<bucket_name>/vmware-to-migrate.qcow2
290307
```
291308
@@ -336,28 +353,30 @@ This section outlines the migration of an RHEL 9 VM with a single volume to a Sc
336353
3. Install migration tools:
337354
338355
```shell
356+
# Install unzip, Scaleway CLI and AWS CLI
339357
yum install unzip
340358
curl -s https://raw.githubusercontent.com/scaleway/scaleway-cli/master/scripts/get.sh | sh
341359
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
342360
unzip awscliv2.zip
343361
sudo ./aws/install
344362
rm -rf aws awscliv2.zip
363+
# Install conversion tools
345364
yum install python3-libguestfs virt-v2v
346365
```
347366
348367
4. Configure credentials:
349368
- Scaleway CLI: Run `scw init`.
350369
- AWS CLI for Object Storage: Refer to [Using Object Storage with the AWS-CLI](/object-storage/api-cli/object-storage-aws-cli/).
351370
- Adjust `multipart_chunksize` in `~/.aws/config` for large file uploads.
352-
5. Download migration scripts:
371+
5. Download migration scripts from Scaleway's public [GitHub repository](https://github.com/orgs/scaleway/teams/sa/repositories):
353372
354373
```shell
355-
git clone https://github.com/fg-scw/migration-scw-rhel
374+
git clone https://github.com/orgs/scaleway/teams/sa/repositories
356375
```
357376
358-
6. Create an Object Storage Bucket.
377+
6. [Create](/object-storage/how-to/create-a-bucket/) an Object Storage bucket.
359378
360-
#### Converting the VM on the Converter Instance
379+
#### Converting the VM on the converter Instance
361380
362381
1. Upload or export the VM image:
363382
- Use `govc` (as shown in the Windows section) or upload the `.ova`/`.vmdk` file manually.
@@ -421,14 +440,14 @@ If the VM has multiple snapshots:
421440
422441
Refer to [Scaleway CLI Documentation](https://cli.scaleway.com/instance/#create-an-instance-image).
423442
424-
## Additional Tips
443+
## Additional tips
425444
426445
- Uploading an OVA to ESXi:
427446
428447
```shell
429448
govc import.ova <image_name>.ova
430449
```
431450
432-
- ESXi Console limitations: The ESXi free version’s remote console does not support copy-paste. Use RDP or SSH for easier interaction.
451+
- ESXi Console: If you do not succeed to enable copy-paste on the ESXI console, use RDP or SSH for easier interaction.
433452
- Verifying migration: After migration, verify that the QEMU Guest Agent is installed and VMware Tools are removed. Re-run migration scripts or manual steps if necessary.
434453
- Private Network configuration: For enhanced security, configure [Private Networks](/vpc/quickstart/) and use a [Public Gateway](/public-gateways/quickstart/) for external access.

0 commit comments

Comments
 (0)