I have previously shown how to install Ubuntu in Hyper-V enhanced mode but I was googling how to do it for other distros, and came across how to do it for Kali Linux
I could not believe how simple it was compared to setting up Ubuntu. Basically one command in step 3 does all the hard work!
Edit: I have just discovered it has sound as well. I had to go through hoops and loops to get sound in Ubuntu!
Ubuntu - eat your heart out!!!
1) Download Kali iso
2) Install Kali in Hyper-V as a gen 2 pc in usual way (secure boot needs to be off), setting up an account name and password.
Loads of guides on web how to do this but pretty straight forward. Assume you have call Kali VM simply "Kali"
3) once logged into Kali, open up terminal and run
select "virtualisation" and then "Configure the system for Hyper-V enhanced session mode"
That installs XRDP.
4) close down Kali VM
5) Run following from admin Powershell
(Change vm name in quotes if you used a different one in Step 2)
6) Reboot pc and restart hyper-v Kali vm.
It will come up with the standard Hyper-V enhanced mode pop up screen where you can choose resolution, Windows drives to share with Kali (must be set up as shared drives in Windows in usual way).

It will then come up with the xrdp login screen and you enter name and password

You can now see shared drives from Windows (if you have set up shares)

You can also cut and paste now between Windows and Kali.
I could not believe how simple it was compared to setting up Ubuntu. Basically one command in step 3 does all the hard work!
Edit: I have just discovered it has sound as well. I had to go through hoops and loops to get sound in Ubuntu!
Ubuntu - eat your heart out!!!
1) Download Kali iso
2) Install Kali in Hyper-V as a gen 2 pc in usual way (secure boot needs to be off), setting up an account name and password.
Loads of guides on web how to do this but pretty straight forward. Assume you have call Kali VM simply "Kali"
3) once logged into Kali, open up terminal and run
Code:
kali-tweaks
select "virtualisation" and then "Configure the system for Hyper-V enhanced session mode"
That installs XRDP.
4) close down Kali VM
5) Run following from admin Powershell
Code:
Set-VM "Kali" -EnhancedSessionTransportType HVSocket
(Change vm name in quotes if you used a different one in Step 2)
6) Reboot pc and restart hyper-v Kali vm.
It will come up with the standard Hyper-V enhanced mode pop up screen where you can choose resolution, Windows drives to share with Kali (must be set up as shared drives in Windows in usual way).

It will then come up with the xrdp login screen and you enter name and password

You can now see shared drives from Windows (if you have set up shares)

You can also cut and paste now between Windows and Kali.
Last edited:
My Computer
System One
-
- OS
- Windows 10 Pro + others in VHDs
- Computer type
- Laptop
- Manufacturer/Model
- ASUS Vivobook 14
- CPU
- I7
- Motherboard
- Yep, Laptop has one.
- Memory
- 16 GB
- Graphics Card(s)
- Integrated Intel Iris XE
- Sound Card
- Realtek built in
- Monitor(s) Displays
- N/A
- Screen Resolution
- 1920x1080
- Hard Drives
- 1 TB Optane NVME SSD, 1 TB NVME SSD
- PSU
- Yep, got one
- Case
- Yep, got one
- Cooling
- Stella Artois
- Keyboard
- Built in
- Mouse
- Bluetooth , wired
- Internet Speed
- 72 Mb/s :-(
- Browser
- Edge mostly
- Antivirus
- Defender
- Other Info
- TPM 2.0