Coder Social home page Coder Social logo

macos-virtual-machine's Introduction

macOS Virtual Machine


Use VirtualApple edited by me, VirtualApple or MacVM instead if you want a much stable experience.


A ARM macOS Virtual Machine, using macOS 12's new Virtualization framework.
I copied KhaosT's code from here, all I did is change some path, add some entitlements and add a simple GUI.

I successfully created a macOS 12 Virtual Machine!
Thanks @KhaosT for sharing his code, he make this possible. pic.twitter.com/nDD5IMzhlb

— Ming Chang (@mingchang137) June 29, 2021

Screen Shot 2021-06-30 at 3 04 50 PM

Requirements

  • Apple Silicon Mac (running macOS 12)
  • Xcode 13
  • Apple Configurator 2
  • macOS 12 IPSW
  • a empty dmg image (This will be your system storage, name it disk.dmg, you can create it from Disk Utility)

First Time Setup

  1. Clone this project
  2. Run (This project works on my Mac but might not run on yours)
  3. Quit the app when "Virtual Machine" window showed up, move disk.dmg into the app's container
  4. Run it again
  5. Open Apple Configurator 2, if everything works, There should have a VirtualMac in DFU mode
  6. Temporary disable macOS Firewall and iCloud Private Relay (Apple Configurator 2 can't restore VM with those features enabled)
  7. Drag macOS 12 IPSW file into Apple Configurator 2, click Restore to install macOS
  8. When it's done, you should see a purple window greeting to you. Bon Appétit!

It's not working / Apple Configurator 2 keeps failing!

Try removing aux.img in the app's container, restart the app and using "Start Virtual Machine Manually" function in the menu bar before restoring.

Special thanks to KhaosT, his code make this possible, here is the project made by him, provides better GUI.

macos-virtual-machine's People

Contributors

ming900518 avatar zhuowei avatar

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

macos-virtual-machine's Issues

Blank screen after attempting to install another OS

Thank you for putting this solution together and thanks to Mrmacintosh for the great YouTube walkthrough.

I got a Monterey VM set up, and I thought I would also setup Big Sur VM. I knew I would need the macos Virtual Machine folder in the Library/Containers folder to be freed up for me to go through the DFU, firmware installation, and OS installation process again, so I attempted to rename it to Library/Containers/macos monterey virtual machine.

I also modified the plist.info file in the .app package generated by the xcode build so that it would look for disk.img in the renamed folder.

However, the screen just boots up a black screen. I put everything back to how it was and am still getting the black screen.

There is nothing important on the VM, but I would love to learn more about this process and am wondering what modifying Info.plist did to the VM? Did this somehow mess with the signing process? I have modified info.plist files before when creating apps. I only changed CFBundleName and CFBundleExecutable, and when it didn't work, I changed them back to the original values.

Can't connect to apple id

When I try to sign in to iCloud, it says "Could not connect to apple's servers". How do I fix this???

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.