You can’t install Windows 7 “inside” Windows 10 as a regular program, but you can run it in a virtual machine (VM): a complete, isolated PC that runs in a window on your desktop. That’s the safe way to use old software or games that need Windows 7. This guide compares the free VM options, shows the full setup with Hyper-V and VirtualBox, covers what you need (including a legitimate Windows 7 installer and product key), and explains how to keep the VM secure now that Windows 7 no longer gets updates.
Quick Answer
Install a virtual machine app such as VirtualBox (free), VMware Workstation Pro (free for personal use), or Hyper-V (built into Windows 10 Pro and above). Create a new VM with about 2 GB of RAM and a 32 GB virtual disk, attach your Windows 7 ISO, and follow the installer. Keep the VM offline or isolated unless it absolutely needs internet access.

Before You Start
- Windows 7 ended support on January 14, 2020. It receives no security updates, and modern browsers and many apps no longer support it.
- You need a Windows 7 ISO and a valid product key. Microsoft no longer offers Windows 7 downloads. Use the installation media and key you already own; avoid unofficial ISO sites, which may include malware.
- Enable virtualization in UEFI/BIOS (Intel VT-x or AMD-V). Check in Task Manager > Performance > CPU: Virtualization: Enabled.
- Resources: at least 8 GB of RAM on your PC is comfortable, plus 30 GB or more of free disk space.
Which Virtual Machine App?
| App | Cost | Works on | Notes |
|---|---|---|---|
| Hyper-V | Included | Windows 10 Pro, Enterprise, Education | Built in; guest integration for Windows 7 is basic |
| VirtualBox | Free | All editions, including Home | Guest Additions add shared folders and better display |
| VMware Workstation Pro | Free for personal use | All editions | Strong graphics support; VMware Tools recommended |
Hyper-V and other hypervisors can conflict on some PCs. If you use VirtualBox or VMware and see performance warnings, check whether Hyper-V or related features are enabled.
Option 1: Hyper-V (Windows 10 Pro and Above)
- Search for Turn Windows features on or off, check Hyper-V, click OK, and restart.
- Open Hyper-V Manager and choose Action > New > Virtual Machine.
- Name it and choose Generation 1. Windows 7 works most reliably as Generation 1.
- Assign 2048 MB of memory (64-bit) or 1024 MB (32-bit).
- For networking, choose Not Connected for now.
- Create a virtual hard disk of 32 GB or more.
- Choose Install an operating system from a bootable image file and select your Windows 7 ISO.
- Click Finish, then Connect and Start, and follow the Windows 7 setup.
Option 2: VirtualBox (Any Edition)
- Download VirtualBox from its official site and install it.
- Click New, name the VM, select your ISO, and set the type to Windows 7 (64-bit or 32-bit to match the ISO). Skip unattended installation if you want to enter settings yourself.
- Set memory to 2048 MB and 1 or 2 processors.
- Create a 32 GB or larger virtual disk.
- In Settings > Network, set Adapter 1 to Not attached until setup is done.
- Click Start and install Windows 7.
- After installing, choose Devices > Insert Guest Additions CD image and run the installer for better resolution, mouse integration and shared folders.
Option 3: VMware Workstation Pro
- Install VMware Workstation Pro from the official site; a free personal-use license is offered.
- Choose Create a New Virtual Machine, select Typical, and point to the ISO.
- Pick Windows 7 as the guest OS, set a 32 GB disk, and finish.
- After installing Windows 7, install VMware Tools from the VM menu.
Keep a Windows 7 VM Safe
- Stay offline if your old software doesn’t need internet. Use shared folders or a virtual ISO to move files in.
- If it must go online, use a NAT or host-only network, don’t browse the web or read email inside it, and don’t sign in to important accounts.
- Take a snapshot (checkpoint in Hyper-V) after setup so you can roll back instantly if something goes wrong.
- Don’t share drives from your main PC unless needed, and scan files you copy out of the VM.
Alternatives to a Windows 7 VM
- Compatibility mode: right-click the program, choose Properties > Compatibility, and select Windows 7. Many old programs work this way without a VM.
- Program Compatibility Troubleshooter: search for Run programs made for previous versions of Windows.
- Dual boot: possible on some PCs, but modern hardware often lacks Windows 7 drivers, so a VM is usually easier and safer.
Windows 10 itself reached end of support on October 14, 2025. These VM steps work the same on Windows 11.
Frequently Asked Questions
Is Windows XP Mode still available?
No. XP Mode was a Windows 7 feature and doesn’t exist in Windows 10.
Can I use my old Windows 7 key?
Retail keys can usually be used in a VM. OEM keys are tied to the original PC under their license terms.
Will Windows 7 activate?
Activation servers have generally continued to work for valid keys, but this isn’t guaranteed. Phone activation may be needed.
Summary
- Use a VM: Hyper-V, VirtualBox or VMware Workstation Pro.
- Create a VM with 2 GB RAM, a 32 GB disk and your Windows 7 ISO.
- Install Windows 7 and the guest tools.
- Keep it offline or isolated and take a snapshot.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.