cirruslabs / tart

macOS and Linux VMs on Apple Silicon to use in CI and other automations
https://tart.run
Other
3.76k stars 106 forks source link

Getting error "Your installation media couldn't be mounted." On kali linux installation from ISO #679

Closed NavpreetDevpuri closed 9 months ago

NavpreetDevpuri commented 9 months ago

I have downloaded kali-linux-2023.3-installer-arm64.iso I tried to install Kali Linux using the following command

tart create --linux --disk-size 89 kali_2023.3;
tart run --disk /Users/user/Downloads/kali-linux-2023.3-installer-arm64.iso kali_2023.3

I am getting the following error during the installation

Screenshot 2023-12-03 at 13 59 44
casual-slav commented 9 months ago

If you take out the usb/cd and put it back in and select yes a couple of times it fixes this

casual-slav commented 9 months ago

Also, if you get other errors and are using rufus to create the install, use etcher instead as kali no longer works well with rufus

NavpreetDevpuri commented 9 months ago

@casual-slav Thank you for your reply. The point is I am directly booting it from an ISO file, which is a raw ISO file downloaded directly from the kali Linux site. So, there is no USB/CD or rufus is involved. Note: Same way I successfully instead Ubuntu Server by booting from ISO.

edigaryev commented 9 months ago

Unfortunately, Virtualization.Framework doesn't support CDROMs at all, and Kali's installer is pretty old-school about the way it detects the installation media.

To fix this, you'll need to run the following keyboard shortcut after booting, but before proceeding with the installation:

Fn + Control + Option + F2

This will open up a console, there you type Enter and the following commands:

umount /dev/vda2
mkdir /cdrom
mount -t iso9660 /dev/vda /cdrom

Now, to get back to the graphic installer, press Fn + Control + Option + F5 and continue installing normally.

Hopefully that helps!