To install UTM on your macOS M1 device, visit https://mac.getutm.app and download the UTM app, then drag it to the "Applications" folder.
After opening UTM, click on the "Create a new virtual machine" button to proceed with setting up a new virtual machine.
Select the "Virtualize" option to proceed with creating a new virtual machine in UTM.
Select "Linux" as the operating system option in UTM.
In the "Boot ISO image" section, choose the ISO file provided at https://old.kali.org/kali-images/kali-2022.2/kali-linux-2022.2-installer-arm64.iso to use as the bootable image for the Kali Linux installation.
https://old.kali.org/kali-images/kali-2022.2/kali-linux-2022.2-installer-arm64.iso
In the "Hardware" section, allocate an appropriate amount of memory based on the available resources on your computer, ensuring you have enough space. Additionally, it is recommended to choose 4 cores for optimal performance.
In the "Storage" section, allocate a storage size based on the available space on your computer. For example, if you have 32GB available, you can specify that as the size for the drive where data will be stored. Adjust the size according to your specific requirements and available resources.
In the "Shared directory" section, you have the option to select a directory on your macOS host system to make accessible inside the virtual machine (VM). Keep in mind that the support for shared directories can vary depending on the guest operating system you are using in UTM. It may require installing additional guest drivers within the VM. For more details and specific instructions, refer to the UTM support pages.
After naming the virtual machine, you will find a button located in the top left corner resembling a gear or settings icon. Click on this button to access the settings for the virtual machine.
In the "Display" settings, enable the "Retina mode" option. UTM supports retina display, which allows the virtual machine to take advantage of the high-resolution capabilities of your Mac's display, resulting in a sharper and more detailed visual experience within the virtual machine environment.
Virtual Machine-ий navigation bar choose Drive image options
sudo apt update
sudo apt install spice-vdagent spice-webdavd
sudo reboot