-
Notifications
You must be signed in to change notification settings - Fork 114
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
Mounting Block Device on AWS M1 Mac #724
Comments
Thanks @edigaryev! I created a partition and was able to see the device on the VM. However, the device appears in
Any ideas? |
I wasn't able to use a partition as well. What I tried instead is to have another EBS volume and mount it. I also checked and it seems AWS actually doesn't recommend to use SSDs since they don't guarantee their conditions.
Now I formatted it to APFS:
Started a VM with that extra EBS volume:
Then I can see it inside the VM after
So it seems that is a viable solution to mount extra EBS volumes to VMs. These volumes will have 10-15% faster IO since Tart will directly use it instead of writing to PS weird that we were not able to get partition working. Maybe there is some way and I hope we'll figure it one day. |
Are you able to get the SSD to appear using the method above? I tried and it does not appear in the VM. |
Nope, for reason it didn't work. Showed as it was successfully mounted though. But it wasn't available inside the VM. Maybe it needs to be completely formatted but I haven't tested it. |
@fkorotkov I tried formatting it as well, but no luck 😕 |
@sanieldalib I think I've found a quick and dirty workaround for this. Create a disk image of the desired size on the attached SSD:
Mount it (no
On the first mount the disk will need to be initialized from within the VM, but for the rest of the VM invocations it will auto-mount just fine, without the need for the manual intervention. |
Closing since it seems we have couple of options including mounting a separate EBS volume. |
@edigaryev Thank you for the SSD disk image workaround! I just tested it and its working for me. However, my understanding is that there is a performance cost to using a disk image in place of the SSD directly. Have you had any luck with using the SSD directly? |
Additionally do you know if using more performant disk image formats (specifically .sparsebundle) is supported? |
Hi @edigaryev @fkorotkov, just following up on this 😄 |
I think it might correlate with #790. 🤔 |
Yes, see #724 (comment).
Yes, they work similarly to a physical device. |
@edigaryev I've implemented your suggestion of using a SSD hosted disk image, however creating a non-sparse image using
takes quite some time prior to each build, which scales with the disk image size
Meanwhile using either However, neither sparse format works as expected.
Any ideas if it is possible to use a sparse format disk image? CC @fkorotkov EDIT: |
You have to mount this sparse bundle beforehand, and then pass the resulting virtual disk to Tart, for example, if the sparse bundle was mounted as % diskutil list /dev/disk4
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +53.7 GB disk4
1: EFI EFI 209.7 MB disk4s1
2: Apple_APFS Container disk5 53.5 GB disk4s2 Then run the following commands: diskutil unmountDisk /dev/disk4
tart run --disk /dev/disk4 <VM> |
Hey there!
I am trying to use the feature added here: #611 to mount a volume on the SSD of an AWS M1 Mac to a Tart VM.
I created a volume on the SSD called
Tart
usingwhich appears when running
diskutil list
:I then start the Tart VM like so:
However once the VM boots, I get the following message:
checking Disk Utility on the VM yields the following:
diskutil list
on the VM yields the following:Finally the only volume appears to be Macintosh HD:
For reference, the host is running macOS 14.2.1 and the VM macOS 14.3.
I suspect something is incorrect with the volume I created, any help would be appreciated 😄
The text was updated successfully, but these errors were encountered: