Metasploitable 2 is a purposely vulnerable virtual machine.
A test environment provides a secure place to perform penetration testing and security research. For your test environment, you need a Metasploit instance that can access a vulnerable target. The following sections describe the requirements and instructions for setting up a vulnerable target."1.
Getting metasploitable setup on the Mac M1 is actually very simple, I will show you exactly how to set it up in the following steps.
1: Download the image from Here
2: Install qemu via brew.
brew install qemu
qemu-img convert -p -O qcow2 Metasploitable.vmdk Metasploitable.qcow2