Restarting Active Directory Lab 1.0 After a Critical YAML Failure
Published on July 03, 2025
๐ 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 foradlab.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