Armitage: Exploit failed error ‘undefined method ‘socket’ [Virtual Box – Linux & Windows Server]

Background info: I already have installed Kali Linux as per my professor’s instructions onto VirtualBox (yes, I have a Mac).

Project info: Our professor gave us a Windows server zip file to download as a VM. On his instructions, he moves the folder to the VM folder your computer has, uploads the .vmx file into a new machine onto VMware, but once again I have a Mac. I researched how to do this properly, so I created a new machine and used the existing disk of the .vmdk file. Then, on VirtualBox, one VM will not communicate to another VM naturally, as it does on VMware. Thus, I added both of the VMs are on the NAT network on adapter 2 so that they can communicate with each other. Everything is working seamlessly.

Main issue: We are instructed to do an nmap scan on kali’s terminal to find the Window VM’s ip address, I was able to that, and also do a vulnerability scan on openvas successfully. After this, the professor has instructed us to open up Armitage and run an nmap scan once again. Then he says to find the exploit Windows>smb>ms09_050_smb2_negotiate_func_index. I find it, double click on it (while highlighting the window server icon that popped up after the nmap scan on Armitage) and as the professor recommends, I kept all of the info the same, just choose ‘use reverse connection’ and launched the exploit. The error I keep getting is: Exploit failed: NoMethodError undefined method ‘socket’ for nil:NilClass.

I can’t figure out how to fix this, I’ve tried everything. Any help would be appreciated!