轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥8起我的订单
文档
工具
提交工单页面收录
qemu

qemux/qemu

qemux

一个在Docker容器中运行虚拟机的QEMU镜像,提供Web界面控制,支持多种磁盘格式(如.iso、.qcow2、.vmdk等),并具备KVM加速等高性能选项,实现接近原生的运行速度。

13 次收藏下载次数: 0状态:社区镜像维护者:qemux仓库类型:镜像最近更新:4 天前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这段话即可:

请先阅读并遵守:https://xuanyuan.cloud/agents.md

未读文档前不要生成 pull 命令或排错方案。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

DockerHub 官方简介
轩辕镜像中文简介
下载命令
镜像标签列表与下载命令
轩辕镜像,加速的不只是镜像。
点击查看

QEMU
https://github.com/qemus/qemu

https://github.com/qemus/qemu/ https://hub.docker.com/r/qemux/qemu/tags https://hub.docker.com/r/qemux/qemu/tags https://github.com/qemus/qemu/pkgs/container/qemu https://hub.docker.com/r/qemux/qemu/

Docker container for running virtual machines using QEMU.

Features ✨

  • Runs virtual machines inside a Docker container
  • Supports almost every disk and image format
  • Web-based viewer for controlling the VM
  • Near-native performance with KVM acceleration
  • Customizable CPU, memory, and storage allocation
  • Hardware-accelerated OpenGL, Vulkan and vDRM graphics
  • Dynamic memory allocation with memory ballooning
  • USB passthrough and host folder sharing
  • Supports NAT, user-mode, macvlan, and macvtap networking
  • Automatic downloads for popular Linux distributions

Usage 🐳

Docker Compose:

yaml
services:
  qemu:
    image: qemux/qemu
    container_name: qemu
    environment:
      BOOT: "mint"
    devices:
      - /dev/kvm
      - /dev/net/tun
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
    volumes:
      - ./qemu:/storage
    restart: always
    stop_grace_period: 2m

Docker CLI:

bash
docker run -it --rm --name qemu -e "BOOT=mint" -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v "${PWD:-.}/qemu:/storage" --stop-timeout 120 docker.io/qemux/qemu

Kubernetes:

shell
kubectl apply -f https://raw.githubusercontent.com/qemus/qemu/refs/heads/master/kubernetes.yml

GitHub Codespaces:

Requirements ⚙️

  • Docker or Podman on a Linux host with KVM support.
  • Docker Desktop or Podman (Desktop) on Windows 11 with nested virtualization enabled.

[!NOTE] Docker Desktop on Linux, macOS, and Windows 10 does not currently provide KVM access to containers and is therefore not supported.

FAQ 💬

How do I use it?

Very simple! These are the steps:

  • Set the BOOT variable to the operating system you want to install.

  • Start the container and connect to port 8006 using your web browser.

  • Complete the installation using the web-based viewer.

Enjoy your brand new machine, and don't forget to star this repo!

How do I select the operating system?

You can use the BOOT environment variable in order to specify the operating system that will be downloaded:

yaml
environment:
  BOOT: "mint"

Select from the values below:

ValueOperating SystemSize
almaAlma Linux2.2 GB
alpineAlpine Linux60 MB
archArch Linux1.2 GB
cachyCachyOS2.6 GB
centosCentOS7.0 GB
debianDebian3.3 GB
fedoraFedora2.3 GB
gentooGentoo3.6 GB
kaliKali Linux3.8 GB
kubuntuKubuntu4.4 GB
mintLinux Mint2.8 GB
manjaroManjaro4.1 GB
mxMX Linux2.2 GB
nixosNixOS2.4 GB
suseOpenSUSE1.0 GB
rockyRocky Linux2.1 GB
slackSlackware3.7 GB
tailsTails1.5 GB
ubuntuUbuntu Desktop6.0 GB
ubuntusUbuntu Server3.0 GB
xubuntuXubuntu4.0 GB
zimaZimaOS1.4 GB
zorinZorin OS3.8 GB

How can I use my own image?

If you want to download an operating system that is not in the list above, you can set the BOOT variable to the URL of the image:

yaml
environment:
  BOOT: "https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/x86_64/alpine-virt-3.19.1-x86_64.iso"

The BOOT URL accepts files in any of the following formats:

ExtensionFormat
.imgRaw
.rawRaw
.isoOptical
.qcow2QEMU
.vmdkVMware
.vhdVirtualPC
.vhdxHyper-V
.vdiVirtualBox

It will also accept files such as .img.gz, .qcow2.xz, .iso.zip and many more, because it will automatically extract compressed files.

Alternatively you can use a local image file directly, by binding it in your compose file:

yaml
volumes:
  - ./example.iso:/boot.iso

This way you can supply either a /boot.iso, /boot.img or a /boot.qcow2 file. The value of BOOT will be ignored in this case.

How do I change the storage location?

To change the storage location, include the following bind mount in your compose file:

yaml
volumes:
  - ./qemu:/storage

Replace the example path ./qemu with the desired storage folder or named volume.

How do I change the size of the disk?

To expand the default size of 64 GB, add the DISK_SIZE setting to your compose file and set it to your preferred capacity:

yaml
environment:
  DISK_SIZE: "128G"

[!TIP] This can also be used to resize an existing disk to a larger capacity without any data loss. However, you will need to manually extend the disk partition afterwards inside your OS, since the added disk space will appear as unallocated.

How do I change the amount of CPU or RAM?

By default, the VM will be allowed to use 2 CPU cores and 2 GB of RAM.

If you want to adjust this, you can specify the desired amount using the following environment variables:

yaml
environment:
  RAM_SIZE: "8G"
  CPU_CORES: "4"

How do I share files with the host?

To share files with the host, first ensure that your guest OS has 9pfs support compiled in or available as a kernel module. If so, add the following volume to your compose file:

yaml
volumes:
  - ./example:/shared

Then start the container and execute the following command in the guest:

shell
mount -t 9p -o trans=virtio shared /mnt/example

Now the ./example directory on the host will be available as /mnt/example in the guest.

How do I enable audio?

Audio is disabled by default. To stream it to the browser, add the following environment variable:

yaml
environment:
  AUDIO: "Y"

Then enable Audio under Settings → Advanced in the web viewer. The stream is only active while this option is enabled, so it uses no extra bandwidth otherwise.

How do I boot ARM64 images?

You can use the https://github.com/qemus/qemu-arm/ container to run ARM64-based images.

How do I boot Windows?

Use https://github.com/dockur/windows instead, as it includes all the drivers required during installation, amongst many other features.

How do I boot macOS?

Use https://github.com/dockur/macos instead, as it uses all the right settings and automatically downloads the installation files.

How do I boot without UEFI?

By default, the machine will boot with UEFI enabled. If your OS does not support that, you can boot with a legacy BIOS:

yaml
environment:
  BOOT_MODE: "legacy"

How do I boot without VirtIO drivers?

By default, the machine makes use of virtio-scsi drives for performance reasons, and even though most Linux kernels bundle the necessary driver for this device, that may not always be the case for other operating systems.

If your machine fails to detect the hard drive, you can modify your compose file to use virtio-blk instead:

yaml
environment:
  DISK_TYPE: "blk"

If it still fails to boot, you can set the value to ide to emulate a IDE drive, which is relatively slow but requires no drivers and is compatible with almost every system.

How do I expose network ports?

When using bridge networking, you can expose ports by adding them to your compose file. If you want to be able to connect to the SSH service of the machine for example, you would add it like this:

yaml
ports:
  - 2222:22

This will make port 2222 on your host redirect to port 22 of the virtual machine.

When using user-mode networking (for example when running under Podman), you will also need to add those ports to the USER_PORTS variable like this:

yaml
environment:
  USER_PORTS: "22,80,443"

How do I assign an individual IP address to the container?

By default, the container uses bridge networking, which shares the IP address with the host.

If you want to assign an individual IP address to the container, you can create a macvlan network as follows:

bash
docker network create -d macvlan \
    --subnet=192.168.0.0/24 \
    --gateway=192.168.0.1 \
    --ip-range=192.168.0.100/28 \
    -o parent=eth0 vlan

Be sure to modify these values to match your local subnet.

Once you have created the network, change your compose file to look as follows:

yaml
services:
  qemu:
    container_name: qemu
    ..<snip>..
    networks:
      vlan:
        ipv4_address: 192.168.0.100

networks:
  vlan:
    external: true

An added benefit of this approach is that you won't have to perform any port mapping anymore, since all ports will be exposed by default.

[!IMPORTANT] This IP address won't be accessible from the Docker host due to the design of macvlan, which doesn't permit communication between the two. If this is a concern, you need to create a second macvlan as a workaround.

How can the VM acquire an IP address from my router?

After configuring the container for macvlan, it is possible for the VM to become part of your home network by requesting an IP from your router, just like a real PC.

To enable this mode, in which the container and the VM will have separate IP addresses, add the following lines to your compose file:

yaml
environment:
  DHCP: "Y"
devices:
  - /dev/vhost-net
device_cgroup_rules:
  - 'c *:* rwm'

How do I add multiple disks?

To create additional disks, modify your compose file like this:

yaml
environment:
  DISK2_SIZE: "32G"
  DISK3_SIZE: "64G"
volumes:
  - ./example2:/storage2
  - ./example3:/storage3

How do I pass through a disk?

You can pass through disk devices or partitions directly by adding them to your compose file in this way:

yaml
devices:
  - /dev/sdb:/disk1
  - /dev/sdc1:/disk2

Use /disk1 if you want it to become your main drive, and use /disk2 and higher to add them as secondary drives.

How do I pass through a USB device?

To pass through a USB device, first look up its vendor and product IDs via the lsusb command, then add them to your compose file like this:

yaml
environment:
  ARGUMENTS: "-device usb-host,vendorid=0x1234,productid=0x1234"
devices:
  - /dev/bus/usb

How do I enable GPU acceleration?

To enable hardware-accelerated graphics using an Intel or AMD GPU, add the following lines to your compose file:

yaml
environment:
  GPU: "Y"
devices:
  - /dev/dri

For NVIDIA GPUs, the https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html must be installed on the host and the GPU must be exposed to the container:

yaml
environment:
  GPU: "Y"
  NVIDIA_DRIVER_CAPABILITIES: "all"

deploy:
  resources:
    reservations:
      devices:
        - driver: nvidia
          count: all
          capabilities:
            - gpu

GPU acceleration provides hardware-accelerated OpenGL on Intel, AMD, and NVIDIA GPUs.

Vulkan acceleration is also enabled automatically when supported on hosts running Linux 6.13 or newer, and requires a guest with Venus support, such as Linux 5.16 or newer with Mesa 24.2 or newer. NVIDIA additionally requires driver version 570.86 or newer.

How do I enable dynamic memory allocation?

By default, the VM is allocated the full amount of RAM configured via RAM_SIZE for its entire lifetime.

However, you can enable memory ballooning if you want the container to dynamically reclaim unused guest RAM based on host memory pressure.

How can I provide custom arguments to QEMU?

You can create the ARGUMENTS environment variable to provide additional arguments to QEMU at runtime:

yaml
environment:
  ARGUMENTS: "-device usb-tablet"

If you want to see the full command-line arguments used, you can set:

yaml
environment:
  DEBUG: "Y"

Are these all available options?

No. For a complete overview of all supported settings, see the environment variables page.

How do I verify that KVM is available?

First, make sure your platform and container runtime meet the requirements listed above.

On a Linux host, install cpu-checker and run:

bash
sudo apt install cpu-checker
sudo kvm-ok

A working configuration should report:

text
KVM acceleration can be used

You can also verify that the KVM device exists:

bash
ls -l /dev/kvm

If KVM is unavailable, check whether:

  • Hardware virtualization (Intel VT-x or AMD-V) is enabled in your BIOS or UEFI.
  • Nested virtualization is enabled when the host itself is a virtual machine.
  • Your VPS or cloud provider supports nested virtualization.

If kvm-ok succeeds but the container still reports that KVM is unavailable, you can temporarily add privileged: true to your Compose file to rule out a permission or device-access issue.

How do I run Proxmox as a container?

If you prefer a web-based management interface, or some advanced features that this container may not offer, you can try out https://github.com/dockur/proxmox.

Stars 🌟

Deployment & Usage Documentation

Docker 部署 QEMU:轻松搭建浏览器可控的虚拟机平台

Docker 部署 QEMU:轻松搭建浏览器可控的虚拟机平台

qemux/qemu 是在 Docker 容器中运行完整虚拟机的方案,提供浏览器 Web 控制台,支持 KVM 加速与多种磁盘格式。本文将介绍如何通过 Docker Compose 快速部署 qemux/qemu,轻松搭建可自托管的容器化虚拟机环境,适合系统安装试验、隔离测试与内网演练等场景。

Read More

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 qemu 镜像标签

docker pull docker.xuanyuan.run/qemux/qemu:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull qemux/qemu:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

爱快 4.0 · iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

专属域名用法

专属域名 · 开启停用 · 多仓库

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

docker.sock / daemon

账号

失败是否计费

manifest · blob · 计费

申请开票(企业 / 个人)

开票 · 发票 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
qemux/qemu
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥8/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 qemu 镜像推荐

stagex/qemu logo

stagex/qemu

stagex
暂无描述
9.9千+ 次下载
1 年前更新
openeuler/qemu logo

openeuler/qemu

openeuler
官方QEMU Docker镜像,基于openEuler构建,支持软件模拟完整机器,通过动态翻译实现高性能,可与Xen/KVM集成以接近原生性能,能跨架构运行不同操作系统,适用于虚拟化开发与测试。
1 次收藏5.2千+ 次下载
2 个月前更新
unikraft/qemu logo

unikraft/qemu

unikraft
暂无描述
2 次收藏50万+ 次下载
4 年前更新
tianon/qemu logo

tianon/qemu

tianon
tianon/qemu是通过Docker容器化运行QEMU虚拟机的镜像,支持KVM加速,可通过环境变量配置硬盘、CPU、内存、CDROM及端口映射,用于便捷部署和管理虚拟机实例。
18 次收藏10万+ 次下载
14 天前更新
kernelci/qemu logo

kernelci/qemu

kernelci
暂无描述
10万+ 次下载
11 天前更新
accupara/qemu logo

accupara/qemu

accupara
用于编译QEMU(快速模拟器)的Docker镜像,提供预配置的编译环境和依赖,简化QEMU的编译流程。
1万+ 次下载
5 个月前更新

查看更多 qemu 相关镜像