|
5 | 5 | h1: Migrating VMware virtual machines to Scaleway Instances |
6 | 6 | paragraph: Find out how to migrate virtual VMware machines to Scaleway Instances. |
7 | 7 | dates: |
8 | | - validation: 2025-04-29 |
9 | | - posted: 2024-04-29 |
| 8 | + validation: 2025-05-14 |
| 9 | + posted: 2025-05-14 |
10 | 10 | categories: |
11 | 11 | - compute |
12 | 12 | tags: instance type production vmware esxi migration |
@@ -101,35 +101,36 @@ qemu-img convert -O qcow2 <vm_name>.vmdk <vm_name>.qcow2 |
101 | 101 | Make any changes (e.g., install cloud-init, add VirtIO drivers, remove VMware tools). |
102 | 102 |
|
103 | 103 | 2. Unmount the file: |
104 | | - |
105 | | -```bash |
106 | | -qemu-nbd -d /dev/nbd0 |
107 | | -``` |
| 104 | + ```bash |
| 105 | + qemu-nbd -d /dev/nbd0 |
| 106 | + ``` |
108 | 107 |
|
109 | 108 | ## Uploading the QCOW2 image to Scaleway Object Storage |
110 | 109 |
|
111 | 110 | Upload the converted disk: |
112 | | - |
113 | | -```bash |
114 | | -aws s3 cp <vm_name>.qcow2 s3://<bucket_name>/ |
115 | | -``` |
| 111 | + ```bash |
| 112 | + aws s3 cp <vm_name>.qcow2 s3://<bucket_name>/ |
| 113 | + ``` |
116 | 114 |
|
117 | 115 | ## Importing the QCOW2 image from Object Storage into Scaleway as a SBS snaphot |
118 | 116 |
|
119 | 117 | 1. Import the image into a new snapshot: |
120 | | - |
121 | | -```bash |
122 | | -scw block snapshot import-from-object-storage bucket=<my_bucket> key=<my-qcow2-file-name.qcow2> name=<my-imported-snapshot> size=<size-in-GB> |
123 | | -``` |
| 118 | + ```bash |
| 119 | + scw block snapshot import-from-object-storage bucket=<my_bucket> key=<my-qcow2-file-name.qcow2> name=<my-imported-snapshot> size=<size-in-GB> |
| 120 | + ``` |
124 | 121 | 2 . Create a Scaleway image from the snapshot: |
125 | | - |
126 | | -```bash |
127 | | -scw instance image create snapshot-id=<snapshot-id> arch=x86_64 |
128 | | -``` |
| 122 | + ```bash |
| 123 | + scw instance image create snapshot-id=<snapshot-uuid> arch=x86_64 |
| 124 | + ``` |
129 | 125 |
|
130 | 126 | 3. Create the server from the image: |
| 127 | + ```bash |
| 128 | + scw instance server create image=<image-uuid> type=<commercial-type> |
| 129 | + ``` |
131 | 130 |
|
132 | | -```bash |
133 | | -scw instance server create image=<image-id> type=<commercial-type> |
134 | | - |
| 131 | +### Adding private NICs to the Instance (otional) |
135 | 132 |
|
| 133 | +Create a private NIC for the Instance, allowing it to connect to an [existing Private Network](/vpc/quickstart/#how-to-create-a-private-network) |
| 134 | + ```bash |
| 135 | + scw instance private-nic create server-id=<server-uuid> private-network-id=<private-network-uuid> ipam-ip-ids.{0}=<ipam-ip-uuid> |
| 136 | + ``` |
0 commit comments