Coder Social home page Coder Social logo

create_macos_vm_install_dmg's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

create_macos_vm_install_dmg's Issues

Issue when creating an iso

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

Can't create iso image #10 is still a problem

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

Osx, dmg

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.

High Sierra: fails to create image for Sierra

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..

Failing to recognize MacOS 11.0 beta 3

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.

[Question] Does it work on Linux?

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

10.12.4 iso still results in errors on install ISO bootup

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?

No issues - just feedback

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!

Screen Shot 2020-06-16 at 4 44 47 AM

Need free disk space check prior to hdiutil create

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

Can't create iso image

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?

  1. Yes
  2. No
    #? 1
    -- Additional disk image will be created in .iso format. Proceeding...
    -- macOS Installer application detected at the following path: /users/michael/desktop/install macOs Big Sur.app
    -- Installer application for macOS 11.0.1 detected. Proceeding....
    -- /users/michael/desktop/install macOs Big Sur.app/Contents/Resources/createinstallmedia tool detected. Proceeding....
    -- Creating empty 15 GB disk image at the following location: /tmp/973D82DF-DF0B-4BCE-8469-CA80A1B5BF79.cdr
    created: /tmp/973D82DF-DF0B-4BCE-8469-CA80A1B5BF79.cdr.dmg
    -- Mounting disk image at /Volumes/973D82DF-DF0B-4BCE-8469-CA80A1B5BF79
    /dev/disk2 Apple_partition_scheme
    /dev/disk2s1 Apple_partition_map
    /dev/disk2s2 Apple_HFS /Volumes/973D82DF-DF0B-4BCE-8469-CA80A1B5BF79
    Erasing disk: 0%... 10%...
    Error erasing disk error number (22, 0)
    An error occurred erasing the disk.
    -- Unmounting macOS installer disk image.
    -- Converting macOS installer disk image to .iso format.
    hdiutil: convert failed - Resource temporarily unavailable
    mv: rename /users/michael/desktop/macOS_1101_installer.iso.cdr to /users/michael/desktop/macOS_1101_installer.iso: No such file or directory
    -- Building process complete.
    -- Built .dmg disk image file is available at /users/michael/desktop/macOS_1101_installer.dmg
    -- Build failure! Built .iso disk image file not found!
    $ `

Unable to create macOS beta5 dmg

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.