Run Microsoft Office in a Windows Virtual Machine on Ubuntu
When Office must work exactly like Office — macros, add-ins, activation, print layouts — put real Windows inside Ubuntu. A virtual machine takes longer to set up than Wine, and then it is far more dependable every single day after.
✍️ Technical Anshu🐧 Ubuntu and Linux⏱️ 8 minute read
🎥 Watch the video — the Wine shortcut first, then this page for the heavy-duty route
Inside a virtual machine, Office is not "compatible" or "mostly working" — it is simply Office on Windows, with normal activation, normal updates and normal printing. The costs are real too — RAM, disk space and a Windows licence. This page helps you decide honestly, then sets it up the simple way with GNOME Boxes.
GNOME Boxes — what the Windows virtual machine gives you
RAM .......... 4 GB or more given to the guest
Disk ......... 60 GB virtual disk for Windows and Office
Office ....... installs and activates like a real PC
Clipboard .... shared with Ubuntu once guest tools are in
Rollback ..... snapshots before big Windows updates
Real Windows behaviour at the cost of real Windows resources — that trade is the whole decision.
1
Decide Honestly — VM or Not
Choose the VM if Office is daily work, if your files carry VBA macros or add-ins, if an employer sends documents that must not shift by a pixel, or if you print from Office all day. In a VM, every one of those just works.
Skip the VM if your PC has only 4 GB of RAM in total or a very old processor — the guest will crawl and you will hate both systems. On such a machine the web apps are the right answer, not a slower computer.
2
Install GNOME Boxes
Boxes is the simplest virtual machine tool on Ubuntu — deliberately few settings, everything essential present.
Install with sudo apt install gnome-boxes
VirtualBox is the alternative — more knobs and a seamless mode that hides the Windows desktop — but pick one tool, not both
Download the Windows ISO from Microsoft's own website while Boxes installs
3
Create the Windows Virtual Machine
Open Boxes, click +, and choose Install from file, then pick the Windows ISO
Give the machine at least 4 GB RAM and 60 GB disk if your hardware allows — more RAM is the kindest upgrade
Let Windows setup run exactly as it would on a new PC, and sign in the way you prefer
Run Windows Update fully once before installing anything else
Yes, this first setup takes a while — think of it as building the reliable tool once, instead of repairing the fragile one monthly.
4
Install Office and Activate It Normally
Inside the Windows guest, install Office from your Microsoft account page or your installation media, exactly as on any PC. Sign in, download, install — and here is the payoff — activation works, because as far as Microsoft is concerned this is an ordinary Windows computer.
Your genuine key finally behaves. Macros run. Add-ins install. The document your office sees is the document you see. This is the route the activation guide in this series points to when Wine's wizard refuses a good key.
5
Make It Pleasant — Clipboard, Folders and Snapshots
Three comforts turn a VM from a chore into a tool.
Shared clipboard — install the SPICE guest tools Boxes offers, and copy-paste flows between Ubuntu and Windows
A shared folder — pass one Ubuntu folder into the guest so files move without USB sticks or emailing yourself
Snapshots — take one before big Windows updates, so a bad update is a rollback, not a rebuild
Shut the guest down fully when you are done for the day rather than leaving it suspended forever — Windows likes a real reboot, and your RAM comes back to Ubuntu completely.
🔴 Resource honesty — a Windows VM wants roughly half your machine while it runs. On 8 GB of RAM it is workable, on 16 GB it is comfortable, and it needs its own valid Windows licence just like Office needs its own. If those numbers do not fit your PC, the web apps guide is your page — not this one.
🎥 Compare With the Wine Method
Watch the video's fast Wine install, then weigh it against this VM route — speed of setup versus certainty of work.
Do I need a Windows licence for the virtual machine
Yes. A virtual machine is a real Windows installation in Microsoft's terms and needs its own valid licence, just as Office inside it needs its own. Wine does not change that either — it only changes how activation behaves.
Is a virtual machine slower than Wine
Starting it is slower and it uses far more RAM, but Office itself then runs correctly and predictably — no glitch roulette. For paid work, predictable usually beats fast.
Can the virtual machine use my printer and USB drives
Yes. Boxes and VirtualBox can pass USB devices through to the guest, and network printing works exactly as it does on any Windows PC on your network.
This guide is based on the Technical Anshu video linked above • Stuck on a step? Ask in the video comments — you will get a reply 🙏