You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced/addons/vmimport.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,14 +24,15 @@ Currently, the following source providers are supported:
24
24
* VMware
25
25
* OpenStack
26
26
* Open Virtual Appliance (OVA)
27
+
* KVM
27
28
28
29
## API
29
30
The vm-import-controller introduces two CRDs.
30
31
31
32
### Sources
32
33
Sources allow users to define valid source clusters.
33
34
34
-
For example:
35
+
#### VMware
35
36
36
37
```yaml
37
38
apiVersion: migration.harvesterhci.io/v1beta1
@@ -70,6 +71,8 @@ NAME STATUS
70
71
vcsim clusterReady
71
72
```
72
73
74
+
#### OpenStack
75
+
73
76
For OpenStack-based source clusters, an example definition is as follows:
74
77
75
78
```yaml
@@ -110,6 +113,8 @@ NAME STATUS
110
113
devstack clusterReady
111
114
```
112
115
116
+
#### Open Virtual Appliance
117
+
113
118
For OVA-based sources, an example definition is as follows:
114
119
115
120
```yaml
@@ -150,6 +155,40 @@ NAME STATUS
150
155
example clusterReady
151
156
```
152
157
158
+
#### KVM
159
+
160
+
For KVM-based sources, an example definition is as follows:
161
+
162
+
```yaml
163
+
apiVersion: migration.harvesterhci.io/v1beta1
164
+
kind: KVMSource
165
+
metadata:
166
+
name: kvm
167
+
namespace: default
168
+
spec:
169
+
libvirtURI: "qemu+ssh://192.168.0.1/system"
170
+
credentials:
171
+
name: example-kvm-credentials
172
+
namespace: default
173
+
```
174
+
175
+
Check out the libvirt documentation on how to configure the [libvirtURI](https://libvirt.org/uri.html) field.
176
+
When configuring the secret, you can include the authentication credentials that are used to log into the source system via SSH.
177
+
178
+
```yaml
179
+
apiVersion: v1
180
+
kind: Secret
181
+
metadata:
182
+
name: example-kvm-credentials
183
+
namespace: default
184
+
stringData:
185
+
"username": "user"
186
+
"password": "password"
187
+
"privateKey": "pem-encoded-private-key"
188
+
```
189
+
190
+
As part of the reconciliation process, the controller issues a `virsh` command on the specified URI to confirm its validity before marking the source as ready.
191
+
153
192
### VirtualMachineImport
154
193
The VirtualMachineImport CRD provides a way for users to define a source VM and map to the actual source cluster to perform VM export/import.
0 commit comments