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
The account used to connect to the Windows virtual machine must have permissions to run the script with administrator permissions.
21
+
20
22
Role Variables
21
23
--------------
22
24
@@ -44,4 +46,20 @@ configured and will try to install the agent.
44
46
ansible_winrm_server_cert_validation: ignore
45
47
roles:
46
48
- role: fdupont_redhat.ims_premigration_windows
47
-
```
49
+
```
50
+
51
+
Pre-Migration Script and virt-v2v First Boot
52
+
------------------------------
53
+
54
+
This section provides a primer on how the script is used as part of the migration process.
55
+
56
+
The pre-migration script `pre-migrate.ps1` captures
57
+
information about the VMs network and disk configuration and generates a powershell script to reapply the configuration after migration to OCP. The generated script is written to following path on the VM's system drive `\Program Files\Guestfs\Firstboot\scripts\`.
58
+
59
+
After the VM has been migrated to OCP virt-v2v runs a series of tasks as part of a process called `first boot`. Part of process is executing scripts stored in above mentioned scripts directory.
60
+
61
+
Post migration hooks are not required for scripts run as part of the first boot process.
62
+
63
+
**NOTE:** The first boot directory path is hard coded in virt-v2v, do not change the script paths in the PowerShell file.
64
+
65
+
**NOTE:** The pre-migration script makes no configuration changes to the VM, only the generated script makes configuration changes.
0 commit comments