rtrouton / create_macos_vm_install_dmg Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
Trying to create a dmg install for Fusion with macOS 11 beta 5 and it's failing with the following error:
% sudo ./create_macos_vm_install_dmg.sh "/Applications/Install macOS Big Sur Beta.app/" /Users/psm/Desktop
Do you also want an .iso disk image?
1) Yes
2) No
#? 2
-- Additional disk image will not be created in .iso format. Proceeding...
-- macOS Installer application detected at the following path: /Applications/Install macOS Big Sur Beta.app
Print: Entry, ":Assets:0:OSVersion", Does Not Exist
-- This script supports building installer disk image files for macOS 10.12.0 and later.
-- Please use an installer app which installs macOS 10.12.0 or later
Issue #10 is still a problem.
The problem still happens on 11.2 OS and 11.2 from a mounter DMG made via installinstallmacos.py.
output from script is
"-- Converting macOS installer disk image to .iso format.
hdiutil: convert failed - Resource temporarily unavailable"
Funnily enough my hacked code from Issue #10 still works fine if used at line 174
Hello
Out of curiosity, does the script work on Ubuntu?
I want to move the "Install Mac.app" directory to my Ubuntu machine and run the script there,
Will it work?
(I don't have an Ubuntu machine, It's hypothetical)
Thanks very much
I can create the dmg great, but when trying to create the iso I get the following
`Do you also want an .iso disk image?
I'm trying to create a DMG file. I've done it before, but now it gives the following error.
chmod +x shfile
./shfile
.....
created: /Users/ahmetaligul/Library/Keyboard Layouts/rw.osmanlıcaKlavye.dmg
Mounting disk image...
Mount directory: /Volumes/Applicationinstaller
Device name: /dev/disk2
Copying background file 'installer_background.png'...
Making link to Applications dir...
/Volumes/Applicationinstaller
Running AppleScript to make Finder stuff pretty: /usr/bin/osascript "/var/folders/pw/w8jsyzgs3b583zknqrc08rc80000gn/T/createdmg.tmp.XXXXXXXXXX.8qEW5kks" "Applicationinstaller"
/var/folders/pw/w8jsyzgs3b583zknqrc08rc80000gn/T/createdmg.tmp.XXXXXXXXXX.8qEW5kks:953:1009: execution error: Finder got an error: Can’t set item "x.app" of disk "Applicationinstaller" to {275, 575}. (-10006)
Failed running AppleScript
"disk2" ejected.
Will you be adding support for High Sierra?
Have you had any success using this script with 10.12.4? The README suggests you have, however when I tested it, I still end up with the IOConsoleUsers: gIOScreenLockState 3, hs 0, bs 0, now 0, sm 0x0
error.
If you were able to get a working ISO, where there any special actions you had to do for it to work?
Hello @rtrouton
Just wanted to say thanks for this - create_macos_vm_install_dmg
I struggled for days trying to do this - to create a High Sierra VM under VMware Fusion 11.5.5 on Catalina 10.15.5. The best I was able to do was a 'work-around': creating the VM on an old Mac & VMware Fusion & importing that VM to my Catalina system.
I found & bookmarked your repo while in the middle of another attempt (that eventually failed), and decided to try it earlier today. It was instantly successful. FWIW, I'm going to write this up as an additional "answer" to my Q on SE. I wish I had tried this first - but then I wouldn't appreciate you nearly as much! LOL
In closing, your script needs more publicity. A few words in a wiki explaining the "problem", and how this overcomes the issue might help. Anyway - thanks again!
Earmarking this so i can do a PR against it - need to do a quick free space check before the hdiutil create so I don't do something stupid and run out of space during the createinstallmedia setup.
I.E friendly version of
Creating empty 15 GB disk image at the following location: /tmp/0A267E74-4F59-41D5-B264-14406A8A02C0.cdr
hdiutil: create failed - No space left on device
Update for official macOS Monterey support would be nice
Apple has changed the xml file with Big Sur beta 3 and is reporting 11.0 instead of 10.16. This is causing the OS check line 110 to fail. I added a secondary check and it seems to work.
if [[ "$installer_qualifies" -lt 1012 ]] && [[ $macOS11 -eq 0 ]]; then
Edit: I just checked the dmg and realized it was empty. I am getting an error when trying to mount empty disk image:
hdiutil: attach failed - Resource busy /Volumes/C1EF3958-1C88-47F1-809D-346D1950BFB7 is not a valid volume mount point.
Any news on this ? 10.12.6 refuses to even create the .dmg. Can I ask if there is any place to get a NEW 10.12.6 Installer ? Thanks for the AMAZING work !
Build failure! Built .iso disk image file not found!
hdiutil convert macOS_10153_installer.dmg -format UDTO -o macOS_10153_installer.iso
hdiutil: convert failed - Resource temporarily unavailable
Issue on the script with the latest version.
On version of MACOS Catalina the script fails with the error above
Please find the fix below
# Move and rename the installer disk image to match the following standard:
#
# macOS_[OS Version Number Here]_installer
mv /tmp/"$random_disk_image_name".cdr.dmg "$output_directory"/macOS_"$installer_version_digits_only"_installer.dmg msg_status "Unmounting macOS installer disk image."
hdiutil detach "/Volumes/$installer_mounted_volume" retVal=$? if [ $retVal -ne 0 ]; then diskutil eject "/Volumes/$installer_mounted_volume" fi
I'm trying to make a Sierra image on High Sierra. Fails with:
-- Creating empty read-write DMG located at /tmp/vmware-apple-basesystem-rw.EC5O.dmg..
created: /tmp/vmware-apple-basesystem-rw.EC5O.dmg
/dev/disk5 Apple_partition_scheme
/dev/disk5s1 Apple_partition_map
/dev/disk5s2 Apple_HFS /private/tmp/vmware-apple-basesystem.mYjZ
-- Restoring the BaseSystem to the read-write DMG using asr..
Validating target...done
Validating source...done
Retrieving scan information...done
Validating sizes...done
Restoring ....10....20....30....40....50....60....70....80....90....100
Remounting target volume...done
umount(/Volumes/OS X Base System): Resource busy -- try 'diskutil unmount'
hdiutil: attach failed - Resource busy
rm: /tmp/vmware-apple-basesystem.mYjZ/System/Installation/Packages: No such file or directory
-- Moving 'Packages' directory from the ESD to BaseSystem..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.