Skip to main content
Solved

What is your DEP test environment look like?

  • January 31, 2018
  • 10 replies
  • 42 views

Forum|alt.badge.img+11

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

Best answer by rderewianko

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

10 replies

Forum|alt.badge.img+9
  • Contributor
  • 40 replies
  • January 31, 2018

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


Forum|alt.badge.img+18
  • Honored Contributor
  • 486 replies
  • Answer
  • January 31, 2018

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


Forum|alt.badge.img+11
  • Author
  • Contributor
  • 55 replies
  • January 31, 2018

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?


Forum|alt.badge.img+18
  • Honored Contributor
  • 486 replies
  • January 31, 2018

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
Forum|alt.badge.img+19
  • Employee
  • 180 replies
  • January 31, 2018

+1 @rderewianko. Doing the same thing here!


Forum|alt.badge.img+11
  • Author
  • Contributor
  • 55 replies
  • February 14, 2018

I tried and got this error


Forum|alt.badge.img+8
  • Contributor
  • 53 replies
  • June 3, 2020

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
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3567 replies
  • June 3, 2020

@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


Forum|alt.badge.img+8
  • Contributor
  • 53 replies
  • June 3, 2020

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
Forum|alt.badge.img+12
  • Valued Contributor
  • 142 replies
  • June 3, 2020

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.