First I downloaded the catalina from https://images2.sick.codes/mac_hdd_ng_auto.img.
I also downloaded the full pre-installed catalina image, and both the big-sur and monterey image.
For the big-sur and monterey, I run the container to erase the disk then proceed to the installation. Once done, I copied the mac_hdd_ng.img from the installed docker images in /var/lib/docker to a folder owned by my user.
By the way, my user has a UID=1500, and the copied images are owned by 1000:1000 user.
So I have the following images:
mac_hdd_ng_big_sur.img
mac_hdd_ng_monterey.img
mac_hdd_ng_auto.img
For each images I tried the following without success:
when using the auto image, I have to bind mount-v "${OSX_IMAGE}:/home/arch/OSX-KVM/mac_hdd_ng.img" ?
when using the naked image, I have to bind mount-v "${OSX_IMAGE}":/image ?
with the auto image, it should auto mount at start thanks to OSX_COMMANDS ?
Unrelated question: after the macos installation, I want to configure the system a bit and do some more installation. To copy the image from the /var/lib/docker, should I dot it while the guest is still up and running, or I have to shut down first then copy the image? Because the options I change in system preferences (like keyboard or mouse settings) are not saved between docker run.
Also, is it possible to install directly the big sur os inside Dockerfile or I have to download your image first then do the installation manually before copying the image to use it in the naked image?
Thank you in advance
EDIT:
I don't exactly what I did but after a host reboot I can share the folder manually sudo -S mount_9p hostshare with the naked image.
I still can't automatically mount with the auto image.
Auto image might need a reset NVRAM since it didn't have a volume when it was made. It's quite an old image, should still works, but Monterey is the best one to use at the moment.
Hello @sickcodes,
I followed the instructions at https://github.com/sickcodes/Docker-OSX#share-folder-with-docker-osx-qemu-macos to mount some documents inside the mac. Unfortunately, the folder I share via volume is not found on the mac.
First I downloaded the catalina from https://images2.sick.codes/mac_hdd_ng_auto.img. I also downloaded the full pre-installed catalina image, and both the big-sur and monterey image. For the big-sur and monterey, I run the container to erase the disk then proceed to the installation. Once done, I copied the mac_hdd_ng.img from the installed docker images in /var/lib/docker to a folder owned by my user. By the way, my user has a UID=1500, and the copied images are owned by 1000:1000 user.
So I have the following images:
For each images I tried the following without success:
Any idea?
Also is it correct that:
-v "${OSX_IMAGE}:/home/arch/OSX-KVM/mac_hdd_ng.img"
?-v "${OSX_IMAGE}":/image
?Unrelated question: after the macos installation, I want to configure the system a bit and do some more installation. To copy the image from the /var/lib/docker, should I dot it while the guest is still up and running, or I have to shut down first then copy the image? Because the options I change in system preferences (like keyboard or mouse settings) are not saved between docker run. Also, is it possible to install directly the big sur os inside Dockerfile or I have to download your image first then do the installation manually before copying the image to use it in the naked image?
Thank you in advance
EDIT: I don't exactly what I did but after a host reboot I can share the folder manually
sudo -S mount_9p hostshare
with the naked image. I still can't automatically mount with the auto image.