๐Ÿ” Restarting My Active Directory Lab 1.0 After a Critical YAML Failure

Over the past few weeks, Iโ€™d been building out Active Directory Lab 1.0, modeled on MYFDIRโ€™s tutorial, using VirtualBox to simulate a real-world network environment for cybersecurity practice.

โœ… Progress Before the Breakdown

I successfully completed the first two parts of the lab:

  • Installed Windows Server 2019 as DC1 and promoted it to domain controller for adlab.local
  • Joined a Windows 10 VM to the domain and created basic user accounts
  • Created Organizational Units (OUs) and applied simple Group Policy Objects (GPOs)
  • Verified basic domain login and ping connectivity between machines

Everything was working as expected โ€” until I attempted to add a Ubuntu Server 22.04 VM to host Splunk.


๐Ÿงจ The Failure: Irrecoverable YAML Configuration Error

While configuring Ubuntuโ€™s network settings using netplan, I edited the 00-installer-config.yaml file to assign a static IP and point DNS to the domain controller.

A single spacing or indentation error in YAML broke the config, and the server lost DNS and network access.

Despite hours of troubleshooting, I could not recover:

  • I attempted to validate and reformat the YAML multiple times
  • Tried every fix I could find using ChatGPT, GitHub Copilot, and even YAML linters
  • Restarted networking, edited boot files, changed adapter modes โ€” nothing worked

Eventually, the Splunk server became unrecoverable.


๐Ÿงน Full Reset: Nuking the Environment

At that point, I made the decision to start over completely.

  • ๐Ÿ”ป Uninstalled Oracle VirtualBox
  • ๐Ÿ—‘๏ธ Deleted all VMs and ISO files (Windows Server, Windows 10, Ubuntu)
  • ๐Ÿงผ Cleared all .vbox configs and network remnants

This reset cleared out the broken foundation and allowed me to rebuild with stability in mind.


๐Ÿ“š Lessons Learned

  • YAML is brittle โ€” one indent can break the entire network config
  • Snapshots are not optional โ€” I now take one before any system change
  • Logs and backup configs matter โ€” keeping clean copies of YAML and system files will save hours
  • Sometimes a hard reset is the right call โ€” no sense troubleshooting a broken base for days

๐Ÿ”„ Next Steps

Iโ€™m now restarting AD Lab 1.0 with a clean slate:

  • Reinstalling VirtualBox + Extension Pack
  • Downloading fresh ISOs
  • Rebuilding the domain controller and client
  • Taking snapshots at key milestones
  • Planning to retry the Splunk server โ€” but with caution, backups, and version control

๐Ÿ”— View the updated lab repository on GitHub
๐Ÿงช Explore my full cybersecurity portfolio