Whonix assumes your browser will eventually get hacked and plans for it. Instead of running Tor and your applications on the same system, it puts them in two separate virtual machines. One machine, the Gateway, runs Tor and nothing else. The other, the Workstation, runs your browser, chat apps and everything you actually use, and its only network connection is an internal link to the Gateway.
The Workstation doesn't know your real IP address. It can't find out, because it has never been told and has no route to the outside except through Tor. If an exploit gets code running inside it, that code can read your files in the Workstation, but it can't simply ask the network card for the public address. That's the core idea, and it's the main reason people choose Whonix over a plain Tor Browser install.
The two halves
Whonix-Gateway is a small Debian-based system with Tor, a firewall and a few helper services. You don't browse from it. It typically sits at 10.152.152.10 on the internal network, and the Workstation sits at 10.152.152.11. All TCP from the Workstation is forced through Tor, either through SOCKS ports or transparent proxying, and DNS gets resolved by Tor so there's nothing to leak over DNS.
Whonix-Workstation is a desktop (Xfce in the standard images) with Tor Browser and a selection of preinstalled apps. Many of them are already configured for stream isolation, meaning separate apps get separate Tor circuits. Your browser traffic and your apt updates won't come out of the same exit relay, which makes it harder to link activities together.
Both are built on Kicksecure, the same team's hardened Debian derivative. Kicksecure adds things like a hardened kernel configuration, stricter defaults and a time-sync tool called sdwdate, which fetches time from onion services rather than NTP so your clock doesn't become a fingerprint or a leak.
Getting it running
The most common setup is VirtualBox on Windows, macOS (Intel) or Linux. Whonix publishes a single .ova file that contains both machines. In VirtualBox, choose File, then Import Appliance, point it at the file, accept the licence screens, and you'll get Whonix-Gateway and Whonix-Workstation as separate entries.
Start the Gateway first. On first boot it runs a connection wizard where you choose to connect directly or configure bridges. Once Tor shows as connected, start the Workstation. The default account is user. Older releases shipped with the well-known password changeme, and newer ones handle it differently, so check the current documentation and set a real password with passwd on both machines if you're going to leave them running.
On Linux, KVM is the better option. It performs better than VirtualBox, and the Whonix developers have been increasingly unhappy with VirtualBox's licensing and security story. The KVM images come as qcow2 files with XML definitions you import through virsh:
sudo virsh -c qemu:///system net-define Whonix_external*.xml
sudo virsh -c qemu:///system net-define Whonix_internal*.xml
sudo virsh -c qemu:///system define Whonix-Gateway*.xml
sudo virsh -c qemu:///system define Whonix-Workstation*.xml
The file names change between releases, so follow the current instructions on whonix.org rather than copying commands from an old blog post (including this one).
Then there's Qubes, where Whonix is built in as sys-whonix and anon-whonix. That's the setup a lot of long-term Whonix users end up with. We cover it in Qubes OS and Qubes-Whonix.
Things that trip people up
RAM
Two VMs plus your host need memory. The Gateway is light, and can run on around 512 MB to 1 GB. The Workstation wants 2 GB or more if you're going to have a modern browser open. On an 8 GB laptop with Chrome running on the host, things get tight quickly.
Updates
Both VMs need updating, separately. Run sudo apt update && sudo apt full-upgrade in each. Tor Browser inside the Workstation is handled by Whonix's own updater (update-torbrowser), not by the browser's built-in updater. People forget the Gateway because they never look at it, and end up with an old Tor.
Time
If the host clock is badly wrong, sdwdate can take a while to fix things, and Tor won't connect until the clock is close enough. Fix the host clock first.
Opening the wrong machine
It sounds silly, but I've seen people boot the Workstation, find no connectivity, then open a browser on the host to search for the error, while logged into things. The whole point of Whonix is that sensitive work happens inside the Workstation. Decide what belongs in there and keep it there.
What Whonix doesn't do
It isn't amnesic. The Workstation keeps history, files, and everything else across reboots, like any normal VM. If someone seizes your computer, the virtual disk images are there to be examined unless you've encrypted the host disk. Whonix has an experimental live mode, which helps, but it isn't the same guarantee Tails gives.
It also can't protect you from a compromised host. The host OS sees the VMs' memory, keystrokes and screen. If your Windows install is full of malware, Whonix running on top of it inherits the problem. That's one of the stronger arguments for Qubes, where there's no general-purpose host OS sitting underneath.
And a VM escape, where malicious code breaks out of the Workstation into the hypervisor, defeats the design. These bugs are rare and valuable, but they do turn up in VirtualBox from time to time.
If you're trying to decide between this and something else, the trade-offs are laid out in Tails vs Whonix vs Qubes. For most people who want a persistent, Tor-only environment for a long-running pseudonymous identity, Whonix is the one I'd point to first.