This guide shows you how to set up the free and open-source DOS-compatible operating system, FreeDOS, within a Linux environment using the QEMU emulator. This allows you to run legacy DOS software and games on modern hardware without needing a separate DOS machine.
Understanding QEMU
QEMU (Quick Emulator) is a powerful, open-source emulator and virtualizer. It emulates a complete computer system, including processor, memory, and peripherals, letting you run operating systems designed for different architectures. Its lightweight and fast nature makes it ideal for running FreeDOS.
Why Choose FreeDOS?
FreeDOS provides modern DOS functionality with full compatibility for classic DOS applications and games. Its uses include running legacy software, learning DOS commands, testing older programs in a safe environment, and enjoying retro gaming.
Step 1: Installing QEMU on Linux
QEMU is readily available in most Linux distributions. Use your distribution's package manager to install it. Below are examples for popular distributions:
-
Ubuntu/Debian:
sudo apt update sudo apt install qemu qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager
-
Fedora:
sudo dnf install qemu qemu-kvm virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer
-
Arch Linux:
sudo pacman -S qemu qemu-arch-extra virt-manager libvirt
Verify the installation:
qemu-system-x86_64 --version
Step 2: Installing FreeDOS within QEMU
-
Download FreeDOS: Download the latest FreeDOS ISO image (e.g.,
FD14-LiveCD.zip
) from the official FreeDOS website. -
Create a Virtual Disk: Create a 2GB virtual disk image in Qcow2 format for efficient storage and snapshot support:
qemu-img create -f qcow2 freedos.img 2G
-
Extract and Boot the ISO: Extract the downloaded
FD14-LiveCD.zip
archive. Then, boot the FreeDOS ISO image (FD14LIVE.iso
) within QEMU and begin the installation process:unzip FD14-LiveCD.zip qemu-system-x86_64 -hda freedos.img -cdrom FD14LIVE.iso -boot d -m 512
Follow the on-screen instructions to install FreeDOS to the virtual hard disk (freedos.img
). The installation process involves several steps, including selecting the installation target and partitioning the virtual disk. Screenshots illustrating these steps are provided below.
-
Boot FreeDOS Directly: After installation, you can boot FreeDOS directly from the virtual disk:
qemu-system-i386 -m 64 -hda freedos.img -boot c
Step 3: Running DOS Programs
Once FreeDOS is running, you can install and run your DOS applications and games. For example, to run Doom:
- Download the Doom game files.
- Extract them to a directory on your Linux system.
- Mount the directory in QEMU using the
-hdb
option:qemu-system-x86_64 -hda freedos.img -hdb ~/Games/Doom -m 512
- Navigate to the directory within FreeDOS and run the executable (e.g.,
doom.exe
).
Conclusion
This guide enables you to run legacy DOS software and games within your Linux system using QEMU and FreeDOS. This provides a convenient and safe environment for accessing and utilizing this older software.
以上是如何使用QEMU在Linux上安裝和運行Freedos的詳細內容。更多資訊請關注PHP中文網其他相關文章!

Linux'scommandlinecanbemoresecurethanWindowsifmanagedcorrectly,butrequiresmoreuserknowledge.1)Linux'sopen-sourcenatureallowsforquicksecurityupdates.2)Misconfigurationcanleadtovulnerabilities.Windows'commandlineismorecontrolledbutlesscustomizable,with

本指南說明瞭如何在Linux的啟動下自動安裝USB驅動器,從而節省了時間和精力。 步驟1:確定您的USB驅動器 使用LSBLK命令列出所有塊設備。 您的USB驅動器可能會標記為 /dev /sdb1, /dev /sdc1等

跨平台應用程序已徹底改變了軟件開發,從而在Linux,Windows和MacOS等操作系統上實現了無縫功能。 這消除了根據您的設備切換應用程序的需求,提供一致的體驗

人工智能(AI)正在迅速改變許多部門,從醫療保健和金融到藝術和音樂等創意領域。 Linux具有開源性,適應性和性能功能,已成為首要的Platfo

尋找沒有圖形用戶界面(GUI)的快速,最小和高效的Linux分佈? 輕巧,無GUI-Linux發行版非常適合較舊的硬件或服務器和嵌入式系統(例如服務器和嵌入式系統)。他們消耗較少的res

Wine 10.0穩定版發布:在Linux上運行Windows應用更上一層樓 Wine,這款開源免費的應用程序,讓Linux用戶能夠在Unix/Linux類操作系統上運行Windows軟件和遊戲,迎來了10.0穩定版的發布!此版本已提供源代碼和二進制包下載,支持Linux、Windows和Mac等多種發行版。 這一版本凝聚了一年的辛勤工作和超過8600項改進,帶來了諸多令人興奮的提升。主要亮點包括: 增強對藍牙設備的支持。 提升對HID輸入設備的支持。 優化了32位和64位應用程序的運行性能。

該教程通過在RHEL 8.x或9.x上安裝SQL Server 2022,通過SQLCMD命令行工具,數據庫創建和基本查詢連接。 先決條件 開始之前,請確保: 支持的RHEL版本(RHEL 8或9)。 Sudo

Mozilla Thunderbird 135:功能強大的跨平台郵件客戶端 Mozilla Thunderbird是一款免費、開源、跨平台的郵件、日曆、新聞、聊天和聯繫人管理客戶端,旨在高效處理多個電子郵件帳戶和新聞源。 2025年2月5日,Mozilla發布了Thunderbird 135版本,引入了多項新功能、性能改進和安全修復。 Thunderbird 135 主要特性: Linux二進製文件的XZ打包: 文件更小,解包更快,並更好地與現代發行版集成。 Cookie存儲支持: 創建空間時


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

Dreamweaver CS6
視覺化網頁開發工具

記事本++7.3.1
好用且免費的程式碼編輯器

Atom編輯器mac版下載
最受歡迎的的開源編輯器

VSCode Windows 64位元 下載
微軟推出的免費、功能強大的一款IDE編輯器