Skip to content

Commit

Permalink
Update VM hot-add and backup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaaano committed Dec 16, 2024
1 parent dc3623b commit 635e519
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion content/modules/ROOT/pages/05-vm-hot-add.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ cd collections/ansible_collections/redhatone/vm_management/roles/vm_management/t
touch hot_plug.yml
----
+
. Open the `hot_plug.yml` File in Your Favorite Editor and Add the Following Tasks:
. Open the `hot_plug.yml` File in VSCode and add the either of the following tasks based on the VM configuration:

=== Using the `instance_type` (Recommended)

Expand Down Expand Up @@ -183,6 +183,7 @@ reusability and standardization. Understanding both methods equips you with the
knowledge to handle scenarios where instance types may not be available.

Through this lab, you have learned how to:

- Identify whether a VM uses an instance type or a template.
- Use the *instance type* method to dynamically add resources to VMs.
- Understand the limitations and applications of the legacy method.
Expand Down
4 changes: 3 additions & 1 deletion content/modules/ROOT/pages/06-vm-backup.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ This is a fairly complex task, so let's break it down:

A task file beginning with an underscore (`_`) indicates that it is included within another task file. While still within the _tasks_ folder, perform the following steps:

. Create the `snapshot_vms.yml` File:
. Create the `_snapshot_vm.yml` File:
+
----
touch _snapshot_vm.yml
Expand Down Expand Up @@ -373,6 +373,8 @@ One key difference during the creation of the `VirtualMachineRestore` using the
`vm_snapshots: <snapshot_name>`
|===

WARNING: Replace <snapshot_name> with the name of your snapthot created previously.

Once the Job completes successfully, confirm the restoration of the Snapshot was applied to the `rhel9-vm1` by navigating to the OpenShift UI, Virtualization -> VirtualMachines within the `vms-aap-day2` project.

Select the `rhel9-vm1` instance and then select the *Snapshots* tab. Locate the Snapshot created previously and notice the date and time within the _Last restored_ column indicating that the Snapshot was successfully restored against the Virtual Machine instance.
Expand Down

0 comments on commit 635e519

Please sign in to comment.