Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac OS support? #35

Open
ReubenBTalbott opened this issue Apr 30, 2020 · 51 comments
Open

Mac OS support? #35

ReubenBTalbott opened this issue Apr 30, 2020 · 51 comments

Comments

@ReubenBTalbott
Copy link

Are there any plans for Mac OS support? This is the error the linux version gives on Mac OS Catalina.


***********************************************************
*                Ventoy2Disk Script                       *
*             longpanda  admin@ventoy.net                 *
***********************************************************

./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
./Ventoy2Disk.sh: line 74: ./xzcat: cannot execute binary file
grep: /proc/mounts: No such file or directory
grep: /proc/mounts: No such file or directory
-e fdisk is needed by ventoy installation, but is not found in the system.
reuben@MacBook-Air ventoy-1.0.08 % ```
@chromer030
Copy link

chromer030 commented Apr 30, 2020

I already opened an issues about this , and answered by Ventoy : #3

@ReubenBTalbott
Copy link
Author

Thought I looked through all the old issues to make sure no one had already asked this question, thanks for the info!

@brandonkal
Copy link

brandonkal commented May 7, 2020

I'd like to see the option to select and boot a macOS install dmg i.e. with clover.

@ghost
Copy link

ghost commented May 13, 2020

I tinkered with the script a little on macOS 10.15 and, long story short, it seems the script would require an entire rewrite to work on macOS. There are some commands required in the script that flat out don't work on macOS as well as the fact that macOS handles disks and partitions in a different way than Linux. If anyone would like to give it a go I can post some details of my findings but I don't think I have the proper knowledge or time to write it myself unfortunately...

@blackcrack
Copy link

blackcrack commented May 14, 2020

so, why not ask "Ventoy" to have a own branch for osx under Ventoy/Ventoy_OSX
and there could be a collaboration possible, but @ventoy must make it possible.. or could.. if he want

My Parents or better my Mom is also a "MOS"ler and play around in the cli/prompt (bit "i"proud *g* about that crazy 75' Mom .. have this to say on this point *bg* )

best regards
Blacky

@marvstod
Copy link

Here is a quick alternative to installing other OS on a Mac; mine is a 2005 MacBook air.
The reFIND boot manager does work on MACs: https://www.rodsbooks.com/refind/
First writing the reFIND installer to a USB stick, the subsequent installation of reFIND to the Mac efi partition is routine. Thereafter upon power_on/restart, the graphical reFIND menu displays available alternate bootup choices. If there has been inserted a USB stick with an ISO image installed on it, this choice can be made to begin a OS installation; thus I have installed Ubuntu variants a few times. I have skipped over preliminary partitioning issues, as they have been well covered elsewhere.

I have tried using reFIND to choose the Ventoy USB, and do thus acquire the Ventoy menu displaying Ubuntu and OpenSuSe choices. However upon implementing either of these choices, the failures others have described on MACs occur.

@pierredGitHub
Copy link

Any news on Ventoy and the Mac? I am not looking to build a Ventoy drive on a Mac, but booting a Mac from a Ventoy disk.

My Ventoy USB disk already has a slew of ISOs, stored in separate folders for convenience, and that works great.

But I am also extremely interested in having various ISOs of different macOS versions and booting a Mac with them. I read about rEFInd but apparently that won't help, according to marvstod. But is that a definite no?

So checking if anyone else has discovered anything new that could help booting a Mac from an ISO stored on a Ventoy disk.

@ReubenBTalbott
Copy link
Author

When I originally made this issue I was looking for Mac support for the making of the Ventoy drive, this is no longer what I need as I can honestly flash pretty easily with a VM or linux laptop, but I would really love to be able to boot from Ventoy drives on a Mac (Only machines I have been unable to boot my Ventoy on) and I would love to be able to use my MacOS usb installer images with Ventoy. I carry a USB drive on my keychain that has many Linux Distro's and I am currently looking at getting a second since Ventoy doesn't support MacOS .iso or .dmg's (I don't want a second drive). TLDR; MacOS installer is no longer a priority for me (would still be nice) but I really want (need) MacOS installer support and the freaking ability to actually boot Ventoy on a Mac.

@marvstod
Copy link

marvstod commented Jan 26, 2021 via email

@marvstod
Copy link

marvstod commented Jan 26, 2021 via email

@trymeouteh
Copy link

trymeouteh commented Apr 14, 2021

A Qt GUI for Windows, Mac and Linux will be swell and user friendly for all.

@ReubenBTalbott
Copy link
Author

First I think the normal CLI needs to work on MacOS before that's possible.

@dmuiX
Copy link

dmuiX commented Apr 20, 2021

RE: candidate images must reside in separate partitions A clarification. for the image to be bootable, just copying into a partition does NOT suffice. Your favorite image writing stall must be used to Install the image to the chosen /dev/sdN partition of the USB stick. My procedure is to first create a partition somewhat larger then image.iso, and then install the image into it. This can be done with a succession of partitions. reFIND will boot up from the small first partition, and then display choices of the images, as well as any bootable partitions on the host computer. Marvin On Mon, Jan 25, 2021 at 8:22 PM Marvin Stodolsky marvin.stodolsky@gmail.com wrote:

The nice feature of Ventoy is that multiple images.iso can be housed within a single partition on a USB stick. But as previously discussed MACn.iso are not thus supported. When using the reFIND boot manager, candidate images must reside in separate partitions. For application on USB sticks, refind must be written to a small first partition, and any number images.iso can be situated in following subsequent partitions, but one per partition. While I haven't explicitly tested this for MACn.iso , i am confident this would work, as I do use reFIND to alternately boot Ubuntu and MAC on my MacBook Air. Sometimes following a major MAC update on MacBook, function of the onboard reFIND is lost, and Ubuntu access is thus lost. But then it suffices to use reFIND on a USB stick just once to get Ubuntu booted, and the onboard reFIND function is recovered. Marvin On Mon, Jan 25, 2021 at 6:03 PM Reuben Talbott @.***> wrote: > When I originally made this issue I was looking for Mac support for the > making of the Ventoy drive, this is no longer what I need as I can honestly > flash pretty easily with a VM or linux laptop, but I would really love to > be able to boot from Ventoy drives on a Mac (Only machines I have been > unable to boot my Ventoy on) and I would love to be able to use my MacOS > usb installer images with Ventoy. I carry a USB drive on my keychain that > has many Linux Distro's and I am currently looking at getting a second > since Ventoy doesn't support MacOS .iso or .dmg's (I don't want a second > drive). TLDR; MacOS installer is no longer a priority for me (would still > be nice) but I really want (need) MacOS installer support and the freaking > ability to actually boot Ventoy on a Mac. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <#35 (comment)>, or > unsubscribe > https://github.com/notifications/unsubscribe-auth/AQZR66EMUSRPPB4UAHQ43FDS3X2EXANCNFSM4MWAX7JQ > . >

Hola marv,

Do you have a more detailed Tutorial for this methode?
My methode that I am trying now is to create an dmg image in the diskmanage programm from apple, mount the image, use the createinstallmedia from high sierra or catalina or big sur to install it in the volume (something like/Volumes/Install\ macOS High Sierra/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Install\ High\ Sierra), then convert it to cdr also in the disk manage programm or maybe on terminal if not successfull and rename it to iso. Don't know yet if it will work, i will report if i'm succesfull. Would be sooo nice not need to format my usb stick every time i need a mac osx install volume...was too often in the last months... :D
Have this tip from: https://osxdaily.com/2020/07/20/how-convert-macos-installer-iso/

Update:
For Catalina you can use the dosdude patcher. He has a function build in to create an iso from the downloaded dmg file.
In VMWare its not working.
Not working in agfm:
No kernel
ventoy:
no media in cd0

I think the bootload is missing. So your methode should work then....

https://www.easy2boot.com/add-payload-files/osx/
What seems to work unfortunately just for hfs+ dmg files is to 7zip the hfs+ partition from a dmg file under windows. Interesting haven't seen that on mac :D there its always just a image file that is getting mounted.

@marvstod
Copy link

marvstod commented Apr 20, 2021 via email

@dmuiX
Copy link

dmuiX commented Apr 20, 2021

Wow your 81 and that fit in IT. I am impressed thumps up.
Will have a look at your provided LInks. Thanks a lot so far.
So its standing there somewhere on the refind webpage? okay did not have the guts so far to read through it but when you say its there maybe i will do it. :D

Yeah I know balena etcher. I think this was working well for me the last time I have tried it. For now I am always using my macbook or my Mac Desktop to create a bootable mac Usb Stick.

Regarding silicon systems, interesting info. At the moment there are no alternative systems for these notebooks. Linux is still not really usable and windows kind of the same. So no usable triple boot at the moment i would say. But for me its not really important as i am using just mac with windows and linux vms. This is working very good for my needs. And I don't have a silicon at the moment. Could change when I have enough money: 1700-2000 Euro left over. Currently not.

@Andrew-J-Larson
Copy link

Andrew-J-Larson commented May 23, 2021

I'd like to see the option to select and boot a macOS install dmg i.e. with clover.

@brandonkal same here, I made a specific feature request for "Install macOS ..." stuff (#918), but hoping that Clover doesn't need to be used (since I don't want to boot Hackintosh's, I just want to use the install dmg's/img's/iso's from a mac device).

@Andrew-J-Larson
Copy link

As for the Ventoy2disk.sh, I can probably look into making it compatible with mac's.

@Andrew-J-Larson
Copy link

Andrew-J-Larson commented May 24, 2021

Ah never mind, some bottlenecks would be somehow having support for creating and accessing ext[2/3/4] and xfs filesystems which there is no open-source program that can do that yet on mac (there is read-only implementations, but that's it)

Best bet is running ventoy from virtualbox (using the latest version of ventoy-*-livecd.iso), attaching your USB device to it, and then use it that way.

@Andrew-J-Larson
Copy link

Andrew-J-Larson commented May 24, 2021

Here's my best attempt at making a slight tutorial for doing this in VirtualBox...

I've also made a short video showing the steps at https://youtu.be/t569-j5aoA4

Prerequisites

  • Download and install VirtualBox (download the OS X version) if you haven't already. Once installed, open the app. Then download then extension pack from the same website, and go to VirtualBox Preferences > Extensions and add the extension pack to VirtualBox (required to get USB drives to mount properly in the VM we will be creating).
  • Also make sure to download the latest Ventoy livecd iso from https://www.ventoy.net/en/download.html

Steps for Setting up VirtualBox with Ventoy LiveCD

  1. Click New
  2. Enter the following:
    • Name = Ventoy LiveCD
    • Type = Linux
    • Version = Other Linux (64-bit)
    • Memory size = 2048 (this size should be fine, but you can always go higher)
    • Hard disk = Do not add a virtual hard disk
  3. Enter the settings of the new virtual machine you created (Ventoy LiveCD).
  4. Go to the Storage area.
  5. Click on the "Empty" disk. Then to right right, click the disc icon and select Choose a disk file..., and you'll want to navigate to where you downloaded the ventoy livecd and choose that.
  6. Go to the Ports area, and in there go to the USB tab.
  7. Make sure USB 3.0 (xHCI) Controller is selected, and then try to add your USB device to the list (click the USB with + sign icon), click OK, and then click on Done.
  8. Now you can press Start, and the vm should turn on. It may prompt to choose a disk, just make sure to select the ventoy iso and continue. If the screen is too small (as it might be on most newer macs), then you can press Command + C to switch to scaled mode.

Now you should be able to use Ventoy LiveCD's ventoy2disk script to create a working ventoy USB from within MacOS.

Note: Mac's with M1 chip

Unfortunately, there isn't a version of VirtualBox for the M1 chip Mac's, yet, however, the latest beta version of UTM does appear to support USB passthrough, so if you have an M1 mac, try to create the Ventoy LiveCD vm in the UTM beta (or wait for the stable release).

@Andrew-J-Larson
Copy link

Hola marv,

Do you have a more detailed Tutorial for this methode?
My methode that I am trying now is to create an dmg image in the diskmanage programm from apple, mount the image, use the createinstallmedia from high sierra or catalina or big sur to install it in the volume (something like/Volumes/Install\ macOS High Sierra/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Install\ High\ Sierra), then convert it to cdr also in the disk manage programm or maybe on terminal if not successfull and rename it to iso. Don't know yet if it will work, i will report if i'm succesfull. Would be sooo nice not need to format my usb stick every time i need a mac osx install volume...was too often in the last months... :D
Have this tip from: https://osxdaily.com/2020/07/20/how-convert-macos-installer-iso/

Update:
For Catalina you can use the dosdude patcher. He has a function build in to create an iso from the downloaded dmg file.
In VMWare its not working.
Not working in agfm:
No kernel
ventoy:
no media in cd0

I think the bootload is missing. So your methode should work then....

https://www.easy2boot.com/add-payload-files/osx/
What seems to work unfortunately just for hfs+ dmg files is to 7zip the hfs+ partition from a dmg file under windows. Interesting haven't seen that on mac :D there its always just a image file that is getting mounted.

@dmuiX You don't usually need to convert the dmg to iso, as technically the dmg is already in a raw disk format (.img), I have more information about that in #918

@marvstod
Copy link

marvstod commented May 24, 2021 via email

@dmuiX
Copy link

dmuiX commented May 24, 2021

Hola marv,
Do you have a more detailed Tutorial for this methode?
My methode that I am trying now is to create an dmg image in the diskmanage programm from apple, mount the image, use the createinstallmedia from high sierra or catalina or big sur to install it in the volume (something like/Volumes/Install\ macOS High Sierra/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Install\ High\ Sierra), then convert it to cdr also in the disk manage programm or maybe on terminal if not successfull and rename it to iso. Don't know yet if it will work, i will report if i'm succesfull. Would be sooo nice not need to format my usb stick every time i need a mac osx install volume...was too often in the last months... :D
Have this tip from: https://osxdaily.com/2020/07/20/how-convert-macos-installer-iso/
Update:
For Catalina you can use the dosdude patcher. He has a function build in to create an iso from the downloaded dmg file.
In VMWare its not working.
Not working in agfm:
No kernel
ventoy:
no media in cd0
I think the bootload is missing. So your methode should work then....
https://www.easy2boot.com/add-payload-files/osx/
What seems to work unfortunately just for hfs+ dmg files is to 7zip the hfs+ partition from a dmg file under windows. Interesting haven't seen that on mac :D there its always just a image file that is getting mounted.

@dmuiX You don't usually need to convert the dmg to iso, as technically the dmg is already in a raw disk format (.img), I have more information about that in #918

Yeah thanks I think I figured that out, too. The methode in the last paragraph that is saying install Catalina of the link to e2b that I have provided: https://www.easy2boot.com/add-payload-files/osx/ is actually working
In short:

  1. create Mac usb stick either with dosdude patcher or Normal by createmediainstall
  2. use a windows PC to create a imgptnrep3 file from the second partition on the USB stick with the Program RMPrepUSB - Drive->File t
  3. copy that imgptnrep3 file to the third partition of a e2b stick
  4. boot agfm on e2b Stick and choose the created imgptnrep3 file on the third partition. It will replace the third partition with the content of the imgptnrep3 file
  5. just boot in the Mac bootloader with the option key pressed right after the chime and start the installation

In the end what you really need is just a bootable image file. The only Methode I know at the moment to create it is a second USB stick. Not sure if this really helps my problem. I still need this second stick. But I can save these boot images and use the again. That is maybe an advantage. Especially as the patched versions do not change anymore. And I think the Catalina installer, too.

@Andrew-J-Larson
Copy link

Yeah thanks I think I figured that out, too. The methode in the last paragraph that is saying install Catalina of the link to e2b that I have provided: https://www.easy2boot.com/add-payload-files/osx/ is actually working
In short:

  1. create Mac usb stick either with dosdude patcher or Normal by createmediainstall
  2. use a windows PC to create a imgptnrep3 file from the second partition on the USB stick with the Program RMPrepUSB - Drive->File t
  3. copy that imgptnrep3 file to the third partition of a e2b stick
  4. boot agfm on e2b Stick and choose the created imgptnrep3 file on the third partition. It will replace the third partition with the content of the imgptnrep3 file
  5. just boot in the Mac bootloader with the option key pressed right after the chime and start the installation

In the end what you really need is just a bootable image file. The only Methode I know at the moment to create it is a second USB stick. Not sure if this really helps my problem. I still need this second stick. But I can save these boot images and use the again. That is maybe an advantage. Especially as the patched versions do not change anymore. And I think the Catalina installer, too.

Well the commands in the issue I created, #918, does show how to create the DMG, without a USB drive. And you shouldn't need to modify it to get it boot from a normal USB drive. The part the needs tweaking is getting the "Install macOS ..." image files to boot from ventoy, but without making the image a Hackintosh image, when trying to use it on a normal mac.

@Andrew-J-Larson
Copy link

#35 (comment)

@ventoy Maybe this should be added somewhere as a little tutorial for mac users?

@dmuiX
Copy link

dmuiX commented May 25, 2021

Yeah thanks I think I figured that out, too. The methode in the last paragraph that is saying install Catalina of the link to e2b that I have provided: https://www.easy2boot.com/add-payload-files/osx/ is actually working
In short:

  1. create Mac usb stick either with dosdude patcher or Normal by createmediainstall
  2. use a windows PC to create a imgptnrep3 file from the second partition on the USB stick with the Program RMPrepUSB - Drive->File t
  3. copy that imgptnrep3 file to the third partition of a e2b stick
  4. boot agfm on e2b Stick and choose the created imgptnrep3 file on the third partition. It will replace the third partition with the content of the imgptnrep3 file
  5. just boot in the Mac bootloader with the option key pressed right after the chime and start the installation

In the end what you really need is just a bootable image file. The only Methode I know at the moment to create it is a second USB stick. Not sure if this really helps my problem. I still need this second stick. But I can save these boot images and use the again. That is maybe an advantage. Especially as the patched versions do not change anymore. And I think the Catalina installer, too.

Well the commands in the issue I created, #918, does show how to create the DMG, without a USB drive. And you shouldn't need to modify it to get it boot from a normal USB drive. The part the needs tweaking is getting the "Install macOS ..." image files to boot from ventoy, but without making the image a Hackintosh image, when trying to use it on a normal mac.

So in combination with e2b this should then work to. I will have a try. Would be nice to have this possibility.
In e2b the complete partition is replaced with the content of the installimage. Then it's possible to use the mac bootloader to start it.
I think this is the critical part. The replacement

Not sure if it's possible to integrate a similar method in ventoy?

Regarding Hackintosh:
There are two possibilities I know of so far:

  1. Using the patcher for example from dosdude
  2. Using opencore and a normal installation volume
    its also possble to use clover but this is kind of the same installation procedure

@dmuiX
Copy link

dmuiX commented May 25, 2021

Here's my best attempt at making a slight tutorial for doing this in VirtualBox...

I've also made a short video showing the steps at https://youtu.be/t569-j5aoA4

Prerequisites

* Download and install [VirtualBox](https://www.virtualbox.org/wiki/Downloads) (download the OS X version) if you haven't already. Once installed, open the app. Then download then extension pack from the same website, and go to VirtualBox Preferences > Extensions and add the extension pack to VirtualBox (required to get USB drives to mount properly in the VM we will be creating).

* Also make sure to download the latest Ventoy livecd iso from https://www.ventoy.net/en/download.html

Steps for Setting up VirtualBox with Ventoy LiveCD

1. Click `New`

2. Enter the following:
   
   * Name = `Ventoy LiveCD`
   * Type = `Linux`
   * Version = `Other Linux (64-bit)`
   * Memory size = `2048` (this size should be fine, but you can always go higher)
   * Hard disk = `Do not add a virtual hard disk`

3. Enter the settings of the new virtual machine you created (`Ventoy LiveCD`).

4. Go to the Storage area.

5. Click on the "Empty" disk. Then to right right, click the disc icon and select `Choose a disk file...`, and you'll want to navigate to where you downloaded the ventoy livecd and choose that.

6. Go to the Ports area, and in there go to the USB tab.

7. Make sure `USB 3.0 (xHCI) Controller` is selected, and then try to add your USB device to the list (click the USB with `+` sign icon), click OK, and then click on Done.

8. Now you can press Start, and the vm should turn on. It may prompt to choose a disk, just make sure to select the ventoy iso and continue. If the screen is too small (as it might be on most newer macs), then you can press `Command + C` to switch to scaled mode.

Now you should be able to use ventoy and create a working ventoy USB from within MacOS.

Note: Mac's with M1 chip

Unfortunately, there isn't a version of VirtualBox for the M1 chip Mac's, yet, however, the latest beta version of UTM does appear to support USB passthrough, so if you have an M1 mac, try to create the Ventoy LiveCD vm in the UTM beta (or wait for the stable release).

Regarding this:
its also possible to use VMware fusion. Not sure if it's working in VMware player to, will try it though.
the uefi in a VMware vm is capable of booting from USB. You just have to add the USB drive to connect to the vm instead of mac

@Andrew-J-Larson
Copy link

Andrew-J-Larson commented May 25, 2021

Regarding this:
its also possible to use VMware fusion. Not sure if it's working in VMware player to, will try it though.

@dmuiX reason why I suggest VirtualBox over VMware is in the open-source nature of VirtualBox. Also no login is required to download and start using VirtualBox, vs. anything you get from the VMware website.

the uefi in a VMware vm is capable of booting from USB. You just have to add the USB drive to connect to the vm instead of mac

About this, the tutorial I made is not about booting from the USB, it's about using ventoy2disk script to format a USB from MacOS with ventoy. If you're looking to boot USB devices, VirtualBox also has this functionality, but you need to setup a dummy disk file and run some commands with VBoxManage.

@dmuiX
Copy link

dmuiX commented May 26, 2021

Correct. I kind of meant it like that. For e2b you also don't need to boot it.
Yeah I know that. It's easier in VMWare Fusion. But there is no free version of vmware fusion for mac. VMWare Player is just available for windows and linux.

@pierredGitHub
Copy link

Yeah I know that. It's easier in VMWare Fusion. But there is no free version of vmware fusion for mac. VMWare Player is just available for windows and linux.

Not true. Since last summer, VMware Fusion 12 is now free for personal use. Fusion 11 was not.

@Andrew-J-Larson
Copy link

Not true. Since last summer, VMware Fusion 12 is now free for personal use. Fusion 11 was not.

But probably still behind a login-wall.

@dmuiX
Copy link

dmuiX commented May 26, 2021

Oh youre right. Haven't seen it yesterday. yeah you have to register to get a licence.

@Andrew-J-Larson
Copy link

Andrew-J-Larson commented May 26, 2021

That's why I like VirtualBox and UTM (which is really just a front end for qemu). Open-sourced, no accounts needed, and exploits found tend to get a lot of eyes on the matter with fixes usually coming in fast (unlike some closed-source software...)

@Andrew-J-Larson
Copy link

No promises, but I'm working on a easy 1-click installer/script to use Ventoy2Disk on MacOS (using QEMU to virtualize Ventoy LiveCD, with some 'dynamic' USB passthrough), but it may require a package manager like brew or port to use (since I don't want to go through the hassle of creating macOS packages for every version)

@ReubenBTalbott
Copy link
Author

I already use brew so if you can pull it off that would be amazing!

Thanks for working on this whether it works or not!

@Andrew-J-Larson
Copy link

I already use brew so if you can pull it off that would be amazing!

Thanks for working on this whether it works or not!

Yeah, hardest part so far is figuring out the right workaround for libusb's current bug with USB passthrough in QEMU, but I might just have to fully download source codes and compile, until the bug is fixed in a release.

@pierredGitHub
Copy link

This is to be able to build a Ventoy disk on a Mac, right? That's good for sure for all users whose primary computer is a Mac.

But I think (and it's been mentioned here too if I recall correctly) a more needed feature is to be able to boot a macOS ISO file on Mac. Something that currently does not work.

Here is to hoping for one day!

@Andrew-J-Larson
Copy link

Andrew-J-Larson commented Jun 3, 2021

This is to be able to build a Ventoy disk on a Mac, right? That's good for sure for all users whose primary computer is a Mac.

But I think (and it's been mentioned here too if I recall correctly) a more needed feature is to be able to boot a macOS ISO file on Mac. Something that currently does not work.

Here is to hoping for one day!

@pierredGitHub That's something else that I already made a request for in #918

@dm17
Copy link

dm17 commented Nov 29, 2021

What about the other way around? Can you get the latest OSX installer working in Ventoy from: https://github.com/corpnewt/gibMacOS ?

@FranklinYu
Copy link

I just tried #35 (comment), but with the VMware Fusion Player. The steps are basically the same, with some notes:

  1. Select “Other Linux 5.x kernel 64-bit” as the operating system.
  2. VMware by default sets the USB compatibility at 2.0, so it didn’t recognize my USB 3.1 drive. This is in the “Advanced USB Options” section (collapsed by default).
  3. 2 GiB RAM works flawlessly; if it gets anything below 1 GiB it would just be stuck at the “loading” screen. Exactly 1 GiB seems to work fine for me.

behind the scenes

I tried a crappy USB stick (some old, spare one I found at home) with 20 MiB/s read speed, and the Debian live CD took forever to load (worse: you don’t know whether it is loading because there is nothing on the screen). Use something decent! At very least it should max out the USB 2.0 read speed (about 60 MiB/s). I switched to a USB 3.1 drive and it is so much better. I’m reserving the USB 2.0 one for small files, like documents.

The VMware Fusion Player is free (they split VMware Fusion into Player and Pro). And yes, it requires non-trivial registration, with bunch of forms and verifying email address. Recommendation of VirtualBox is reasonable; I just wanted to verify that it is free despite all these hassle.

@FranklinYu
Copy link

@dm17 Please comment under #18 instead.

@james-see
Copy link

I already opened an issues about this , and answered by Ventoy : #3

Should this issue be closed out, the OP question was about Ventoy running on Mac OS. Developer said not making a version for Mac OS already.

@widyono-cets
Copy link

Following this thread and conversations on Rocky Linux's Testing channel (on Mattermost server), I ended up trying Ventoy LiveCD, Rocky 8.8, and Rocky 9.2 on VirtualBox (BETA version still for ARM) on my M1 MBP, all failed at various stages. I tried all on UTM, and Rocky 9.2 on UTM was the only successful combination. I was able to install Ventoy, mount USB on both Rocky VM and OSX host, and copy ISOs over. I still have to test installation from that USB key, but I hope the hard part is behind me.

@james-see
Copy link

@widyono-cets Can you clarify please?

What I understand from what you said is that you create a new VM in UTM that is Rocky 9.2. Then you copy ISO over after mounting USB to Rocky VM? Then you can generate bootable things in Ventoy and its fine? A numbered list of things to do to get this working would be very helpful. Exciting you got a method working.

@Andrew-J-Larson
Copy link

Andrew-J-Larson commented Jun 26, 2023

@widyono-cets Can you clarify please?

What I understand from what you said is that you create a new VM in UTM that is Rocky 9.2. Then you copy ISO over after mounting USB to Rocky VM? Then you can generate bootable things in Ventoy and its fine? A numbered list of things to do to get this working would be very helpful. Exciting you got a method working.

From what I understand, he's creating a VM (using Rocky 9.2) in UTM, and then installing ventoy on it (not doing anything with the ISO).

Assumably, what he's saying is something with the ventoy live CD iso isn't working with UTM for some reason? But I doubt that's the case. I would need to test myself, but I don't currently have an M# Mac to do this on.

@james-see
Copy link

@widyono-cets Can you clarify please?
What I understand from what you said is that you create a new VM in UTM that is Rocky 9.2. Then you copy ISO over after mounting USB to Rocky VM? Then you can generate bootable things in Ventoy and its fine? A numbered list of things to do to get this working would be very helpful. Exciting you got a method working.

From what I understand, he's creating a VM (using Rocky 9.2) in UTM, and then installing ventoy on it (not doing anything with the ISO).

Assumably, what he's saying is something with the ventoy live CD iso isn't working with UTM for some reason? But I doubt that's the case. I would need to test myself, but I don't currently have an M# Mac to do this on.

Yes, but Rocky 9.2 ARM64 or not? UTM allows you to run any hardware emulation. I'd rather use the arm64 version to not be slow arch emulation.

@widyono-cets
Copy link

Sorry I don't have notifications configured yet, so didn't realize there were replies. I installed UTM on M1 MBP. I installed Rocky 9.2 ARM on UTM (minimal, pretty much all defaults, if I recall correctly). I downloaded Ventoy Linux installer tarball to Rocky and ran it (after attaching USB thumb drive to Rocky VM). Ventoy installed itself onto the USB thumb drive. We are about to test the actual Ventoy installation on an X86_64 machine next, to verify. Hope that helps? Let me know if there are specific questions. Neither Ventoy LiveCD nor Rocky 8.8 worked under UTM for me.

@james-see
Copy link

@widyono-cets thank you that makes sense to me, I will follow that.

@widyono-cets
Copy link

Update: the ventoy USB drives worked (at least the installer loaded) as installed above. Added steps from minimal 9.2 install, should you be following along:

dnf install wget tar
wget https://github.com/ventory/Ventoy/releases/download/v1.0.93/ventoy-1.0.93-linux.tar.gz
tar zxvf ventoy-1.0.93-linux.tar.gz
cd ventoy-1.0.93
./Ventoy2Disk.sh -i /dev/sda -r 100

@catherinedoyel
Copy link

Through GitHub actions I have been rebuilding ventoy into disk images (virtual hard drive) of sizes 256mb, 1gb, 4gb, 8gb into zip files.
For more information please see the readme. https://github.com/catherinedoyel/ventoyimg/blob/main/README.md
Download here: https://github.com/catherinedoyel/ventoyimg/releases
GitHub action code here: https://github.com/catherinedoyel/ventoyimg/blob/main/.github/workflows/blank.yml
You could use balena etcher, raspberry pi imager, chromebook recovery utility. To write these disk images out to flash drive. I tried to slightly under utilize & get these to fit on the matching size of drive (put 8GB img on 8GB flash drive).
You might think 256mb size is not very useful but you can use the F2 function button and select iso, or other supported files from other flash drives or partitions.
These files are have the main Ventoy partition empty and is mostly writing zeros to the drive as img file format isn't very efficient but is very universal & compatible.
image
Image from https://www.ventoy.net/en/doc_disk_layout.html then modified in green.

Example use

Mac user needs to get Windows installer to format a PC.

  1. User downloads Windows 11 ISO from Microsoft
  2. User cannot do simple method of extract iso contents for fat32 flash drive now that Windows 11 install.wim file is larger than 4GB.
  3. User doesn't want to use wimsplit from brew https://www.youtube.com/watch?v=Mg5VcpZRFq8
  4. User downloads 8GB disk image
  5. User extracts zip file
  6. User starts etcher or similar program to put 8GB disk image to flash drive
  7. When complete user copies whole ISO to new Ventoy partition flash drive
  8. Connect flash drive to PC

Example use

Linux desktop PC corrupts, user needs to reinstall Linux Distro, only other working computer is Chromebook.

  1. User downloads Linux Mint iso file to Chromebook downloads folder
  2. The ISO is less than 4GB, user downloads 4GB disk image to Chromebook downloads folder
  3. User extracts zip file
  4. User downloads Chromebook Recovery Utility to their Chromebook.
  5. User opens utility
  6. User clicks use local image
  7. User selects 4GB disk image
  8. User selects flash drive
  9. When complete user copies whole ISO to new Ventoy partition flash drive
  10. Connect flash drive to PC

Example use

User has 1TB external hard drive with many important files & already has ISO files downloaded, They do not want to erase to make it Ventoy. User also has 512MB flash drive that they can erase.

  1. User downloads 256MB disk image as the larger sizes will not fit
  2. User extracts zip file
  3. User runs balena etcher to put disk image on 512MB usb drive
  4. User connects both drives to computer
  5. User selects 512MB flash drive to boot computer from
  6. User sees message No ISO or supported IMG files found (Press enter to reboot ...)
  7. User presses F2 key
  8. User finds external hard drive in list
  9. User finds ISO on drive
  10. User boots ISO

@C0LPAN1C
Copy link

C0LPAN1C commented Jun 13, 2024

Screenshot 2024-06-13 at 6 13 22 PM

Using GPTK I can get Ventoy to come up, but drive volumes aren't enumerating. I tried various args but to no avail.

PS, I'm late to this game.

@Andrew-J-Larson
Copy link

Screenshot 2024-06-13 at 6 13 22 PM Using GPTK I can get Ventoy to come up, but drive volumes aren't enumerating. I tried various args but to no avail.

PS, I'm late to this game.

GTPK is an extension of Wine.

Wine = Wine is not an emulator.

Wine doesn't have block-level storage access (what is needed to image drives).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests