What is your DEP test environment look like?

NealIV
Contributor

I am just starting to use DEP in our environment and I need a good test setup. Right now I have one mac that our vendor setup for me to go into our DEP environment.

After I enroll this test device do I have to wipe it clean before re-enrolling an testing? I want to test polices, preferences, self-service etc.. and to keep testing until its ready for production.

How do you do it?

Thanks

2 ACCEPTED SOLUTIONS

rderewianko
Valued Contributor II

I run DEP testing in a VM. With a few snapshots, I can rapidly test my configs. The only catch is you need a real sn.
More Info Here

View solution in original post

rderewianko
Valued Contributor II

If you read the post it explains how to build the vm for testing with DEP ;)

Basically you spoof the serial # of your VM with a serial # from actual hardware.

View solution in original post

10 REPLIES 10

B-35405
Contributor

Run this on your DEP testing computer, it'll bring it back to a state that will kick off DEP on reboot. Also, VMs will be your friend as well


!/bin/sh

Remove .AppleSetupDone Allows the Setup Assistant to show again

sudo rm /var/db/.AppleSetupDone

Remove JAMF Binaries and Software

sudo jamf removeFramework

Remove any lasting Configuration Profiles

sudo rm -rf /var/db/ConfigurationProfiles

Remove apds.keychain This is on recommendation of Apple. Seems to have some push cert related data in it

sudo rm /Library/Keychains/apsd.keychain

rderewianko
Valued Contributor II

I run DEP testing in a VM. With a few snapshots, I can rapidly test my configs. The only catch is you need a real sn.
More Info Here

NealIV
Contributor

So how do you get the VM's into your Apple Deployment environment so jamf can see it as a Mac ready for DEP enrollment?

rderewianko
Valued Contributor II

If you read the post it explains how to build the vm for testing with DEP ;)

Basically you spoof the serial # of your VM with a serial # from actual hardware.

sepiemoini
Contributor III
Contributor III

+1 @rderewianko. Doing the same thing here!

NealIV
Contributor

I tried and got this error 98e0c5ec391644079a60b7910a6a7983

davidi4
Contributor

Does this process still work with Jamf 10.21 and Catalina 10.15.4? I do not trigger Remote Management in a VMware VM, but the physical machine with the same serial does trigger.

sdagley
Esteemed Contributor II

@davidi4 The serial numberand model number must be correct, and you have to set them before doing the macOS install on the VM. See this thread for more discussion: Enrolling OSX virtual machine into JSS - Issues

davidi4
Contributor

There is additional information in Traveling Tech Guy's article, following his steps actually worked for me - I believe the addition of the reflectHost = FALSE lines were key:

serialNumber.reflectHost = "FALSE"
serialNumber = "C02NXXXXXXX"
hw.model.reflectHost = "FALSE"
hw.model = "MacXXXXX#,1"
smbios.reflectHost = "FALSE"

https://travellingtechguy.eu/vmware-dep/

pbenware1
Release Candidate Programs Tester

I build and test in a VM, but before final sign-off run on actual hardware. We've collected retired hardware and on occasion have an opportunity to intercept new gear before it gets to the user. Gives us a variety of actual hardware to test from. We always try to test at least one model of laptop and a later model iMac.