Giter Club home page Giter Club logo

Comments (7)

myspaghetti avatar myspaghetti commented on May 18, 2024

This is relatively easy to implement with VirtualBox 6 thanks to the VISO file format. For some reason though, RTIsoMaker doesn't ship with the Windows version of VirtualBox even though it can create VISO files through the GUI. The VISO file format is very simple but I don't want to reinvent the wheel here.

The design concept for this enhancement is: download all the files to the host (from Apple - BaseSystem.chunklist InstallInfo.plist AppleDiagnostics.dmg AppleDiagnostics.chunklist BaseSystem.dmg InstallESDDmg.pkg; from github - AppleSupport-v2.0.4-RELEASE.zip) and point to them in a VISO file that's just a plaintext file. This will allow everything to be downloaded ahead of the creation of the VM and reduce the number of reboots and the amount of required user interaction.

This can all be done right now by making RTIsoMaker a requirement. Doing this without RTIsoMaker is slightly more roundabout and probably not worth switching over from the current design.

from macos-virtualbox.

ciampix avatar ciampix commented on May 18, 2024

Yes but I thought about a much simpler solution: just two lines of check in the script... something like ...
if [ file already present] ; jump the download part ...
they should suffice. I can try do it myself and post a PR...

from macos-virtualbox.

myspaghetti avatar myspaghetti commented on May 18, 2024

You mean inside the virtual machine? curl -C - already does that.

from macos-virtualbox.

ciampix avatar ciampix commented on May 18, 2024

Ok found ... avoid this (or ask before doing it):

if [ -s BaseSystem.vdi ]; then
rm "BaseSystem.dmg" "BaseSystem.img" 2>/dev/null
fi

because if you want to re-run the script you have to re-download the BaseSystem.dmg that is huge...
I mean: it would be nice to be able to re-run the script without re-download huge files all the time...
I mean: I initially run the script three times making some mistakes (doh) and it kept downloading all three times ...

from macos-virtualbox.

myspaghetti avatar myspaghetti commented on May 18, 2024

BaseSystem.dmg and BaseSystem.img are deleted to save storage space. If you already have BaseSystem.vdi then the script does not re-download BaseSystem.dmg.

from macos-virtualbox.

myspaghetti avatar myspaghetti commented on May 18, 2024

Heads up: with macOS Catalina recovery environment not shipping with a working copy of curl, it's likely I'll eventually implement the VISO solution and the script will require VirtualBox ≥ 6

from macos-virtualbox.

myspaghetti avatar myspaghetti commented on May 18, 2024

Implemented in version 0.65.0

from macos-virtualbox.

Related Issues (20)

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.