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: documentation/modules/proc_adding-source-provider.adoc
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,10 +44,8 @@ endif::[]
44
44
ifdef::hyperv[]
45
45
= Adding a Microsoft Hyper-V source provider
46
46
47
-
// SME REVIEW NEEDED: Should we add Prerequisites for SMB share setup and VM export process?
48
-
49
47
[role="_abstract"]
50
-
You can add a Microsoft Hyper-V source provider by using the {ocp} web console. Hyper-V virtual machines are exported to an SMB share for migration.
48
+
You can add a Microsoft Hyper-V source provider by using the {ocp} web console. The provider uses WinRM to connect to the Hyper-V host and reads VM disk files from a configured SMB share.
51
49
52
50
[NOTE]
53
51
====
@@ -286,8 +284,8 @@ If you have Administrator privileges, you can see all projects, otherwise, you c
286
284
.. *Provider details*
287
285
288
286
* *Provider resource name*: Name of the source provider.
289
-
// SME REVIEW NEEDED: Does the UI safely escape backslashes, or should we recommend only forward-slash format?
290
-
* *URL*: Path to the SMB share containing the Hyper-V exported VMs. For example, `//192.168.122.115/VMShare` or `\\192.168.122.115\VMShare`.
287
+
* *URL*: The Hyper-V host address for WinRM connectivity, for example, `192.168.122.115` or `hyperv-host.example.com`.
288
+
* *SMB share path*: Path to the SMB share that contains the VM disk files, for example, `//192.168.122.115/VMShare`.
291
289
+
292
290
The SMB share must be accessible from both the Hyper-V host and the {ocp-short} cluster.
Copy file name to clipboardExpand all lines: documentation/modules/proc_migrating-vms-cli-hyperv.adoc
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,9 +47,8 @@ where:
47
47
`ownerReferences`::
48
48
Optional section for the provider's `name` and `uid`.
49
49
+
50
-
// SME REVIEW NEEDED: Do unquoted backslashes break YAML parsing? Should we recommend only forward-slash format?
51
50
`<smb_server_path>`::
52
-
The SMB share path in `//server/share` or `\\server\share` format (for example, `//192.168.122.115/VMShare`).
51
+
The SMB share path in `//server/share` format, for example, `//192.168.122.115/VMShare`. Use forward slashes to avoid YAML parsing issues with unquoted backslashes.
53
52
+
54
53
`<smb_username>`::
55
54
The username for the SMB share (for example, `Administrator` or `DOMAIN\username`).
Copy file name to clipboardExpand all lines: documentation/modules/ref_hyperv-prerequisites.adoc
+62-19Lines changed: 62 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,30 +6,22 @@
6
6
[id="ref_hyperv-prerequisites_{context}"]
7
7
= Microsoft Hyper-V prerequisites
8
8
9
-
// SME REVIEW NEEDED: This file needs technical details verified and added:
10
-
// - How are VMs exported to the SMB share? (manual/automatic)
11
-
// - Does MTV connect via WinRM or only SMB? Why no WinRM credentials in UI?
12
-
// - What are the specific WinRM configuration commands and settings?
13
-
// - What service account permissions are required? (Local Admin, Hyper-V Admin, or specific privileges)
14
-
// - What are the specific SMB share permissions and configuration details?
15
-
// - Are there additional network requirements or firewall rules beyond ports 5986 and 445?
16
-
// - What are the scope/limitations? (Clustered Hyper-V? CSV? Gen1 vs Gen2 VMs? SCVMM?)
17
-
18
9
[role="_abstract"]
19
-
To migrate virtual machines from Microsoft Hyper-V to {virt}, you must configure an SMB share for VM exports, enable WinRM on the Hyper-V host, and ensure network connectivity. Review these requirements before creating a provider.
10
+
To migrate virtual machines from Microsoft Hyper-V to {virt}, you must configure WinRM on the Hyper-V host, expose VM disk files on an SMB share, and ensure network connectivity. Review these requirements before creating a provider.
20
11
21
12
[NOTE]
22
13
====
23
14
{project-short} supports only cold migration from Microsoft Hyper-V. Warm migration is not available.
24
15
====
25
16
26
-
The following prerequisites apply to Microsoft Hyper-V migrations:
17
+
== Prerequisites
27
18
28
19
* You must use a xref:ref_compatibility-guidelines_{context}[compatible version] of Windows Server with Hyper-V.
29
20
* You must configure Windows Remote Management (WinRM) on the Hyper-V host for HTTPS communication.
30
21
* An SMB share must be available and accessible from both the Hyper-V host and the {ocp-short} cluster.
31
-
* The service account used for authentication must have appropriate permissions to access the SMB share and manage Hyper-V virtual machines.
32
-
* The target namespace must have network connectivity to the SMB share and the Hyper-V WinRM endpoint. NetworkPolicies that block egress connections from the target namespace prevent migration from succeeding.
22
+
* VM disk files (VHD or VHDX) must be exposed on the SMB share before migration. {project-short} does not export VMs automatically.
23
+
* The service account must be a member of the Hyper-V Administrators group and have read access to the SMB share. Local Administrator is the simplest option.
24
+
* The target namespace must have network connectivity to both the SMB share and the Hyper-V WinRM endpoint. NetworkPolicies that block egress connections from the target namespace prevent migration from succeeding.
33
25
* The VM operating system must be certified and supported for use as a link:https://access.redhat.com/articles/973163#ocpvirt[guest operating system with {virt}] _and_ for link:https://access.redhat.com/articles/1351473[conversion to KVM with `virt-v2v`].
34
26
* A default `MigController` instance must be present. This instance is required for the Storage Migration option in the {ocp} web console in certain {ocp-name} versions. For steps to create the default `MigController` instance, see link:https://access.redhat.com/solutions/7136894[Storage Migration Option Missing for Virtual Machines in OpenShift 4.20 Despite Availability in 4.18].
35
27
@@ -42,16 +34,67 @@ The following network ports must be accessible for Microsoft Hyper-V migrations:
42
34
.Network ports
43
35
|===
44
36
|Port |Protocol |Description
45
-
|5986 |TCP |WinRM HTTPS (default)
37
+
|5986 |TCP |WinRM HTTPS
46
38
|445 |TCP |SMB file sharing
47
39
|===
48
40
41
+
[id="ref_hyperv-winrm-configuration_{context}"]
42
+
== WinRM configuration
43
+
44
+
{project-short} connects to the Hyper-V host by using WinRM to discover VM metadata (disks, NICs, and other properties). You must configure WinRM for HTTPS communication on the Hyper-V host before creating the provider.
45
+
46
+
Quick configuration::
47
+
Run the following command on the Windows host to configure WinRM with HTTPS:
48
+
+
49
+
[source,terminal]
50
+
----
51
+
winrm quickconfig -transport:https
52
+
----
53
+
54
+
Manual configuration::
55
+
Alternatively, configure WinRM manually by running the following PowerShell commands on the Windows host:
Replace `<hostname>` with your Hyper-V host FQDN and `<thumbprint>` with the certificate thumbprint from the `New-SelfSignedCertificate` command output.
71
+
49
72
[id="ref_hyperv-smb-share_{context}"]
50
73
== SMB share requirements
51
74
52
-
The SMB share must be configured with the following requirements:
75
+
The SMB share provides access to VM disk files during migration. {project-short} reads VM disk files from the SMB share by using the SMB CSI driver.
76
+
77
+
* The share must be accessible by using the Linux SMB path format (`//server/share`).
78
+
* The service account credentials must have read access to the SMB share. Write access is not required.
79
+
* VM disk files (VHD or VHDX) must be accessible at the share path before migration begins.
80
+
* The share must have sufficient storage space to hold the VM disk files.
81
+
82
+
[id="ref_hyperv-credentials_{context}"]
83
+
== Credential requirements
84
+
85
+
The provider credentials are used for both WinRM connectivity and SMB share access by default. Dedicated SMB credentials can be specified in the CLI if the SMB share uses different authentication.
86
+
87
+
* The service account must be a member of the Hyper-V Administrators group at minimum.
88
+
* The service account must have read access to the SMB share.
89
+
* Local Administrator is the simplest option as it provides all necessary permissions.
90
+
91
+
[id="ref_hyperv-scope-limitations_{context}"]
92
+
== Scope and limitations
53
93
54
-
* The share must be accessible using either Windows UNC path format (`\\server\share`) or Linux SMB path format (`//server/share`).
55
-
* The service account credentials must have read and write access to the SMB share.
56
-
* The share must have sufficient storage space to hold the exported Hyper-V virtual machine files.
57
-
* The Hyper-V host must be able to export virtual machines to the share.
94
+
* Generation 1 and Generation 2 VMs are both supported.
95
+
* VHD and VHDX disk formats are both supported and automatically detected by file extension.
96
+
* Cold migration only. Warm migration is not available.
97
+
* VMs with checkpoints (snapshots) are flagged and may not migrate successfully.
98
+
* System Center Virtual Machine Manager (SCVMM) integration is not supported.
99
+
* Clustered Hyper-V environments are not supported.
100
+
* Cluster Shared Volumes (CSV) are not explicitly handled. Only disks located on the SMB share are usable.
0 commit comments