UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Support SD Card Slot

Open seangineer opened this issue 3 years ago • 1 comments

Add support for attaching an SD Card through the built-in card reader in some modern Macs.

Currently, when plugging something into the slot, it is not exposed by UTM, i.e. as a USB device to attach to the guest. For some context, my use case is working with non-MacOS native file systems, such as files on an SD card intended for a Linux single board computer.

For reference, I am using a 2021 14" M1 Pro MacBook Pro.

seangineer avatar Jul 31 '22 12:07 seangineer

precisely what I'm trying to do... any workarounds in the meantime? :/

mchccc avatar Aug 17 '22 14:08 mchccc

any updates?

wr1159 avatar Jan 16 '23 11:01 wr1159

same I need to access sdcard

asyba avatar Mar 03 '23 13:03 asyba

QEMU supports this but I doubt Apple's virtualization framework supports it. I cannot find anything that would enable such a feature in their docs — see the device types documented here: https://developer.apple.com/documentation/virtualization/vzvirtualmachineconfiguration#3667140 I'd love to be proven wrong though.

guillaumekh avatar Mar 10 '23 15:03 guillaumekh

QEMU supports this but I doubt Apple's virtualization framework supports it. I cannot find anything that would enable such a feature in their docs — see the device types documented here: https://developer.apple.com/documentation/virtualization/vzvirtualmachineconfiguration#3667140 I'd love to be proven wrong though.

yeah I was reading around the web and is something from Apple that prevents VM to read it. I just bought a cheap SD-CARD reader to usb-c and it works on UTM I can read the sdcard

asyba avatar Mar 10 '23 22:03 asyba

My workaround for access to an ext4 sd card is to create an image of it:

# get the disk with 'diskutil list'
dd if=/dev/disk4 of=~/Desktop/dump.img
# pwd = ~/Desktop
brew install qemu
qemu-img convert -f raw -O qcow2 dump.img dest.qcow2

then create a new disk for the machine in UTM and import the .qcow2 file. I suppose etcher can write it back to a card, but i haven't tried that

wiegell avatar Jul 13 '23 22:07 wiegell

QEMU supports many models of SD card slots, for now adding support for virtual sd cards would be nice.

upintheairsheep avatar Aug 24 '23 00:08 upintheairsheep

Just try to edit a Raspberry Pi SD-Card with UTM and Gparted Live and was stuck here.

saschafoerster avatar Aug 26 '23 10:08 saschafoerster

An external USB card reader will do the trick until this bug is fixed.

politician avatar Oct 19 '23 10:10 politician