How to Install Microsoft 365 / Office Online on Fedora

Install LibreOffice via dnf or use Office Online in a browser; native Microsoft 365 installation is not supported on Fedora.

You need Office, but Fedora doesn't speak Windows

You just finished setting up Fedora Workstation. You have your dotfiles configured, your tiling window manager is humming, and you are ready to get work done. You download the Microsoft 365 installer from the corporate portal, double-click the .exe, and the system tells you there is no application to open this file. Or you try sudo dnf install office and get a No match error. You are stuck. The native Windows binaries do not run on Linux, and Microsoft does not ship a Fedora package.

The architecture gap

Microsoft 365 desktop apps are compiled for the Windows API. They expect the Windows kernel, the registry, and specific DLLs that Fedora does not provide. Fedora runs the Linux kernel and uses ELF binaries. There is no translation layer built into the base system that can magically turn a Windows installer into a native Fedora package.

You have three distinct paths forward. The web version runs everywhere in a browser. A virtual machine gives you a full Windows environment where the installer works exactly as intended. LibreOffice gives you a native Linux alternative that handles documents without leaving the host system.

The native alternative: LibreOffice

If you only need document editing and can accept minor format differences, LibreOffice is the standard choice. It integrates with the desktop, uses system resources efficiently, and receives updates through the normal package manager. It supports .docx, .xlsx, and .pptx files. Complex layouts with heavy formatting may shift slightly when opened in LibreOffice compared to the Windows app.

Install the suite with a single command. The packages are signed and verified by the Fedora repository.

sudo dnf install libreoffice
# installs the full suite including Writer, Calc, and Impress
# packages are signed and verified by the Fedora repository

Reboot before you debug. Half the time the symptom is gone.

The robust solution: KVM virtual machine

If you specifically need the Windows desktop application, you must run Windows. The standard tool on Fedora is virt-manager. It uses KVM for near-native performance. KVM turns the Linux kernel into a hypervisor, allowing the VM to run with minimal overhead.

Install the group of packages that covers the manager, the emulator, and the library.

sudo dnf install virt-manager qemu-kvm libvirt
# virt-manager provides the GUI for managing VMs
# qemu-kvm provides the hardware emulation backend
# libvirt is the API that connects the manager to the hypervisor

After installation, ensure the libvirt daemon is running. The service manages the virtual machines. Use the enable --now pattern to start the service and ensure it persists across reboots.

sudo systemctl enable --now libvirtd
# enable starts the service now and ensures it starts on boot
# --now combines enable and start in a single transaction

Launch the graphical manager to create a VM.

virt-manager
# opens the graphical interface to create and manage virtual machines

If the window opens and shows the QEMU/KVM connection as active, the stack is ready. Create a new VM, attach your Windows ISO, and proceed with the Windows installation. Once Windows is running, install Microsoft 365 inside the guest.

For users who prefer the terminal, virt-install provides a command-line interface to define and create VMs. This approach is reproducible and scriptable.

virt-install \
    --name Win11-Office \
    --ram 8192 \
    --vcpus 4 \
    --disk size=60 \
    --cdrom /path/to/Windows11.iso \
    --os-variant win11 \
    --network network=default \
    --graphics spice
# --name sets the VM identifier for libvirt
# --ram allocates 8GB of host memory to the guest
# --vcpus assigns four virtual CPUs for performance
# --disk creates a 60GB virtual hard drive in the default pool
# --cdrom mounts the ISO as the boot device
# --os-variant tunes parameters for Windows 11 specifically
# --network connects the VM to the NAT network for internet access
# --graphics uses SPICE protocol for better clipboard and display integration

Check free -h before you allocate RAM. A host that runs out of memory will kill the VM and potentially crash the desktop.

Verify the stack

Verify the VM exists and check its state. The virsh command-line tool queries libvirt directly.

virsh list --all
# lists all defined VMs and their current state
# helps you verify the VM exists before trying to start it

If the output shows your VM name with a state of shut off or running, the configuration is valid. Start the VM and complete the Windows setup.

Run journalctl -xe if the VM fails to start. The logs will indicate whether the issue is a missing ISO, insufficient resources, or a configuration error. Read the actual error before guessing.

Common pitfalls

Users often try Wine to run Office. Wine is a compatibility layer, not a full OS. Microsoft 365 relies on deep Windows integration and telemetry that often breaks in Wine. You will encounter crashes or missing features. The error wine: cannot find L"C:\\windows\\system32\\ntdll.dll" indicates the Wine prefix is corrupted or uninitialized. Do not spend hours debugging Wine for Office. Use a VM.

Another pitfall is resource contention. A VM needs RAM and CPU. If your host is low on memory, the VM will thrash. Check your available resources before allocating 8GB to a guest.

free -h
# shows total, used, and available memory in human-readable units
# ensures you have enough RAM for both Fedora and the Windows VM

A third issue is clipboard sharing. If copy-paste between Fedora and the VM does not work, install the guest agents inside Windows. The agents provide drivers and integration features. Without them, the VM is isolated from the host desktop.

Trust the VM isolation. Run the Windows installer inside the guest. Never execute .exe files directly on the Fedora host.

Choose the right path

Use the web version when you only need occasional access to documents and your browser is already configured for SSO. Use a KVM virtual machine when you require the full desktop application, need to run Windows-only plugins, or must maintain exact formatting fidelity. Use LibreOffice when you want a native Linux experience, need offline access without a VM, and can tolerate minor layout shifts in complex Word files. Use WPS Office when you need a UI that mimics the Microsoft ribbon and better compatibility with .docx rendering than LibreOffice provides.

Snapshot the system before the upgrade. Future-you will thank you.

Where to go next