> For the complete documentation index, see [llms.txt](https://docs.hackjiji.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hackjiji.org/general/environment-setup/hyper-v.md).

# Hyper-V

## Enable clipboard sharing

1. Enable twins-tweak via kali linux

```console
kali@kali:~$ kali-tweaks
```

In the menu, select *Virtualization*, then *Configure the system for Hyper-V enhanced session mode*. And that’s all there is to do on Kali’s side.

2. On your windows host, type the following Powershell command and restart your computer if needed

```PowerShell
> Set-VM "(YOUR VM NAME HERE)" -EnhancedSessionTransportType HVSocket
```

## Create a VM from a VHDX file

1. Go to Quick Create
2. Select "\_Local Installation Source"
3. Choose the VHDX file and create a Virtual Machine

<figure><img src="https://content.gitbook.com/content/C4CcD9gCTFzGtXx2V5PP/blobs/0aJbVu16XSX96dfHy4PP/image.png" alt=""><figcaption></figcaption></figure>

More information can be found here: <https://www.kali.org/docs/virtualization/install-hyper-v-guest-enhanced-session-mode/#changing-the-setting-of-the-virtual-machine>
