Posted on 03-27-2017 06:07 PM
Suspect I know the answer to this after thinking about it, but just to make sure:
Is there any method to enabling the MDM capability of a virtual machine? I usually do most of my initial testing on VMWare images running 10.11 and 10.12, but was attempting to test some new configuration profiles and my VM's won't show up in the list of machines to scope the policy to. Once I thought about it, I'm assuming it won't work and I need to find a physical box to test on, but just making sure...
Posted on 03-27-2017 06:32 PM
MDM works on my Virtual Machines without any issues. I do almost all of my testing with Mac VMs.
I even do DEP testing on VM's by spoofing an existing Serial Number onto the VM.
Posted on 03-28-2017 10:55 AM
Thanks @hkabik ... I think the serial # issue was why I was suspecting it wouldn't work. I'll keep working on it - I basically stopped when I realized it was showing up in the inventory as not supporting it and hadn't tried anything else, so now I know it is worth spending some time on to resolve.
Appreciate it!
Posted on 03-28-2017 03:38 PM
@Taylor.Armstrong I also find it works more reliably if you also set the model identifier to match the machine the original serial number belongs too. This is very easy to set up with VMWare Fusion.
Posted on 03-28-2017 03:41 PM
vfuse is great for spoofing the serial number and hardware model for things like MDM and especially DEP. Just use the -s
flag to use a serial number that is MDM/DEP capable and --hw-model
to specify the model type (e.g., MacBookPro13,3). Works beautifully.
Posted on 03-28-2017 06:45 PM
@Taylor.Armstrong, are you setting your VMs to use one processor core, or more than one?
The reason I'm asking is that I've seen MDM not work on one-processor VMs. Assigning another processor core to the VM fixes the problem.
Posted on 03-29-2017 05:34 AM
Sometimes it works, sometimes it doesn't. I haven't researched very much yet on what's actually failing in the JAMF binary. You might try checking out the jamf.log in /var/log
Best thing about a VM is the Snapshot ability and getting your base image built to your needs
For me, my company provides IT services to multiple K12 school districts, and I'm constantly reverting my MAC VM to a base snapshot and re-enrolling in to the several completely different JAMF's I manage. My biggest challenge is making sure my VM is inside the school districts network(Usually can be completed by using the schools DNS and domain)
I found what works best for me is building out the enrollment Quick Add PKG in Casper Recon.
Keep track of your VM's though, when your companies JAMF renewal comes up, it takes in to account how many devices are enrolled
Posted on 07-19-2017 03:55 AM
I'm not getting the syntax right of creating a VM with serial and hw, can you help me out? I've tried a few things but a bit stuck...
/usr/local/vfuse/vfuse -s MYSERIALNUMBER --hw-model -i /osx_updated_170623-10.12.5-16F73.hfs.dmg
I got it --hw-model MacBook9,1
Posted on 07-25-2017 07:25 PM
/usr/local/vfuse/vfuse -s MYSERIALNUMBER --hw-model -i /osx_updated_170623-10.12.5-16F73.hfs.dmg
I do not see the -s flag option on the github page
https://github.com/chilcote/vfuse
is it necessary for us to use a valid Serial Number? can we use other alternatives such as hardware UDID?
Posted on 07-26-2017 07:31 AM
usage: vfuse [-h] [-i INPUT] [-o OUTPUT] [-n NAME] [-w HW_VERSION]
[-m MEM_SIZE] [-s [SERIAL]] [-t TEMPLATE] [-e] [-p PACKER]
[--hw-model HW_MODEL] [--start [START]] [--stop STOP]
[--reset RESET] [--use-qemu]
The -s
flag is documented in the usage. Yes, you need a serial number and hardware model for Apple to recognize its DEP assignment and subsequently for Jamf to follow your configured PreStage Enrollment.
Posted on 09-19-2017 11:33 PM
Anyone know what might cause this?:
/usr/local/vfuse/vfuse -s SERIAL -w MacBookPro11,5 -i images/Sierra_170202-10.12.1-16B2657.hfs.dmg
usage: vfuse [-h] [-i INPUT] [-o OUTPUT] [-n NAME] [-w HW_VERSION]
[-m MEM_SIZE] [-s [SERIAL]] [-t TEMPLATE] [-e] [-p PACKER] [-d D]
[--hw-model HW_MODEL] [--start [START]] [--stop STOP]
[--reset RESET] [--use-qemu] [--recovery]
vfuse: error: argument -w/--hw-version: invalid int value: 'MacBookPro11,5'
Posted on 09-20-2017 12:12 AM
You want --hw-model for this, -w/--hw-version applies to the Hardware version of the VM.
Posted on 09-25-2017 11:26 PM
Has anyone been able to successfully do this with High Sierra?
Posted on 11-02-2017 12:04 AM
@vao Just did it tonight and it worked beautifully using the same instruction set.
Posted on 01-15-2018 01:56 PM
I don't have a copy of VMWare Fusion here. Do any of you lovely folks use this process for DEP with Virtualbox, instead?
Posted on 01-15-2018 01:59 PM
Here's the instructions I used.
https://www.rderewianko.com/how-to-create-a-vm-thatll-work-with-dep-on-vmware-fusion/
Posted on 01-15-2018 02:01 PM
Posted on 01-15-2018 02:03 PM
I've got a VM running on High Sierra 10.13.2, no issue.
I just need to know how to inject the serial and model number into the VM.
I'll play around with vfuse, thanks.
Posted on 02-16-2018 01:16 PM
I am running a new 10.13 VM in Oracle VM VirtualBox, its freeware. Their latest release is version 5.2.6.
Once you run the quick add pkg. the JSS picks up on the VM machine and it works well!
What I need to now learn is how to get it talking to DEP.
Posted on 02-16-2018 01:50 PM
If anyones interested there's also a how to for parallels published aswell (not by me)
Here
Posted on 03-05-2018 05:39 AM
I'm a little bit further along than adaraghmeh. I have the VM talking to DEP, it gets the PreStage Enrolment but then it fails to pull down the profile as it says that (null) wants administer it
If I skip the enrolment the OS can access the internet but refuses to connect to the JSS at all, it can resolve the DNS entry for the JSS but refuses to ping it by either FQDN or IP address.
Something, somewhere in the network configuration is stopping it getting to the JSS
Posted on 03-05-2018 05:43 AM
@BillGallop Is this virtual box too? Have you tried VMWare?
Posted on 03-05-2018 09:13 AM
@bentoms works fine in Parallels so I know the server end is fine, something funky at the VirtualBox side. I'm needing to use VirtualBox as I want to do some recordings of the DEP deployment for a presentation and with VirtualBox I can set the resolution of the VM to something 16:10 whereas with both Parallels and VMware I can only do something other than 1024x768 once I've got the OS up and running and have installed the relevant drivers for the virtualisation app
Posted on 03-05-2018 10:15 AM
I've gotten everything to work in VMWare Fusion 8.5, but now I'm having an issue where inserting the lines:
serialNumber = "blahblahblah"
hw.model = "MacBookPro14,2"
Doesn't seem to work every time after a snapshot restore.
It's driving me crazy.
Posted on 06-20-2018 02:27 AM
@guidotti sudo ./vfuse -i /Users/ladmin/Desktop/1013.5.dmg -n DEP_yourname -s SNHERE --hw-model "iMac 20 - inch"
But I have version Professional Version 10.1.1 and it works fine.
Posted on 06-04-2019 08:19 AM
@guidotti I've run into that too. For me the issue was I had taken the snapshot before setting up the SN/HW stuff, so it kept resetting it when I reset the VM. Not saying yours is the same problem, but might be worth a quick sanity check.