How to Install Kali Linux on a Secondary Drive without affecting Windows & WSL Performance

Current Setup (Mine):
4 disks: In PowerShell run [to check the statuss of disks]
Get-PsDrive -PSProvider FileSystem
C:\ consist of Home (Windows 11)
W:\ consist of WSL (Ubuntu + Debian)
- Confirmation:- [
PowerShell]
- Confirmation:- [
Target Set Up:
C:\ remains untouched, for future experimental accidents, to avoid any root windows failures
And as there’s 266 GB of space available in W:\ (in my case), we will set up Kali Linux inside W:\ only, along with WSL running in parallel but inside a VM (VirtualBox) for distributed (limited) machine load, as it operates dynamically, doesn’t immediately occupy the complete 60-80 GB required space of Kali Linux on our local machine.
1. Why won't it interfere with WSL
WSL and VirtualBox are like two different apps running on the same computer.
WSL (Ubuntu/Debian): Lives in a hidden utility VM managed by Windows.
Kali VM: Lives in a standard folder you created on
W:\VMs\.
They use the same "engine" (the Windows Hypervisor Platform), so they can run at the exact same time without fighting for control of your hardware.
2. "Will it stay in that folder?"
Yes. When you extract the Kali image and "Add" it to VirtualBox, everything Kali does - every tool you install, every file you save - stays inside a single large file (usually ending in .vdi) located in W:\VMs\Kali-Linux\.
No Registry Bloat: It won't scatter files across your Windows C:\ drive.
Portability: If you ever get a new laptop, you can literally copy that
W:\VMsfolder to an external drive, plug it into the new PC, and your Kali setup will be exactly where you left it.
3. Potential "Troubles" to Watch For (and how to fix them)
While they won't break each other, they do share your physical resources (RAM and CPU).
RAM Usage: If you give Kali 8 GB of RAM and Ubuntu is already using 4 GB, and Windows needs 4 GB... your system might slow down.
- Fix: Since you have a Home version of Windows 11, just make sure you don't run too many heavy apps (like Chrome with 50 tabs) while both Kali and WSL are active.
Network Conflicts: Sometimes, if you try to run a "Web Server" on Kali and a "Web Server" on WSL using the same port (like port 80), they might clash.
- Fix: In VirtualBox, use "NAT" mode for networking. This gives Kali its own private internal IP address separate from your Windows/WSL IP.
Conclusion Glimpse:
Set Up:
To ensure VirtualBox and WSL don't fight over your CPU, run this one command in your PowerShell (as Administrator) just to be 100% sure the required Windows feature is active:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
o/p:
So opening PowerShell and running as an administrator:
confirm again-
Now-
-> Click here for {Set-Up Steps}
Step-by-Step Execution:
Install VirtualBox: Download the
.exeand install it. If it asks for a location, just hit "Next" and let it go to C:\ .Redirect the Storage: * Open VirtualBox.
Go to File > Preferences > General.
Set Default Machine Folder to
W:\VMs.
Setup Kali:
Manually create the folder
W:\VMs\Kali-Linux.Extract your downloaded Kali
.7zfile into that folder.In the VirtualBox app, click Machine > Add and select the
.vboxfile from that folder on W:.
For File > Preferences > General, you should set it to:
W:\VMs
Why not W:\VMs\Kali-Linux?
The "Default Machine Folder" is the parent folder where VirtualBox will look for all your virtual machines.
When you set it to W:\VMs, VirtualBox will treat that as the main "garage."
If you decide to install another OS later (like a Windows Server or another Linux flavor), VirtualBox will automatically create a new sub-folder for it inside W:\VMs (e.g., W:\VMs\WindowsServer).
If you pointed it directly to W:\VMs\Kali-Linux, things would get messy because VirtualBox would try to put files for other machines inside your Kali folder.
The Final Folder Structure on W:\
Once you are done, your drive will look like this:
W:\WSL\(Your existing Ubuntu/Debian)W:\VMs\(The "Global" VM folder)Kali-Linux\(The specific folder where your Kali.vboxand.vdifiles live)
Quick Recap of the "Add" step:
Set the Preference to
W:\VMs.Click Machine > Add.
Open VirtualBox.
In the top menu, click Machine > Add (or press
Ctrl + A).A file explorer window will open. Navigate to:
W:\VMs\Kali-Linux\kali-linux-2026.1-virtualbox-amd64\Look for a file ending in
.vbox(it usually has a blue cube icon and might be namedkali-linux-2026.1-virtualbox-amd64.vbox).Select that file and click Open.
Result: Kali Linux will now appear in the left-hand sidebar of VirtualBox.
2. Quick Hardware Check (For a CS Student's PC)
Before you hit Start, let's make sure it doesn't lag. Right-click the Kali entry in the list and select Settings:
System > Processor: Give it 2 or 4 cores. (Since you handle competitive programming and open-source projects, you'll want the speed).
System > Motherboard: Ensure it has at least 2048 MB (2 GB) of RAM.
Display > Video Memory: Slide this to the max (128 MB). This makes the desktop environment much smoother.
General > Advanced: Set Shared Clipboard to Bidirectional. This is a lifesaver for copy-pasting code/commands from Windows.
3. The "Ignition" (First Boot)
Click the green Start arrow at the top.
A new window will pop up. You’ll see some text scrolling - that’s the Linux kernel waking up.
When you reach the login screen, enter the default credentials:
- Username:
kali& Password:kali
- Username:
Result:
Welcome to Dragon Mode {Kali-Linux}:
How to Access it in future:
1. The Standard Way (GUI)
Whenever you want to start hacking or practicing your CSE labs:
Open VirtualBox from your Start Menu.
Select Kali-Linux from the list on the left.
Click the green Start arrow.
To Close it: Don't just "X" out the window like a browser. Inside Kali, click the Power icon (top right) and select Shut Down. This ensures your virtual hard drive on W: doesn't get corrupted.
2. The "Pro" Way (Save State)
If you are in the middle of a project (like a ZenYukti task or a DSA problem) and don't want to close your terminals:
Click the "X" on the VirtualBox window i.e) close the VM window.
Select "Save the machine state".
Result: VirtualBox will freeze Kali exactly where it is and save it to your W: drive. Next time you click Start, it will "wake up" in 2 seconds exactly where you left off.






