Milestone 12 ‐ HyperV ‐ Linked Clones and Automation - lpcyber1/SYS350 GitHub Wiki

Parent Disk

  • Downloaded iso from class web server, created VM and ran the base VM sealer script from Devin's github

image

  • Found the VHD of my base VM and set the read only permissions

image

Child Disk

  • Created a new hard disk for sonofubuntu to use with the following options

image

image

image

image

  • Went on to create sonofubuntu VM and attached the created hard disk to it

image

Automation

  • Downloaded iso for Rocky from class web server

image

  • Created base VM for it, and ran sealer script

image

image

Deliverables

Deliverable 1. Hunt down the VHD file associated with your Ubuntu Base Image and give that file read only permissions. Provide a screenshot similar to the one below.

image

Deliverable 2. Provide a screenshot similar to the one below that shows ‘sonofubuntu’ running as well as the very tiny difference disk attributes similar to the screenshot below.

image

Deliverable 3. stop sonofubuntu

image

Deliverable 4. take a checkpoint of sonofubuntu called snapshot1

image

Deliverable 5. start sonofubuntu

image

Deliverable 6. switch sonofubuntu to another network

image

Deliverable 7. Create a new Base VM using an OS that is not Ubuntu. Research & write a script to automate the creation of a Linked Clone of your new OS base image using Powershell. Provide a screenshot of your successful script/command(s) and a screenshot of your running OS and the virtual properties of your child disk.

image

image

image

image

Reflection

  • I would say that I like vCenter the most for sure, but Pyvmomi I am not a huge fan of. I liked Powershell the most with how straight forward all of the commands were with the HyperV module. Scripting the creating of a linked clone was also way easier to do. The only part about it that is troubling is creating the differencing disk that the VM will use.